Modular Machinery

Modular Machinery

12M Downloads

Error with JEI without IC2

lupuchard opened this issue ยท 4 comments

commented

If you have JEI but not IC2 then the JEI plugin fails to load:

[main/ERROR] [jei]: Failed to register mod plugin: class hellfirepvp.modularmachinery.common.integration.ModIntegrationJEI
java.lang.NoClassDefFoundError: ic2/api/energy/tile/IEnergyTile
	at hellfirepvp.modularmachinery.common.block.BlockEnergyInputHatch.createTileEntity(BlockEnergyInputHatch.java:158) ~[BlockEnergyInputHatch.class:?]
	at hellfirepvp.modularmachinery.common.util.BlockCompatHelper.transformState(BlockCompatHelper.java:68) ~[BlockCompatHelper.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$SampleRenderState.<init>(BlockArrayRenderHelper.java:269) ~[BlockArrayRenderHelper$SampleRenderState.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$SampleRenderState.<init>(BlockArrayRenderHelper.java:263) ~[BlockArrayRenderHelper$SampleRenderState.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$BakedBlockData.<init>(BlockArrayRenderHelper.java:246) ~[BlockArrayRenderHelper$BakedBlockData.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$BakedBlockData.<init>(BlockArrayRenderHelper.java:237) ~[BlockArrayRenderHelper$BakedBlockData.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$WorldBlockArrayRenderAccess.<init>(BlockArrayRenderHelper.java:306) ~[BlockArrayRenderHelper$WorldBlockArrayRenderAccess.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper$WorldBlockArrayRenderAccess.<init>(BlockArrayRenderHelper.java:292) ~[BlockArrayRenderHelper$WorldBlockArrayRenderAccess.class:?]
	at hellfirepvp.modularmachinery.client.util.BlockArrayRenderHelper.<init>(BlockArrayRenderHelper.java:74) ~[BlockArrayRenderHelper.class:?]
	at hellfirepvp.modularmachinery.client.util.DynamicMachineRenderContext.<init>(DynamicMachineRenderContext.java:59) ~[DynamicMachineRenderContext.class:?]
	at hellfirepvp.modularmachinery.client.util.DynamicMachineRenderContext.createContext(DynamicMachineRenderContext.java:165) ~[DynamicMachineRenderContext.class:?]
	at hellfirepvp.modularmachinery.common.integration.preview.StructurePreviewWrapper.<init>(StructurePreviewWrapper.java:95) ~[StructurePreviewWrapper.class:?]
	at hellfirepvp.modularmachinery.common.integration.ModIntegrationJEI.register(ModIntegrationJEI.java:135) ~[ModIntegrationJEI.class:?]
	at mezz.jei.startup.JeiStarter.registerPlugins(JeiStarter.java:175) [JeiStarter.class:?]
	at mezz.jei.startup.JeiStarter.start(JeiStarter.java:60) [JeiStarter.class:?]
	at mezz.jei.startup.ProxyCommonClient.loadComplete(ProxyCommonClient.java:118) [ProxyCommonClient.class:?]
	at mezz.jei.JustEnoughItems.loadComplete(JustEnoughItems.java:54) [JustEnoughItems.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
	at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:602) [FMLModContainer.class:?]
	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [guava-21.0.jar:?]
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [guava-21.0.jar:?]
	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [guava-21.0.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:217) [guava-21.0.jar:?]
	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:278) [LoadController.class:?]
	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:256) [LoadController.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
	at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) [guava-21.0.jar:?]
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) [guava-21.0.jar:?]
	at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) [guava-21.0.jar:?]
	at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) [guava-21.0.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:217) [guava-21.0.jar:?]
	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) [LoadController.class:?]
	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:728) [Loader.class:?]
	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:352) [FMLClientHandler.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:581) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_162]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_162]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_162]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_162]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.ClassNotFoundException: ic2.api.energy.tile.IEnergyTile
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_162]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_162]
	... 63 more
Caused by: java.lang.NullPointerException
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ~[launchwrapper-1.12.jar:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_162]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_162]
	... 63 more
commented

Cannot reproduce that issue with MM 1.9.1 without IC2 being present.

commented

@lupuchard any assistance in reproducing this?

commented

Any status on this issue? I am experiencing the same thing.

Steps to re-create:

  1. Create a new 1.12.2 mod environment
  2. Add Modular Machinery and JEI to libs folder and add as libraries and add to classpath
  3. Run Minecraft Client
  4. Click on a Modular Machinery Machine Preview using JEI (Click on the schematic looking thing)

I am using:
Intellij Idea
Minecraft - 1.12.2
Forge - 14.23.4.2708
MM - 1.9.4
JEI - 1.12.2-4.10.0.198

Adding IC2 to the run/mods folder or to the libs folder and then doing the library classpath thing fixes the issue.

commented

Yeah, I cannot replicate that using those steps...sounds like something with your IDE config.