java.lang.NullPointerException

Sakai JIRA | Alexander Smith | 7 years 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

    Right after an install of DSpace 1.5.2, accessing the main XMLUI at "http://localhost:8080/xmlui" returns the following error: java.lang.NullPointerException at org.apache.cocoon.servletservice.DynamicProxyRequestHandler.invoke(DynamicProxyRequestHandler.java:86) at $Proxy20.getPathInfo(Unknown Source) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:262) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy19.service(Unknown Source) at org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106) at javax.servlet.http.HttpServlet.service(Unknown Source) at com.caucho.server.dispatch.ServletFilterChain.doFilter(Unknown Source) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:142) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:244) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at com.caucho.server.webapp.WebAppFilterChain.doFilter(Unknown Source) at com.caucho.server.dispatch.ServletInvocation.service(Unknown Source) at com.caucho.server.http.HttpRequest.handleRequest(Unknown Source) at com.caucho.server.port.TcpConnection.handleRequests(Unknown Source) at com.caucho.server.port.TcpConnection$AcceptTask.doAccept(Unknown Source) at com.caucho.server.port.TcpConnection$AcceptTask.run(Unknown Source) at com.caucho.util.ThreadPool$Item.runTasks(Unknown Source) at com.caucho.util.ThreadPool$Item.run(Unknown Source) at java.lang.Thread.run(Thread.java:619) However, if I use a trailing slash: "http://localhost:8080/xmlui/" it works. On DSpace 1.6.0, instead of a backtrace I just get a blank page. This only happens with the xmlui, not the jspui. A workaround would be to include the trailing slash; however, many of the internal links in DSpace return to the "homepage" without a slash. Note that I'm using Resin, not Tomcat. I don't know if that makes a difference.

    Sakai JIRA | 7 years ago | Alexander Smith
    java.lang.NullPointerException
  2. 0

    Right after an install of DSpace 1.5.2, accessing the main XMLUI at "http://localhost:8080/xmlui" returns the following error: java.lang.NullPointerException at org.apache.cocoon.servletservice.DynamicProxyRequestHandler.invoke(DynamicProxyRequestHandler.java:86) at $Proxy20.getPathInfo(Unknown Source) at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:262) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy19.service(Unknown Source) at org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106) at javax.servlet.http.HttpServlet.service(Unknown Source) at com.caucho.server.dispatch.ServletFilterChain.doFilter(Unknown Source) at org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:142) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:244) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131) at com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source) at com.caucho.server.webapp.WebAppFilterChain.doFilter(Unknown Source) at com.caucho.server.dispatch.ServletInvocation.service(Unknown Source) at com.caucho.server.http.HttpRequest.handleRequest(Unknown Source) at com.caucho.server.port.TcpConnection.handleRequests(Unknown Source) at com.caucho.server.port.TcpConnection$AcceptTask.doAccept(Unknown Source) at com.caucho.server.port.TcpConnection$AcceptTask.run(Unknown Source) at com.caucho.util.ThreadPool$Item.runTasks(Unknown Source) at com.caucho.util.ThreadPool$Item.run(Unknown Source) at java.lang.Thread.run(Thread.java:619) However, if I use a trailing slash: "http://localhost:8080/xmlui/" it works. On DSpace 1.6.0, instead of a backtrace I just get a blank page. This only happens with the xmlui, not the jspui. A workaround would be to include the trailing slash; however, many of the internal links in DSpace return to the "homepage" without a slash. Note that I'm using Resin, not Tomcat. I don't know if that makes a difference.

    Sakai JIRA | 7 years ago | Alexander Smith
    java.lang.NullPointerException
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.cocoon.servletservice.DynamicProxyRequestHandler.invoke()
    2. org.apache.cocoon
      DynamicProxyRequestHandler.invoke
      1. org.apache.cocoon.servletservice.DynamicProxyRequestHandler.invoke(DynamicProxyRequestHandler.java:86)
      1 frame
    3. Unknown
      $Proxy20.getPathInfo
      1. $Proxy20.getPathInfo(Unknown Source)
      1 frame
    4. org.apache.cocoon
      ServletFactoryBean$ServiceInterceptor.invoke
      1. org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:262)
      1 frame
    5. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    6. Unknown
      $Proxy19.service
      1. $Proxy19.service(Unknown Source)
      1 frame
    7. org.apache.cocoon
      DispatcherServlet.service
      1. org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(Unknown Source)
      1 frame
    9. com.caucho.server
      ServletFilterChain.doFilter
      1. com.caucho.server.dispatch.ServletFilterChain.doFilter(Unknown Source)
      1 frame
    10. org.dspace.app
      SetCharacterEncodingFilter.doFilter
      1. org.dspace.app.xmlui.cocoon.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:142)
      1 frame
    11. com.caucho.server
      FilterFilterChain.doFilter
      1. com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source)
      1 frame
    12. org.dspace.app
      DSpaceCocoonServletFilter.doFilter
      1. org.dspace.app.xmlui.cocoon.DSpaceCocoonServletFilter.doFilter(DSpaceCocoonServletFilter.java:244)
      1 frame
    13. com.caucho.server
      FilterFilterChain.doFilter
      1. com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source)
      1 frame
    14. org.apache.cocoon
      MultipartFilter.doFilter
      1. org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:131)
      1 frame
    15. com.caucho.server
      TcpConnection$AcceptTask.run
      1. com.caucho.server.dispatch.FilterFilterChain.doFilter(Unknown Source)
      2. com.caucho.server.webapp.WebAppFilterChain.doFilter(Unknown Source)
      3. com.caucho.server.dispatch.ServletInvocation.service(Unknown Source)
      4. com.caucho.server.http.HttpRequest.handleRequest(Unknown Source)
      5. com.caucho.server.port.TcpConnection.handleRequests(Unknown Source)
      6. com.caucho.server.port.TcpConnection$AcceptTask.doAccept(Unknown Source)
      7. com.caucho.server.port.TcpConnection$AcceptTask.run(Unknown Source)
      7 frames
    16. com.caucho.util
      ThreadPool$Item.run
      1. com.caucho.util.ThreadPool$Item.runTasks(Unknown Source)
      2. com.caucho.util.ThreadPool$Item.run(Unknown Source)
      2 frames
    17. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame