java.lang.ExceptionInInitializerError: java.lang.NullPointerException

Oracle Community | 3004 | 2 decades 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

    Creating java.awt.Font

    Oracle Community | 2 decades ago | 3004
    java.lang.ExceptionInInitializerError: java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.ExceptionInInitializerError

      java.lang.NullPointerException

      at java.lang.Class.forName0()
    2. Java RT
      Font.<init>
      1. java.lang.Class.forName0(Class.java)
      2. java.lang.Class.forName(Class.java)
      3. java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
      4. java.awt.Font.initializeFont(Font.java:259)
      5. java.awt.Font.<init>(Font.java:289)
      5 frames
    3. com.cognicase.framework
      AbstractReport.<clinit>
      1. com.cognicase.framework.base.U0006.AbstractReport.<clinit>(AbstractReport.java:65)
      1 frame
    4. com.cognicase.demo
      U9903ML_MajorCustomers.reportWithSearchCriteria
      1. com.cognicase.demo.U9903BL.U9903ML_MajorCustomers.reportWithSearchCriteria(U9903ML_MajorCustomers.java:121)
      1 frame