java.lang.NullPointerException

Java.net JIRA | rogerk | 4 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

    A bundled 2.2 JSF application (war) fails to deploy on WLS 12.1.2. The stacktrace is as follows: weblogic.management.DeploymentException: java.lang.NullPointerException at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.java:123) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:260) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80) Truncated. see log file for complete stacktrace Caused By: java.lang.NullPointerException at com.sun.faces.config.DbfFactory$FacesEntityResolver.<init>(DbfFactory.java:470) at com.sun.faces.config.DbfFactory.<clinit>(DbfFactory.java:175) at com.sun.faces.config.DbfFactory$FacesEntityResolver.<clinit>(DbfFactory.java:360) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) Truncated. see log file for complete stacktrace Line 470 refers to a static array: for (String[] aDTD_SCHEMA_INFO : DTD_SCHEMA_INFO) which is defined as: private static final String[][] DTD_SCHEMA_INFO = { ... Interestingly enough, JSF 2.1 bundled in the same app deploys fine on WLS 12.1.2, and JSF 2.1 has the same static. But WLS 12.1.2 also ships with JSF 2.1. All this hints that this could be a class loading issue (change) in WLS 12.1.2.

    Java.net JIRA | 4 years ago | rogerk
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.sun.faces.config.DbfFactory$FacesEntityResolver.<init>()
    2. JSF
      DbfFactory$FacesEntityResolver.<clinit>
      1. com.sun.faces.config.DbfFactory$FacesEntityResolver.<init>(DbfFactory.java:470)
      2. com.sun.faces.config.DbfFactory.<clinit>(DbfFactory.java:175)
      3. com.sun.faces.config.DbfFactory$FacesEntityResolver.<clinit>(DbfFactory.java:360)
      3 frames
    3. Java RT
      Class.forName
      1. java.lang.Class.forName0(Native Method)
      2. java.lang.Class.forName(Class.java:264)
      2 frames