java.lang.NullPointerException

Icesoft | damiano.pezzotti | 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

    Noted in forum: http://www.icefaces.org/JForum/posts/list/0/2828.page#13738 Apparently, in a non-exploded war file, getResource("/") in an unexploded war returns null, and web app startup fails: Dear Icesoft. We found and confirmed a bug concerning Icefaces component. Environment: Weblogic 8.1sp3 on Solaris, J2se 1.4 If we deploy the timezone2.war exploded, it works. If we deploy timezone2.war as a not exploded war, it deploy but loading webapp brokes: Stacktrace: java.lang.NullPointerException at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312) at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:150) at jsp_servlet.__index._jspService(__index.java:124) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    ICEsoft JIRA Issue Tracker | 1 decade ago | Philip Breau
    java.lang.NullPointerException
  2. 0

    Noted in forum: http://www.icefaces.org/JForum/posts/list/0/2828.page#13738 Apparently, in a non-exploded war file, getResource("/") in an unexploded war returns null, and web app startup fails: Dear Icesoft. We found and confirmed a bug concerning Icefaces component. Environment: Weblogic 8.1sp3 on Solaris, J2se 1.4 If we deploy the timezone2.war exploded, it works. If we deploy timezone2.war as a not exploded war, it deploy but loading webapp brokes: Stacktrace: java.lang.NullPointerException at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312) at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:150) at jsp_servlet.__index._jspService(__index.java:124) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    ICEsoft JIRA Issue Tracker | 1 decade ago | Philip Breau
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service()
    2. com.icesoft.faces
      PersistentFacesServlet.service
      1. com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(Unknown Source)
      1 frame
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      1 frame
    4. Atmosphere weblogic
      RequestDispatcherImpl.forward
      1. weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
      3. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
      4. weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:312)
      4 frames
    5. weblogic.servlet.jsp
      PageContextImpl.forward
      1. weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:150)
      1 frame
    6. jsp_servlet
      __index._jspService
      1. jsp_servlet.__index._jspService(__index.java:124)
      1 frame
    7. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
      1 frame
    8. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
      3. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
      4. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
      5. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6452)
      5 frames
    9. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    10. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
      1 frame
    11. Atmosphere weblogic
      ServletRequestImpl.execute
      1. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
      2. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
      2 frames
    12. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
      2 frames