java.lang.ArrayIndexOutOfBoundsException

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.

  • JTabbedPane remove exception
    via by Isaac Hewitt,
  • 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,
  • InventoryClickEvent error
    via GitHub by FuRiouSOne
    ,
    • java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:371) at java.util.ArrayList.get(ArrayList.java:384) at javax.swing.JTabbedPane.getTitleAt(JTabbedPane.java:1112) at com.program.program.ArchiveTabPane$4.stateChanged(Unknown Source) at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:416) at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:270) at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:132) at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:67) at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:616) at javax.swing.JTabbedPane.removeTabAt(JTabbedPane.java:979) at de.javasoft.swing.JYTabbedPane.removeTabAt(JYTabbedPane.java:460) at com.program.program.ArchiveTabPane$2$1.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705) at java.awt.EventQueue.access$000(EventQueue.java:101) at java.awt.EventQueue$3.run(EventQueue.java:666) at java.awt.EventQueue$3.run(EventQueue.java:664) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:675) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

    Users with the same issue

    David
    1 times, last one,
    slash
    1 times, last one,
    Andreas Häber
    2 times, last one,
    aldrinleal
    1 times, last one,
    Hronom
    49 times, last one,
    17 more bugmates