net.minecraftforge.fml.common.LoaderException: java.lang.InstantiationException


Samebug tips

This happens when you try to instantiate a class that can't be instantiated, either because the class object is abstract, an interface, an array class, a primitive type, void, or because the class has no nullary constructor.


7 months ago
Expert tip

Solutions on the web

Solution icon of github
via GitHub by Vitamin-Carrot
, 9 months ago
java.lang.InstantiationException

Stack trace

net.minecraftforge.fml.common.LoaderException: java.lang.InstantiationException
	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88)[forge-1.10.2-12.18.3.2185-universal.jar:?]
	at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:577)[forge-1.10.2-12.18.3.2185-universal.jar:?]
	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_111]
	at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_111]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.10.2.jar:?]
	at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:243)[forge-1.10.2-12.18.3.2185-universal.jar:?]
	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)[forge-1.10.2-12.18.3.2185-universal.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_111]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_111]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_111]
	at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_111]
	at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.10.2.jar:?]
	at com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.10.2.jar:?]
	at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:145)[LoadController.class:?]
	at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:549)[Loader.class:?]
	at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:97)[FMLServerHandler.class:?]
	at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:328)[FMLCommonHandler.class:?]
	at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:121)[ld.class:?]
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:431)[MinecraftServer.class:?]
	at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]
Caused by: java.lang.InstantiationException
	at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)[?:1.8.0_111]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[?:1.8.0_111]
	at java.lang.Class.newInstance(Class.java:442)[?:1.8.0_111]
	at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:71)[forge-1.10.2-12.18.3.2185-universal.jar:?]
	... 27 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
178 times, 4 months ago
2 times, 5 months ago
8 times, 7 months ago
55 more bugmates