java.lang.IndexOutOfBoundsException: Index: 10, Size: 10

Stack Overflow | wicketeer | 3 months ago
  1. 0

    Nested ListView in wicket throwing IndexOutOfBoundsException

    Stack Overflow | 3 months ago | wicketeer
    java.lang.IndexOutOfBoundsException: Index: 10, Size: 10
  2. 0

    FULL PRODUCT VERSION : C:\Users\e98594>java -version java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.91-b15, mixed mode) ADDITIONAL OS VERSION INFORMATION : Windows 7 Enterprise 6.1.7601 Service Pack 1 Build 7601 A DESCRIPTION OF THE PROBLEM : When I am using TableView for different applications, I am often getting this error printed to my console. None of the stack has my domain in it, only JavaFX internal stuff. I am suspecting this is a bug. java.lang.IndexOutOfBoundsException: Index: 10, Size: 10 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at javafx.scene.Scene$MouseHandler.handleNodeRemoval(Scene.java:3575) at javafx.scene.Scene$MouseHandler.access$7600(Scene.java:3485) at javafx.scene.Scene.generateMouseExited(Scene.java:3482) at javafx.scene.Parent$2.onProposedChange(Parent.java:487) at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:113) at com.sun.javafx.collections.VetoableListDecorator.setAll(VetoableListDecorator.java:108) at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(LabeledSkinBase.java:580) at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(LabeledSkinBase.java:181) at com.sun.javafx.scene.control.skin.TableCellSkinBase.handleControlPropertyChanged(TableCellSkinBase.java:128) at com.sun.javafx.scene.control.skin.BehaviorSkinBase.lambda$registerChangeListener$61(BehaviorSkinBase.java:197) at com.sun.javafx.scene.control.MultiplePropertyChangeListenerHandler$1.changed(MultiplePropertyChangeListenerHandler.java:55) at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:89) at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:182) at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81) at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105) at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112) at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146) at javafx.css.StyleableObjectProperty.set(StyleableObjectProperty.java:82) at javafx.beans.property.ObjectProperty.setValue(ObjectProperty.java:69) at javafx.scene.control.Labeled.setGraphic(Labeled.java:423) at javafx.scene.control.TableColumn$1$1.updateItem(TableColumn.java:214) at javafx.scene.control.TableCell.updateItem(TableCell.java:663) at javafx.scene.control.TableCell.indexChanged(TableCell.java:468) at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116) at com.sun.javafx.scene.control.skin.TableRowSkinBase.requestCellUpdate(TableRowSkinBase.java:659) at com.sun.javafx.scene.control.skin.TableRowSkinBase.lambda$init$497(TableRowSkinBase.java:159) at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:137) at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:81) at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:105) at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:112) at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:146) at javafx.scene.control.Cell.setItem(Cell.java:403) at javafx.scene.control.Cell.updateItem(Cell.java:670) at javafx.scene.control.TableRow.updateItem(TableRow.java:259) at javafx.scene.control.TableRow.indexChanged(TableRow.java:225) at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116) at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(VirtualFlow.java:1957) at com.sun.javafx.scene.control.skin.VirtualFlow.addTrailingCells(VirtualFlow.java:1344) at com.sun.javafx.scene.control.skin.VirtualFlow.adjustPixels(VirtualFlow.java:2397) at com.sun.javafx.scene.control.skin.VirtualFlow$2.handle(VirtualFlow.java:589) at com.sun.javafx.scene.control.skin.VirtualFlow$2.handle(VirtualFlow.java:531) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene.processGestureEvent(Scene.java:1840) at javafx.scene.Scene.access$300(Scene.java:159) at javafx.scene.Scene$ScenePeerListener.scrollEvent(Scene.java:2572) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$null$357(GlassViewEventHandler.java:474) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleScrollEvent$358(GlassViewEventHandler.java:470) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleScrollEvent(GlassViewEventHandler.java:469) at com.sun.glass.ui.View.notifyScroll(View.java:959) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) at java.lang.Thread.run(Thread.java:745) REGRESSION. Last worked in version 8u92 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : I can't think of exactly how to replicate this. But I have noticed when I create complex TableViews that use Nodes for the cell values and those values can change. This happens fairly often for different applications I am writing. It seems to happen when a SortedList is backing the TableView, and sometimes happen when I click the sorters. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - There shouldn't be a stacktrace printed to the console ACTUAL - I get the stacktrace in the description, and occasionally a TableView that starts to misbehave (e.g. fails to sort all values in a column). ERROR MESSAGES/STACK TRACES THAT OCCUR : I get a stack trace indicating something in the implementation tried to access beyond the ArrayList size. REPRODUCIBILITY : This bug can be reproduced often.

    JDK Bug System | 5 months ago | Webbug Group
    java.lang.IndexOutOfBoundsException: Index: 10, Size: 10
  3. 0

    there is something wrong ,but i do not confirm it`s work fine ?

    GitHub | 9 months ago | taylorwin
    java.lang.IndexOutOfBoundsException: Index: 10, Size: 10
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java IndexOutOfBoundsException thrown, Unsure Why

    Stack Overflow | 3 years ago | user2994118
    java.lang.IndexOutOfBoundsException: Index: 10, Size: 10

  1. bmacedo 4 times, last 5 days ago
  2. mhicauber 1 times, last 5 days ago
  3. filpgame 2 times, last 1 week ago
  4. tvrmsmith 1 times, last 1 week ago
  5. Indri Yunita 12 times, last 1 week ago
67 more registered users
28 unregistered visitors
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.IndexOutOfBoundsException

    Index: 10, Size: 10

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. Wicket Core
    ListItem.getModelObject
    1. org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:59)
    2. org.apache.wicket.Component.getDefaultModelObject(Component.java:1605)
    3. org.apache.wicket.markup.html.list.ListItem.getModelObject(ListItem.java:92)
    3 frames
  4. myadmin.web.panels
    TableViewPanel$3$1.getObject
    1. myadmin.web.panels.TableViewPanel$3$1.getObject(TableViewPanel.java:156)
    2. myadmin.web.panels.TableViewPanel$3$1.getObject(TableViewPanel.java:1)
    2 frames
  5. Wicket Core
    Component.internalRender
    1. org.apache.wicket.Component.getDefaultModelObject(Component.java:1605)
    2. org.apache.wicket.markup.html.list.ListView.getModelObject(ListView.java:643)
    3. org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:59)
    4. org.apache.wicket.Component.getDefaultModelObject(Component.java:1605)
    5. org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1633)
    6. org.apache.wicket.markup.html.basic.Label.onComponentTagBody(Label.java:131)
    7. org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
    8. org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
    9. org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:56)
    10. org.apache.wicket.Component.internalRender(Component.java:2359)
    11. org.apache.wicket.Component.render(Component.java:2287)
    12. org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
    13. org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
    14. org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
    15. org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
    16. org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
    17. org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
    18. org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
    19. org.apache.wicket.Component.internalRender(Component.java:2359)
    20. org.apache.wicket.Component.render(Component.java:2287)
    21. org.apache.wicket.markup.html.list.ListView.renderItem(ListView.java:584)
    22. org.apache.wicket.markup.html.list.ListView.renderChild(ListView.java:573)
    23. org.apache.wicket.markup.repeater.AbstractRepeater.onRender(AbstractRepeater.java:101)
    24. org.apache.wicket.Component.internalRender(Component.java:2359)
    25. org.apache.wicket.Component.render(Component.java:2287)
    26. org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1392)
    27. org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1557)
    28. org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1532)
    29. org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1487)
    30. org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:71)
    31. org.apache.wicket.Component.internalRenderComponent(Component.java:2529)
    32. org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1496)
    33. org.apache.wicket.Component.internalRender(Component.java:2359)
    33 frames