java.lang.ArrayIndexOutOfBoundsException: -1

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.

  • 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.
    via by Ivan Masár,
  • 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.
    via by Ivan Masár,
  • Re: Problems with PickList and Table in FieldSet
    via by Bob Schellink,
  • Problems with PickList and Table in FieldSet
    via by Axel Morgner,
    • 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)

    Users with the same issue

    harshg
    harshg2 times, last one,
    Indri Yunita
    Indri Yunita92 times, last one,
    David
    David1 times, last one,
    slash
    slash1 times, last one,
    Andreas Häber
    Andreas Häber2 times, last one,
    18 more bugmates