org.apache.jasper.JasperException: An exception occurred processing JSP page /submit/upload-file-list.jsp at line 180 178: } %> /> 178: </td> 179: <td headers="t2" class="<%= row %>RowOddCol"> 180: <a href="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>/<%= org.dspace.app.webui.util.UIUtil.encodeBitstreamName(bitstreams[i].getName()) %>" target="_blank"><%= bitstreams[i].getName() %></a> 181: <% // Don't display "remove" button in workflow mode 182: if (allowFileEditing) 183: { Stacktrace:

Sakai JIRA | Pascal-Nicolas Becker | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When trying to create a new version in JSPUI the UploadStep crashes (see Stacktrace below). The method Util.encodeBitstreamName(...) is called, with null as BitstreamName. In upload-file-list.jsp line 144 loads all Bitstreams and their names. It is never checked whether the name is null. I would expect that Bitstream.getName() returns the original file name, but it returns null. I suppose that may have something to do with metadata for all feature, but that is just a bold guess. 2014-12-10 15:21:16,053 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.UploadStep': org.apache.jasper.JasperException: An exception occurred processing JSP page /submit/upload-file-list.jsp at line 180 178: } %> /> 178: </td> 179: <td headers="t2" class="<%= row %>RowOddCol"> 180: <a href="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>/<%= org.dspace.app.webui.util.UIUtil.encodeBitstreamName(bitstreams[i].getName()) %>" target="_blank"><%= bitstreams[i].getName() %></a> 181: <% // Don't display "remove" button in workflow mode 182: if (allowFileEditing) 183: { Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60) at org.dspace.app.webui.submit.JSPStepManager.showJSP(JSPStepManager.java:372) at org.dspace.app.webui.submit.step.JSPUploadStep.showUploadFileList(JSPUploadStep.java:573) at org.dspace.app.webui.submit.step.JSPUploadStep.showUploadPage(JSPUploadStep.java:491) at org.dspace.app.webui.submit.step.JSPUploadStep.doPreProcessing(JSPUploadStep.java:154) at org.dspace.app.webui.submit.JSPStepManager.doStepStart(JSPStepManager.java:284) at org.dspace.app.webui.submit.JSPStepManager.processStep(JSPStepManager.java:246) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:491) at org.dspace.app.webui.servlet.SubmissionController.doNextStep(SubmissionController.java:561) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:507) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionController.java:427) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.dspace.app.util.Util.encodeBitstreamName(Util.java:125) at org.dspace.app.util.Util.encodeBitstreamName(Util.java:162) at org.apache.jsp.submit.upload_002dfile_002dlist_jsp._jspService(upload_002dfile_002dlist_jsp.java:408) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ... 47 more

    Sakai JIRA | 2 years ago | Pascal-Nicolas Becker
    org.apache.jasper.JasperException: An exception occurred processing JSP page /submit/upload-file-list.jsp at line 180 178: } %> /> 178: </td> 179: <td headers="t2" class="<%= row %>RowOddCol"> 180: <a href="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>/<%= org.dspace.app.webui.util.UIUtil.encodeBitstreamName(bitstreams[i].getName()) %>" target="_blank"><%= bitstreams[i].getName() %></a> 181: <% // Don't display "remove" button in workflow mode 182: if (allowFileEditing) 183: { Stacktrace:
  2. 0

    When trying to create a new version in JSPUI the UploadStep crashes (see Stacktrace below). The method Util.encodeBitstreamName(...) is called, with null as BitstreamName. In upload-file-list.jsp line 144 loads all Bitstreams and their names. It is never checked whether the name is null. I would expect that Bitstream.getName() returns the original file name, but it returns null. I suppose that may have something to do with metadata for all feature, but that is just a bold guess. 2014-12-10 15:21:16,053 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.UploadStep': org.apache.jasper.JasperException: An exception occurred processing JSP page /submit/upload-file-list.jsp at line 180 178: } %> /> 178: </td> 179: <td headers="t2" class="<%= row %>RowOddCol"> 180: <a href="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>/<%= org.dspace.app.webui.util.UIUtil.encodeBitstreamName(bitstreams[i].getName()) %>" target="_blank"><%= bitstreams[i].getName() %></a> 181: <% // Don't display "remove" button in workflow mode 182: if (allowFileEditing) 183: { Stacktrace: at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60) at org.dspace.app.webui.submit.JSPStepManager.showJSP(JSPStepManager.java:372) at org.dspace.app.webui.submit.step.JSPUploadStep.showUploadFileList(JSPUploadStep.java:573) at org.dspace.app.webui.submit.step.JSPUploadStep.showUploadPage(JSPUploadStep.java:491) at org.dspace.app.webui.submit.step.JSPUploadStep.doPreProcessing(JSPUploadStep.java:154) at org.dspace.app.webui.submit.JSPStepManager.doStepStart(JSPStepManager.java:284) at org.dspace.app.webui.submit.JSPStepManager.processStep(JSPStepManager.java:246) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:491) at org.dspace.app.webui.servlet.SubmissionController.doNextStep(SubmissionController.java:561) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:507) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionController.java:427) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at org.dspace.app.util.Util.encodeBitstreamName(Util.java:125) at org.dspace.app.util.Util.encodeBitstreamName(Util.java:162) at org.apache.jsp.submit.upload_002dfile_002dlist_jsp._jspService(upload_002dfile_002dlist_jsp.java:408) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) ... 47 more

    Sakai JIRA | 2 years ago | Pascal-Nicolas Becker
    org.apache.jasper.JasperException: An exception occurred processing JSP page /submit/upload-file-list.jsp at line 180 178: } %> /> 178: </td> 179: <td headers="t2" class="<%= row %>RowOddCol"> 180: <a href="<%= request.getContextPath() %>/retrieve/<%= bitstreams[i].getID() %>/<%= org.dspace.app.webui.util.UIUtil.encodeBitstreamName(bitstreams[i].getName()) %>" target="_blank"><%= bitstreams[i].getName() %></a> 181: <% // Don't display "remove" button in workflow mode 182: if (allowFileEditing) 183: { Stacktrace:

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.dspace.app.util.Util.encodeBitstreamName()
    2. DSpace Kernel :: API and Implementation
      Util.encodeBitstreamName
      1. org.dspace.app.util.Util.encodeBitstreamName(Util.java:125)
      2. org.dspace.app.util.Util.encodeBitstreamName(Util.java:162)
      2 frames
    3. org.apache.jsp
      upload_002dfile_002dlist_jsp._jspService
      1. org.apache.jsp.submit.upload_002dfile_002dlist_jsp._jspService(upload_002dfile_002dlist_jsp.java:408)
      1 frame
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    6. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    8. Glassfish Core
      ApplicationDispatcher.forward
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
      5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
      6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
      6 frames
    9. org.dspace.app
      DSpaceServlet.doPost
      1. org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60)
      2. org.dspace.app.webui.submit.JSPStepManager.showJSP(JSPStepManager.java:372)
      3. org.dspace.app.webui.submit.step.JSPUploadStep.showUploadFileList(JSPUploadStep.java:573)
      4. org.dspace.app.webui.submit.step.JSPUploadStep.showUploadPage(JSPUploadStep.java:491)
      5. org.dspace.app.webui.submit.step.JSPUploadStep.doPreProcessing(JSPUploadStep.java:154)
      6. org.dspace.app.webui.submit.JSPStepManager.doStepStart(JSPStepManager.java:284)
      7. org.dspace.app.webui.submit.JSPStepManager.processStep(JSPStepManager.java:246)
      8. org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:491)
      9. org.dspace.app.webui.servlet.SubmissionController.doNextStep(SubmissionController.java:561)
      10. org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionController.java:507)
      11. org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionController.java:427)
      12. org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115)
      13. org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
      13 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2 frames
    11. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    12. org.dspace.app
      RegisteredOnlyFilter.doFilter
      1. org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:66)
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      2 frames
    14. DSpace Services Framework :: API and Implementation
      DSpaceWebappServletFilter.doFilter
      1. org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
      1 frame
    15. Glassfish Core
      StandardHostValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      6 frames
    16. com.googlecode.psiprobe
      Tomcat70AgentValve.invoke
      1. com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
      1 frame
    17. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      2. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      4 frames
    18. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
      3 frames
    19. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames