java.lang.IndexOutOfBoundsException

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.

  • IndexOutOfBoundsException
    via GitHub by pveentjer
    ,
  • Originally reported to dspace-tech: https://groups.google.com/forum/#!topic/dspace-tech/bS5ngka0hyc We've come across an error related to the Sherpa/Romeo API under Mirage and Mirage2, using DSpace 5.3. It seems that the display of the whole "upload step" page fails when Sherpa/Romeo cannot find any copyright information for a journal. Example: "Clinical Journal of Gastroenterology" in dc.title.alternative leads to a proper display of the upload page, incl. Sherpa/Romeo details. "Journal of Brain Science" in dc.title.alternative or "1341-5301" (same journal) in dc.identifier.issn leads to an error. The upload step page fails to be displayed correctly. A quick check on http://www.sherpa.ac.uk/romeo/ revealed that Sherpa/Romeo doesn't hold any copyright information for this journal. Index: 0, Size: 0 Java stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.make_sherpaRomeo_submission(UploadStep.java:399) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.addBody(UploadStep.java:254) at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145) at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223) ... ******** I tried to test this behaviour on the demo machine (http://demo.dspace.org/xmlui/), but the Sherpa/Romeo API is not enabled there. Feedback from repositories that have Sherpa/Romeo enabled would be highly appreciated. Best regards, Franziska Ackermann https://github.com/DSpace/DSpace/blob/dspace-5.3/dspace-xmlui/src/main/java/org/dspace/app/xmlui/wing/AbstractWingTransformer.java#L223 https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/UploadStep.java#L399
    via by Ivan Masár,
  • Originally reported to dspace-tech: https://groups.google.com/forum/#!topic/dspace-tech/bS5ngka0hyc We've come across an error related to the Sherpa/Romeo API under Mirage and Mirage2, using DSpace 5.3. It seems that the display of the whole "upload step" page fails when Sherpa/Romeo cannot find any copyright information for a journal. Example: "Clinical Journal of Gastroenterology" in dc.title.alternative leads to a proper display of the upload page, incl. Sherpa/Romeo details. "Journal of Brain Science" in dc.title.alternative or "1341-5301" (same journal) in dc.identifier.issn leads to an error. The upload step page fails to be displayed correctly. A quick check on http://www.sherpa.ac.uk/romeo/ revealed that Sherpa/Romeo doesn't hold any copyright information for this journal. Index: 0, Size: 0 Java stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.make_sherpaRomeo_submission(UploadStep.java:399) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.addBody(UploadStep.java:254) at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145) at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223) ... ******** I tried to test this behaviour on the demo machine (http://demo.dspace.org/xmlui/), but the Sherpa/Romeo API is not enabled there. Feedback from repositories that have Sherpa/Romeo enabled would be highly appreciated. Best regards, Franziska Ackermann https://github.com/DSpace/DSpace/blob/dspace-5.3/dspace-xmlui/src/main/java/org/dspace/app/xmlui/wing/AbstractWingTransformer.java#L223 https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/UploadStep.java#L399
    via by Ivan Masár,
  • List.clear() affect another untouched variable
    via Stack Overflow by ceeri
    ,
    • java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476) at com.facebook.presto.operator.scalar.JsonFunctions.jsonArrayGet(JsonFunctions.java:332) at com.facebook.presto.operator.scalar.JsonFunctions.varcharJsonArrayGet(JsonFunctions.java:306) at com_facebook_presto_$gen_CursorProcessor_18730.filter(Unknown Source) at com_facebook_presto_$gen_CursorProcessor_18730.process(Unknown Source) at com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:215) at com.facebook.presto.operator.Driver.processInternal(Driver.java:378) at com.facebook.presto.operator.Driver.processFor(Driver.java:301) at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:622) at com.facebook.presto.execution.TaskExecutor$PrioritizedSplitRunner.process(TaskExecutor.java:529) at com.facebook.presto.execution.TaskExecutor$Runner.run(TaskExecutor.java:665) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    johnxfly
    46 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    osvzs
    1 times, last one,
    tyson925
    4 times, last one,
    9 more bugmates