Uploaded image for project: 'MyCoRe'
  1. MCR-875

IndexOutOfBoundsException: Index: 0, Size: 0 contains no useful information for debugging

    Details

    • Type: Task
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.02
    • Fix Version/s: 2015.02
    • Component/s: mycore-xeditor
    • Labels:
      None

      Description

      If validation xpath could not be found, an ArrayIndexOutOfBounds exception is thrown. Is there a way, to give more details about file and code line?

      Complete StackTrace:

      500!
      Was für ein Fehler.
      
      Index: 0, Size: 0
      Stack trace :
      
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.rangeCheck(ArrayList.java:635)
      	at java.util.ArrayList.get(ArrayList.java:411)
      	at org.mycore.frontend.xeditor.MCRBinding.getBoundNode(MCRBinding.java:137)
      	at org.mycore.frontend.xeditor.MCRBinding.getAbsoluteXPath(MCRBinding.java:275)
      	at org.mycore.frontend.xeditor.validation.MCRRequiredRule.validateBinding(MCRRequiredRule.java:14)
      	at org.mycore.frontend.xeditor.validation.MCRValidationRule.validate(MCRValidationRule.java:27)
      	at org.mycore.frontend.xeditor.validation.MCRXEditorValidator.isValid(MCRXEditorValidator.java:87)
      	at org.mycore.frontend.xeditor.target.MCRServletTarget.handleSubmission(MCRServletTarget.java:45)
      	at org.mycore.frontend.xeditor.MCRXEditorServlet.sendToTarget(MCRXEditorServlet.java:84)
      	at org.mycore.frontend.xeditor.MCRXEditorServlet.doGetPost(MCRXEditorServlet.java:60)
      	at org.mycore.frontend.servlets.MCRServlet.doPost(MCRServlet.java:206)
      	at org.mycore.frontend.servlets.MCRServlet.render(MCRServlet.java:441)
      	at org.mycore.frontend.servlets.MCRServlet.processRenderingPhase(MCRServlet.java:405)
      	at org.mycore.frontend.servlets.MCRServlet.doGetPost(MCRServlet.java:309)
      	at org.mycore.frontend.servlets.MCRServlet.doPost(MCRServlet.java:199)
      	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.mycore.frontend.filter.MCRWebAppBaseFilter.doFilter(MCRWebAppBaseFilter.java:46)
      	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 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:313)
      	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)
      
      Mehr wissen wir auch nicht.
      

        Attachments

          Activity

            People

            • Assignee:
              mcrfluet Frank Lützenkirchen
              Reporter:
              mcrkrebs Kathleen Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: