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.

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