Modonomicon

Modonomicon

1M Downloads

Modonomicon not loading

creampvnk opened this issue ยท 5 comments

commented

Error loading mods
Modonomicon (modonomicon) has failed to load correctly
java.lang.reflect.InvocationTargetException: null

reinstalled every mod, made sure they were updated, I'm not sure what I'm doing wrong to make it not work

  • Modonomicon Version: modonomicon-1.19.2-1.9.7-forge
  • OS: Windows 10
  • Minecraft Version: 1.19.2-forge-43.1.7
  • Modpack Link and Version, or list of mods: curios-forge-1.19.2-5.1.1.0, geckolib-forge-1.19-3.1.38, modonomicon-1.19.2-1.12.0, occultism-1.19.2-1.55.0, Patchouli-1.19.2-77, Croptopia-1.19.2-forge.2.1.0, Enhanced-Farming-1.19-1.4.5, NaturesCompass-1.19.2-1.9.7

debug log
crash report

commented

@creampvnk please try with latest forge, instead of recommended. The recommended build in fact is lacking this event, which forge recommends to use on newer forge versions, so it's not backwards compatible currently

commented

I just tried that and I got the same error, Forge 43.1.7

commented

This is the updated debug log starting at the error I think

[20Nov2022 18:37:03.301] [modloading-worker-0/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: modonomicon, class com.klikli_dev.modonomicon.Modonomicon
java.lang.reflect.InvocationTargetException: null
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.1.7.jar%23155!/:?]
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.1.7.jar%23154!/:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
Caused by: java.lang.NoClassDefFoundError: net/minecraftforge/event/entity/player/AdvancementEvent$AdvancementEarnEvent
at com.klikli_dev.modonomicon.Modonomicon.(Modonomicon.java:77) ~[modonomicon-1.19.2-1.12.0.jar%23150!/:1.19.2-1.12.0]
... 14 more
Caused by: java.lang.ClassNotFoundException: net.minecraftforge.event.entity.player.AdvancementEvent$AdvancementEarnEvent
at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:141) ~[securejarhandler-2.1.4.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at com.klikli_dev.modonomicon.Modonomicon.(Modonomicon.java:77) ~[modonomicon-1.19.2-1.12.0.jar%23150!/:1.19.2-1.12.0]
... 14 more
[20Nov2022 18:37:03.319] [modloading-worker-0/DEBUG] [net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber/LOADING]: Attempting to inject @EventBusSubscriber classes into the eventbus for geckolib3
[20Nov2022 18:37:03.319] [modloading-worker-0/DEBUG] [net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber/LOADING]: Auto-subscribing software.bernie.example.GeckoLibMod to FORGE
[20Nov2022 18:37:03.321] [modloading-worker-0/DEBUG] [net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber/LOADING]: Auto-subscribing software.bernie.example.CommonListener to MOD
[20Nov2022 18:37:03.323] [modloading-worker-0/DEBUG] [net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber/LOADING]: Auto-subscribing software.bernie.example.ClientListener to MOD
[20Nov2022 18:37:03.350] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: -Dio.netty.noUnsafe: false
[20Nov2022 18:37:03.350] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: Java version: 17
[20Nov2022 18:37:03.351] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: sun.misc.Unsafe.theUnsafe: available
[20Nov2022 18:37:03.351] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: sun.misc.Unsafe.copyMemory: available
[20Nov2022 18:37:03.352] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: sun.misc.Unsafe.storeFence: available
[20Nov2022 18:37:03.352] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: java.nio.Buffer.address: available
[20Nov2022 18:37:03.353] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: direct buffer constructor: unavailable
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.internal.PlatformDependent0$5.run(PlatformDependent0.java:287) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?]
at io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:281) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:294) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.internal.PlatformDependent.(PlatformDependent.java:88) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.ConstantPool.(ConstantPool.java:34) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.AttributeKey$1.(AttributeKey.java:27) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.AttributeKey.(AttributeKey.java:27) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at net.minecraftforge.network.NetworkConstants.(NetworkConstants.java:34) ~[forge-1.19.2-43.1.7-universal.jar%23158!/:?]
at net.minecraftforge.common.ForgeMod.(ForgeMod.java:435) ~[forge-1.19.2-43.1.7-universal.jar%23158!/:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.1.7.jar%23155!/:?]
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.1.7.jar%23154!/:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
[20Nov2022 18:37:03.354] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: java.nio.Bits.unaligned: available, true
[20Nov2022 18:37:03.356] [modloading-worker-0/DEBUG] [io.netty.util.internal.PlatformDependent0/]: jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$7 (in module io.netty.common) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to module io.netty.common
at jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) ~[?:?]
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:560) ~[?:?]
at io.netty.util.internal.PlatformDependent0$7.run(PlatformDependent0.java:409) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?]
at io.netty.util.internal.PlatformDependent0.(PlatformDependent0.java:400) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:294) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.internal.PlatformDependent.(PlatformDependent.java:88) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.ConstantPool.(ConstantPool.java:34) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.AttributeKey$1.(AttributeKey.java:27) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at io.netty.util.AttributeKey.(AttributeKey.java:27) ~[netty-common-4.1.77.Final.jar%23106!/:4.1.77.Final]
at net.minecraftforge.network.NetworkConstants.(NetworkConstants.java:34) ~[forge-1.19.2-43.1.7-universal.jar%23158!/:?]
at net.minecraftforge.common.ForgeMod.(ForgeMod.java:435) ~[forge-1.19.2-43.1.7-universal.jar%23158!/:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:68) ~[javafmllanguage-1.19.2-43.1.7.jar%23155!/:?]
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$10(ModContainer.java:121) ~[fmlcore-1.19.2-43.1.7.jar%23154!/:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) [?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]

commented

43.1.7 is not latest forge, it's forge's recommended build, but that is a bit misleading, those are almost always outdated. Latest is somewhere around 43.1.40 or 50

commented

Tested and working on forge 43.1.47 (will also work on later versions, and some prior versions, although I did not test it all the way back to see when forge is no longer compatible)