Jump to content

[1.15.2] Mod crashing server on load. Failed to register automatic subscribers.


xanderindalzone

Recommended Posts

This was probably going to happen on first attempt, but when I run my mod 1.0 on my local server, its crashing and I dont know exactly why. Here's the repo and latest.log:

Quote
Quote

[10ago2020 12:00:22.915] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 31.2.0, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge]
[10ago2020 12:00:22.923] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 1.8.0_251 by Oracle Corporation
[10ago2020 12:00:24.948] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[10ago2020 12:00:26.373] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .]
[10ago2020 12:00:46.647] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[10ago2020 12:00:46.656] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:46.660] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:46.664] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[10ago2020 12:00:46.681] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[10ago2020 12:00:47.994] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting minecraft server version 1.15.2
[10ago2020 12:00:49.225] [modloading-worker-1/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 31.2.0, for MC 1.15.2 with MCP 20200515.085601
[10ago2020 12:00:49.228] [modloading-worker-1/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v31.2.0 Initialized
[10ago2020 12:00:50.239] [modloading-worker-2/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: customgunsmod, class com.xanderindalzone.customgunsmod.CustomGunsMod
java.lang.NoClassDefFoundError: net/minecraft/client/util/ITooltipFlag
    at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.8.0_251]
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_251]
    at java.lang.Class.getConstructor(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.eventbus.api.EventListenerHelper.computeListenerList(EventListenerHelper.java:96) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.api.EventListenerHelper.getListenerListInternal(EventListenerHelper.java:63) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.api.EventListenerHelper.getListenerList(EventListenerHelper.java:48) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.addToListeners(EventBus.java:228) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.register(EventBus.java:221) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.registerListener(EventBus.java:138) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.lambda$registerClass$2(EventBus.java:72) ~[eventbus-2.2.0-service.jar:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_251]
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_251]
    at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.eventbus.EventBus.registerClass(EventBus.java:72) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.register(EventBus.java:112) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.fml.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:75) ~[?:?]
    at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:62) ~[?:?]
    at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:141) ~[?:31.2]
    at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_251]
    at java.util.function.Consumer.lambda$andThen$0(Unknown Source) ~[?:1.8.0_251]
    at net.minecraftforge.fml.ModContainer.transitionState(ModContainer.java:112) ~[?:?]
    at net.minecraftforge.fml.ModList.lambda$null$10(ModList.java:135) ~[?:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) [?:1.8.0_251]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) [?:1.8.0_251]
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source) [?:1.8.0_251]
    at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.CountedCompleter.exec(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_251]
    at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_251]
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.util.ITooltipFlag
    at java.lang.ClassLoader.findClass(Unknown Source) ~[?:1.8.0_251]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:101) ~[modlauncher-5.1.0.jar:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_251]
    ... 40 more
[10ago2020 12:00:50.388] [Server thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found
[10ago2020 12:00:50.838] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception
net.minecraftforge.fml.LoadingFailedException: Loading errors encountered: [
    Custom Guns Mod (customgunsmod) has failed to load correctly
§7net/minecraft/client/util/ITooltipFlag
]
    at net.minecraftforge.fml.ModLoader.dispatchAndHandleError(ModLoader.java:218) ~[?:?]
    at net.minecraftforge.fml.ModLoader.gatherAndInitializeMods(ModLoader.java:200) ~[?:?]
    at net.minecraftforge.fml.server.ServerModLoader.begin(ServerModLoader.java:45) ~[?:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:122) ~[?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:613) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
[10ago2020 12:00:50.941] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: This crash report has been saved to: C:\X-USERS\X-USER\X-LOCATION\X-PATH\X-FOLDER\TESTING FORGE SERVER 1.15.2\.\crash-reports\crash-2020-08-10_12.00.50-server.txt
[10ago2020 12:00:51.126] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[10ago2020 12:00:51.127] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving worlds
[10ago2020 12:00:51.128] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Exception stopping the server
java.lang.RuntimeException: The server has failed to initialize correctly due to mod loading errors. Examine the crash report for more details.
    at net.minecraftforge.common.DimensionManager.getWorld(DimensionManager.java:185) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_71218_a(MinecraftServer.java:1004) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_213211_a(MinecraftServer.java:536) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_71260_j(MinecraftServer.java:568) ~[?:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71260_j(DedicatedServer.java:550) ~[?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:676) [?:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
 

Link to comment
Share on other sites

5 minutes ago, xanderindalzone said:

This was probably going to happen on first attempt, but when I run my mod 1.0 on my local server, its crashing and I dont know exactly why. Here's the repo and latest.log:

wait, i think i know why its crashing, ITooltipFlag is an only client class 🤦‍♂️

Edited by xanderindalzone
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.