java.lang.InstantiationException

tip

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.

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

  • GitHub comment 3#272016716
    via GitHub by Vitamin-Carrot
    ,
  • error
    via GitHub by Caperuto
    ,
  • GitHub comment 965#277672029
    via GitHub by Caperuto
    ,
  • GitHub comment 56#308677674
    via GitHub by manugarri
    ,
  • Exception depth in log4j
    via Stack Overflow by Gerrie
    ,
  • Is it possible to have @EJB as generic type?
    via Stack Overflow by Tomik
    ,
    • 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)[ProxyInjector.class:?] at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:577)[FMLModContainer.class:?] 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)[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:221)[LoadController.class:?] 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]

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown User
    178 times, last one,
    Andreas Häber
    2 times, last one,
    filpgame
    8 times, last one,
    54 more bugmates