Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert 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.

Solutions on the web

via Oracle Community by 843797, 1 year ago
via Google Groups by Derek Wyatt, 2 years ago
java.lang.InstantiationException: Main$BadThrow	at java.lang.Class.newInstance0(	at java.lang.Class.newInstance(	at	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(	at sun.reflect.DelegatingMethodAccessorImpl.invoke(	at java.lang.reflect.Method.invoke(	at undefined.Main.main(