Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2246

JSPUI: JSP error when editing unfinished submission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: JSPUI
    • Labels:
      None
    • Environment:
      master, 71b57be1ac289525fbd23aa9d5f393ea9d71f1c9
    • Attachments:
      0
    • Comments:
      7
    • Documentation Status:
      Not Required

      Description

      Running on master branch, I created a new submission in XMLUI as admin, didn't fill any fields (not even required ones), saved the submission. Then I logged into JSPUI as admin and tried to edit that submission. I got an Internal Server Error and the following was logged:

      An error occurred at line: 889 in the jsp file: /submit/edit-metadata.jsp
      Syntax error on token "<", ? expected after this token
      886: {
      887: Metadatum[] unfiltered = item.getMetadata(schema, element, Item.ANY, Item.ANY);
      888: // filter out both unqualified and qualified values occurring elsewhere in inputs
      889: List<Metadatum> filtered = new ArrayList<>();
      890: for (int i = 0; i < unfiltered.length; i++)
      891: {
      892: String unfilteredFieldName = unfiltered[i].element;

      Stacktrace:
      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
      at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
      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:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:690)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:477)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
      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.JSPDescribeStep.showEditMetadata(JSPDescribeStep.java:222)
      at org.dspace.app.webui.submit.step.JSPDescribeStep.doPreProcessing(JSPDescribeStep.java:113)
      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.doDSGet(SubmissionController.java:183)
      at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
      at org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:66)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pbecker Pascal-Nicolas Becker
                Reporter:
                helix84 Ivan Masár
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: