java.lang.NullPointerException

Apereo Issues | Nick Lothian | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I followed the instructions at http://www.uportal.org/implementors/portlets/workingWithPortlets.html to deploy a portlet. I found, however, that the deployment tool gave errors when my web.xml included <env-entry>'s. The error was: [java] Preparing web archive 'epass' ... [java] java.lang.NullPointerException [java] at org.jasig.portal.container.binding.WebApplicationUnmarshaller.getEnvEntries(WebApplicationUnmarshaller.java:562) [java] at org.jasig.portal.container.binding.WebApplicationUnmarshaller.getWebApplicationDefinition(WebApplicationUnmarshaller.java:154) [java] at org.jasig.portal.container.deploy.Deployer.prepareWebArchive(Deployer.java:169) [java] at org.jasig.portal.container.deploy.Deployer.main(Deployer.java:413) [java] java.lang.Exception [java] at org.jasig.portal.container.deploy.Deployer.prepareWebArchive(Deployer.java:338) [java] at org.jasig.portal.container.deploy.Deployer.main(Deployer.java:413) My env-entry section was: <env-entry> <env-entry-name>ecseserver/host</env-entry-name> <env-entry-value>nl</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/port</env-entry-name> <env-entry-value>4444</env-entry-value> <env-entry-type>java.lang.Integer</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/secure</env-entry-name> <env-entry-value>false</env-entry-value> <env-entry-type>java.lang.Boolean</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/fund</env-entry-name> <env-entry-value>STATEFUND</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/integration</env-entry-name> <env-entry-value>Java</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/erpurl</env-entry-name> <env-entry-value>/erp/</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/dbserver</env-entry-name> <env-entry-value>cub</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/database</env-entry-name> <env-entry-value>epass_fd_dev_2_x_cm</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/usessl</env-entry-name> <env-entry-value>false</env-entry-value> <env-entry-type>java.lang.Boolean</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/sslport</env-entry-name> <env-entry-value>443</env-entry-value> <env-entry-type>java.lang.Integer</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/loglevel</env-entry-name> <env-entry-value>error</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>

    Apereo Issues | 1 decade ago | Nick Lothian
    java.lang.NullPointerException
  2. 0

    I followed the instructions at http://www.uportal.org/implementors/portlets/workingWithPortlets.html to deploy a portlet. I found, however, that the deployment tool gave errors when my web.xml included <env-entry>'s. The error was: [java] Preparing web archive 'epass' ... [java] java.lang.NullPointerException [java] at org.jasig.portal.container.binding.WebApplicationUnmarshaller.getEnvEntries(WebApplicationUnmarshaller.java:562) [java] at org.jasig.portal.container.binding.WebApplicationUnmarshaller.getWebApplicationDefinition(WebApplicationUnmarshaller.java:154) [java] at org.jasig.portal.container.deploy.Deployer.prepareWebArchive(Deployer.java:169) [java] at org.jasig.portal.container.deploy.Deployer.main(Deployer.java:413) [java] java.lang.Exception [java] at org.jasig.portal.container.deploy.Deployer.prepareWebArchive(Deployer.java:338) [java] at org.jasig.portal.container.deploy.Deployer.main(Deployer.java:413) My env-entry section was: <env-entry> <env-entry-name>ecseserver/host</env-entry-name> <env-entry-value>nl</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/port</env-entry-name> <env-entry-value>4444</env-entry-value> <env-entry-type>java.lang.Integer</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/secure</env-entry-name> <env-entry-value>false</env-entry-value> <env-entry-type>java.lang.Boolean</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/fund</env-entry-name> <env-entry-value>STATEFUND</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/integration</env-entry-name> <env-entry-value>Java</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>ecseserver/erpurl</env-entry-name> <env-entry-value>/erp/</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/dbserver</env-entry-name> <env-entry-value>cub</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/database</env-entry-name> <env-entry-value>epass_fd_dev_2_x_cm</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/usessl</env-entry-name> <env-entry-value>false</env-entry-value> <env-entry-type>java.lang.Boolean</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/sslport</env-entry-name> <env-entry-value>443</env-entry-value> <env-entry-type>java.lang.Integer</env-entry-type> </env-entry> <env-entry> <env-entry-name>epass/loglevel</env-entry-name> <env-entry-value>error</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>

    Apereo Issues | 1 decade ago | Nick Lothian
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jasig.portal.container.binding.WebApplicationUnmarshaller.getEnvEntries()
    2. org.jasig.portal
      Deployer.main
      1. org.jasig.portal.container.binding.WebApplicationUnmarshaller.getEnvEntries(WebApplicationUnmarshaller.java:562)
      2. org.jasig.portal.container.binding.WebApplicationUnmarshaller.getWebApplicationDefinition(WebApplicationUnmarshaller.java:154)
      3. org.jasig.portal.container.deploy.Deployer.prepareWebArchive(Deployer.java:169)
      4. org.jasig.portal.container.deploy.Deployer.main(Deployer.java:413)
      4 frames