Skip to content

Advanced peripherals has failed to load correctly #233

@Kolterdyx

Description

@Kolterdyx

Describe

When trying to run Minecraft with CC: Tweaked and Advanced peripherals, the game crashes while loading, with the following error:
java.lang.reflect.InvocationTargetException: null

This is the error from latest.log

[00:18:46] [modloading-worker-0/INFO]: AdvancedPeripherals says hello!
[00:18:46] [modloading-worker-0/INFO]: Forge mod loading, version 38.0.14, for MC 1.18 with MCP 20211130.085255
[00:18:46] [modloading-worker-0/INFO]: MinecraftForge v38.0.14 Initialized
[06Dec2021 00:18:47.073] [modloading-worker-0/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: advancedperipherals, class de.srendi.advancedperipherals.AdvancedPeripherals
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:81) ~[javafmllanguage-1.18-38.0.14.jar%2356!:?]
	at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) ~[fmlcore-1.18-38.0.14.jar%2355!:?]
	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.NoSuchMethodError: 'java.lang.String net.minecraft.resources.ResourceLocation.getPath()'
	at de.srendi.advancedperipherals.common.setup.CCRegistration.<clinit>(CCRegistration.java:17) ~[advancedperipherals-1.18-0.7.7r.jar%2352!:0.7.7r]
	at de.srendi.advancedperipherals.common.setup.Registration.register(Registration.java:44) ~[advancedperipherals-1.18-0.7.7r.jar%2352!:0.7.7r]
	at de.srendi.advancedperipherals.AdvancedPeripherals.<init>(AdvancedPeripherals.java:53) ~[advancedperipherals-1.18-0.7.7r.jar%2352!:0.7.7r]
	... 14 more
[06Dec2021 00:18:47.758] [Render thread/FATAL] [net.minecraftforge.fml.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found

Steps to reproduce

  1. Install Forge 38.0.14 (Minecraft 1.18).
  2. Install Advanced Peripherals 0.7.7r.
  3. Start Minecraft.

After that, the game will crash

Multiplayer?

False

Version

0.7.7r

Minecraft, Forge and maybe other related mods versions

Forge 38.0.14

Screenshots or Videos

No response

Crashlog/log

https://pastebin.com/xQdbmYxG

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions