java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by rogerk,
    • 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)
    No Bugmate found.