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.

  • problem for deploying a EJB
    via by 3004,
  • need some HELP please
    via by 807594,
  • 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:30) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown UserUnknown User
    178 times, last one,
    Andreas HäberAndreas Häber
    2 times, last one,
    filpgamefilpgame
    8 times, last one,
    54 more bugmates