java.lang.ExceptionInInitializerError

Coderanch | sumit anand kumar | 7 years 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

    Facing null pointer exception in static initialization

    Coderanch | 7 years ago | sumit anand kumar
    java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at constants.ConstantObject.<init>()
    2. constants
      SerializeDeserialize.main
      1. constants.ConstantObject.<init>(ConstantObject.java:31)
      2. constants.ConstantObject.<clinit>(ConstantObject.java:20)
      3. constants.SerializeDeserialize.writeDuplicateConstantObject(SerializeDeserialize.java:23)
      4. constants.SerializeDeserialize.main(SerializeDeserialize.java:43)
      4 frames