java.lang.InstantiationException: Main$BadThrow at at java.lang.Class.newInstance0(Class.java:291) at at java.lang.Class.newInstance(Class.java:259)

Oracle Community | 843797 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    InvocationTargetException acting odd

    Oracle Community | 1 decade ago | 843797
    java.lang.InstantiationException: Main$BadThrow at at java.lang.Class.newInstance0(Class.java:291) at at java.lang.Class.newInstance(Class.java:259)

    Root Cause Analysis

    1. java.lang.InstantiationException

      Main$BadThrow at at java.lang.Class.newInstance0(Class.java:291) at at java.lang.Class.newInstance(Class.java:259)

      at Main.foo()
    2. Unknown
      Main.foo
      1. Main.foo(Main.java:27)
      1 frame