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,
    • java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 at java.util.LinkedList.checkElementIndex(LinkedList.java:555) at java.util.LinkedList.get(LinkedList.java:476) at org.overture.typechecker.utilities.ImplicitDefinitionFinder.defaultSClassDefinition(ImplicitDefinitionFinder.java:120) at org.overture.typechecker.utilities.ImplicitDefinitionFinder.defaultSClassDefinition(ImplicitDefinitionFinder.java:69) at org.overture.ast.analysis.QuestionAdaptor.caseASystemClassDefinition(QuestionAdaptor.java:2964) at org.overture.ast.definitions.ASystemClassDefinition.apply(ASystemClassDefinition.java:311) at org.overture.typechecker.assistant.definition.PDefinitionAssistantTC.implicitDefinitions(PDefinitionAssistantTC.java:290) at org.overture.typechecker.assistant.definition.SClassDefinitionAssistantTC.implicitDefinitions(SClassDefinitionAssistantTC.java:259) at org.overture.typechecker.ClassTypeChecker.typeCheck(ClassTypeChecker.java:122) at org.overture.ide.builders.vdmj.BuilderPp.typeCheck(BuilderPp.java:91) at org.overture.ide.builders.vdmj.BuilderRt.typeCheck(BuilderRt.java:67) at org.overture.ide.builders.vdmj.VdmjBuilder.buildModel(VdmjBuilder.java:46) at org.overture.ide.builders.vdmj.BuilderPp.buildModel(BuilderPp.java:72) at org.overture.ide.core.builder.AbstractVdmBuilder.buildModel(AbstractVdmBuilder.java:42) at org.overture.ide.core.builder.SafeBuilder$1.run(SafeBuilder.java:105) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.overture.ide.core.builder.SafeBuilder.run(SafeBuilder.java:137)

    Users with the same issue

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