java.lang.ArrayIndexOutOfBoundsException: -1

Sakai JIRA | Ivan Masár | 1 year ago
  1. 0

    Doing a single-word search within one of my communities (site-wide search seems OK), I got the following error page in XMLUI: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:400) at java.util.ArrayList.set(ArrayList.java:428) at org.hibernate.collection.internal.PersistentList.readFrom(PersistentList.java:409) at org.hibernate.loader.Loader.readCollectionElement(Loader.java:1321) at org.hibernate.loader.Loader.readCollectionElements(Loader.java:879) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:730) at org.hibernate.loader.Loader.processResultSet(Loader.java:949) at org.hibernate.loader.Loader.doQuery(Loader.java:917) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:318) at org.hibernate.loader.Loader.loadCollection(Loader.java:2262) at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:65) at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:674) at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:86) at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1810) at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:552) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:234) at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548) at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126) at org.hibernate.collection.internal.PersistentList.iterator(PersistentList.java:138) at org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:307) at org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:295) at org.dspace.app.xmlui.aspect.discovery.AbstractSearch.getValidity(AbstractSearch.java:187) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) I also got the same error in one of the collections of this community.

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    Doing a single-word search within one of my communities (site-wide search seems OK), I got the following error page in XMLUI: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:400) at java.util.ArrayList.set(ArrayList.java:428) at org.hibernate.collection.internal.PersistentList.readFrom(PersistentList.java:409) at org.hibernate.loader.Loader.readCollectionElement(Loader.java:1321) at org.hibernate.loader.Loader.readCollectionElements(Loader.java:879) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:730) at org.hibernate.loader.Loader.processResultSet(Loader.java:949) at org.hibernate.loader.Loader.doQuery(Loader.java:917) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:318) at org.hibernate.loader.Loader.loadCollection(Loader.java:2262) at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:65) at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:674) at org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:86) at org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1810) at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:552) at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:234) at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548) at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126) at org.hibernate.collection.internal.PersistentList.iterator(PersistentList.java:138) at org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:307) at org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:295) at org.dspace.app.xmlui.aspect.discovery.AbstractSearch.getValidity(AbstractSearch.java:187) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) I also got the same error in one of the collections of this community.

    Sakai JIRA | 1 year ago | Ivan Masár
    java.lang.ArrayIndexOutOfBoundsException: -1
  3. 0

    AW Reassign Task fails after delegate

    GitHub | 1 year ago | gsteimer
    java.lang.ArrayIndexOutOfBoundsException: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Problems with PickList and Table in FieldSet

    click-user | 6 years ago | Bob Schellink
    java.lang.ArrayIndexOutOfBoundsException: -1

  1. harshg 2 times, last 4 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    -1

    at java.util.ArrayList.elementData()
  2. Java RT
    ArrayList.set
    1. java.util.ArrayList.elementData(ArrayList.java:400)
    2. java.util.ArrayList.set(ArrayList.java:428)
    2 frames
  3. Hibernate
    PersistentList.iterator
    1. org.hibernate.collection.internal.PersistentList.readFrom(PersistentList.java:409)
    2. org.hibernate.loader.Loader.readCollectionElement(Loader.java:1321)
    3. org.hibernate.loader.Loader.readCollectionElements(Loader.java:879)
    4. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:730)
    5. org.hibernate.loader.Loader.processResultSet(Loader.java:949)
    6. org.hibernate.loader.Loader.doQuery(Loader.java:917)
    7. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:348)
    8. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:318)
    9. org.hibernate.loader.Loader.loadCollection(Loader.java:2262)
    10. org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:65)
    11. org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:674)
    12. org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:86)
    13. org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1810)
    14. org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:552)
    15. org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:234)
    16. org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:548)
    17. org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:126)
    18. org.hibernate.collection.internal.PersistentList.iterator(PersistentList.java:138)
    18 frames
  4. org.dspace.app
    AbstractSearch.getValidity
    1. org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:307)
    2. org.dspace.app.xmlui.utils.DSpaceValidity.add(DSpaceValidity.java:295)
    3. org.dspace.app.xmlui.aspect.discovery.AbstractSearch.getValidity(AbstractSearch.java:187)
    3 frames
  5. Java RT
    GeneratedMethodAccessor71.invoke
    1. sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
    1 frame