java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1

GitHub | caocao123 | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 89#279299002

    GitHub | 1 month ago | caocao123
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
  2. 0

    1.4新版本,4.4系统兼容性问题

    GitHub | 3 months ago | Tandrow
    android.widget.AbsListView$LayoutParams
  3. 0

    ListView crashes after scrolling

    Stack Overflow | 2 years ago | Bella
    java.lang.OutOfMemoryError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hello, When I open a window with a listview inside. crash the application ( Android only ). {code:java} [ERROR] : TiApplication: (main) [69555,75253] Sending event: exception on thread: main msg:java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1; Titanium 5.3.0,2016/06/01 10:18,94fa8af [ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1 [ERROR] : TiApplication: at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR] : TiApplication: at java.util.ArrayList.get(ArrayList.java:308) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164) [ERROR] : TiApplication: at android.widget.AbsListView.onInitializeAccessibilityNodeInfoForItem(AbsListView.java:2525) [ERROR] : TiApplication: at android.widget.ListView.onInitializeAccessibilityNodeInfoForItem(ListView.java:3949) [ERROR] : TiApplication: at android.widget.AbsListView$ListItemAccessibilityDelegate.onInitializeAccessibilityNodeInfo(AbsListView.java:2452) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6079) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfoInte [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:22348) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfo(View.java:6023) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEventInternal(View.java:5977) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.onInitializeAccessibilityEvent(View.java:22260) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEvent(View.java:5963) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5830) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.sendAccessibilityEventUnchecked(View.java:22199) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUnchecked(View.java:5813) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:7285) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:7311) [ERROR] : TiApplication: at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6402) [ERROR] : TiApplication: at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6581) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8803) [ERROR] : TiApplication: at android.view.View.setFrame(View.java:16774) [ERROR] : TiApplication: at android.view.View.layout(View.java:16656) [ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:5439) [ERROR] : TiApplication: at android.widget.ListView.setupChild(ListView.java:1971) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1881) [ERROR] : TiApplication: at android.widget.ListView.fillSpecific(ListView.java:1357) [ERROR] : TiApplication: at android.widget.ListView.layoutChildren(ListView.java:1665) [ERROR] : TiApplication: at {code} happens only on LG android 6.0.1 on G4 tks bye

    Appcelerator JIRA | 9 months ago | alexandre orilia
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
  6. 0

    Hello, When I open a window with a listview inside. crash the application ( Android only ). {code:java} [ERROR] : TiApplication: (main) [69555,75253] Sending event: exception on thread: main msg:java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1; Titanium 5.3.0,2016/06/01 10:18,94fa8af [ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1 [ERROR] : TiApplication: at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR] : TiApplication: at java.util.ArrayList.get(ArrayList.java:308) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164) [ERROR] : TiApplication: at android.widget.AbsListView.onInitializeAccessibilityNodeInfoForItem(AbsListView.java:2525) [ERROR] : TiApplication: at android.widget.ListView.onInitializeAccessibilityNodeInfoForItem(ListView.java:3949) [ERROR] : TiApplication: at android.widget.AbsListView$ListItemAccessibilityDelegate.onInitializeAccessibilityNodeInfo(AbsListView.java:2452) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6079) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfoInte [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:22348) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfo(View.java:6023) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEventInternal(View.java:5977) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.onInitializeAccessibilityEvent(View.java:22260) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEvent(View.java:5963) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5830) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.sendAccessibilityEventUnchecked(View.java:22199) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUnchecked(View.java:5813) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:7285) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:7311) [ERROR] : TiApplication: at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6402) [ERROR] : TiApplication: at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6581) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8803) [ERROR] : TiApplication: at android.view.View.setFrame(View.java:16774) [ERROR] : TiApplication: at android.view.View.layout(View.java:16656) [ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:5439) [ERROR] : TiApplication: at android.widget.ListView.setupChild(ListView.java:1971) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1881) [ERROR] : TiApplication: at android.widget.ListView.fillSpecific(ListView.java:1357) [ERROR] : TiApplication: at android.widget.ListView.layoutChildren(ListView.java:1665) [ERROR] : TiApplication: at {code} happens only on LG android 6.0.1 on G4 tks bye

    Appcelerator JIRA | 9 months ago | alexandre orilia
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
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

    Invalid index 1, size is 1

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. cn.qqtheme.framework
    WheelView.onScroll
    1. cn.qqtheme.framework.picker.AddressPicker$AddressProvider.provideThirdData(AddressPicker.java:298)
    2. cn.qqtheme.framework.picker.AddressPicker$2.onSelected(AddressPicker.java:203)
    3. cn.qqtheme.framework.widget.WheelView.onSelectedCallback(WheelView.java:311)
    4. cn.qqtheme.framework.widget.WheelView.refreshCurrentPosition(WheelView.java:353)
    5. cn.qqtheme.framework.widget.WheelView.onScroll(WheelView.java:450)
    5 frames
  4. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.widget.AbsListView.invokeOnItemScrollListener(AbsListView.java:1585)
    2. android.widget.AbsListView.trackMotionScroll(AbsListView.java:5264)
    3. android.widget.AbsListView.scrollIfNeeded(AbsListView.java:3583)
    4. android.widget.AbsListView.onTouchMove(AbsListView.java:3974)
    5. android.widget.AbsListView.onTouchEvent(AbsListView.java:3810)
    6. android.widget.ListView.onTouchEvent(ListView.java:4393)
    7. android.view.View.dispatchTouchEvent(View.java:8461)
    8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2428)
    9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2162)
    10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    18. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    19. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    20. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2434)
    21. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2176)
    21 frames
  5. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2346)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1701)
    2 frames
  6. Android Platform
    Dialog.dispatchTouchEvent
    1. android.app.Dialog.dispatchTouchEvent(Dialog.java:787)
    1 frame
  7. Android
    PhoneWindow$DecorView.dispatchTouchEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2303)
    1 frame
  8. Android Platform
    InputEventReceiver.nativeConsumeBatchedInputEvents
    1. android.view.View.dispatchPointerEvent(View.java:8651)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4192)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4058)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3605)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3658)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3624)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3734)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3632)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3791)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3605)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3658)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3624)
    13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3632)
    14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3605)
    15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:5885)
    16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:5859)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:5830)
    18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:5983)
    19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    20. android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
    20 frames