java.lang.ExceptionInInitializerError: java.lang.RuntimeException: StaticExc RuntimeException

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

    throw exception from a static block

    Oracle Community | 1 decade ago | 843797
    java.lang.ExceptionInInitializerError: java.lang.RuntimeException: StaticExc RuntimeException

    Root Cause Analysis

    1. java.lang.ExceptionInInitializerError

      java.lang.RuntimeException: StaticExc RuntimeException

      at StaticExc.throwIt()
    2. Unknown
      StaticBlock.<clinit>
      1. StaticExc.throwIt(StaticExc.java:5)
      2. StaticBlock.<clinit>(StaticBlock.java:5)
      2 frames