java.lang.ArrayIndexOutOfBoundsException: -1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sakai JIRA by Ivan Masár, 1 year ago
-1
via Sakai JIRA by Ivan Masár, 1 year ago
-1
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.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)

Users with the same issue

2 times, 1 year ago
92 times, 7 months ago
14 times, 1 month ago
16 times, 3 months ago
3 times, 3 months ago
24 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.