java.lang.ArrayIndexOutOfBoundsException: -1

Stack Overflow | Young Harry | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Why Eclipse Java Editor doesn't work?

    Stack Overflow | 6 months ago | Young Harry
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    [3.6.1] SQL formatting error

    GitHub | 12 months ago | NullpointerForever
    java.lang.ArrayIndexOutOfBoundsException: 5

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at org.eclipse.swt.custom.StyledTextRenderer.calculateClientArea()
    2. RWT
      StyledText.redraw
      1. org.eclipse.swt.custom.StyledTextRenderer.calculateClientArea(StyledTextRenderer.java:230)
      2. org.eclipse.swt.custom.StyledText.resetCache(StyledText.java:7955)
      3. org.eclipse.swt.custom.StyledText.redraw(StyledText.java:7516)
      3 frames
    3. JFace Text
      PaintManager.selectionChanged
      1. org.eclipse.jface.text.CursorLinePainter.drawHighlightLine(CursorLinePainter.java:179)
      2. org.eclipse.jface.text.CursorLinePainter.paint(CursorLinePainter.java:240)
      3. org.eclipse.jface.text.PaintManager.paint(PaintManager.java:299)
      4. org.eclipse.jface.text.PaintManager.selectionChanged(PaintManager.java:338)
      4 frames
    4. JFace
      Viewer$2.run
      1. org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:163)
      1 frame
    5. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    6. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      1 frame
    7. JFace
      Viewer.fireSelectionChanged
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      2. org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
      2 frames
    8. JFace Text
      TextViewer.setSelectedRange
      1. org.eclipse.jface.text.TextViewer.fireSelectionChanged(TextViewer.java:2734)
      2. org.eclipse.jface.text.TextViewer.selectionChanged(TextViewer.java:2713)
      3. org.eclipse.jface.text.TextViewer.setSelectedRange(TextViewer.java:2398)
      3 frames
    9. Java Development Tools UI
      JavaOutlinePage$3.open
      1. org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.setSelection(JavaEditor.java:2367)
      2. org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSelectionChanged(JavaEditor.java:2435)
      3. org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage$3.open(JavaOutlinePage.java:1022)
      3 frames
    10. Eclipse UI
      OpenAndLinkWithEditorHelper$InternalListener.open
      1. org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
      1 frame
    11. JFace
      StructuredViewer$2.run
      1. org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:854)
      1 frame
    12. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    13. Eclipse UI
      JFaceUtil$1.run
      1. org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      1 frame
    14. JFace
      OpenStrategy$1.handleEvent
      1. org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      2. org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851)
      3. org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168)
      4. org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1275)
      5. org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
      6. org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
      7. org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
      7 frames
    15. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
      5 frames
    16. Eclipse Workbench SWT
      PartRenderingEngine$4.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      1 frame
    17. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      1 frame
    18. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      1 frame
    19. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      1 frame
    20. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
      1 frame
    21. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      1 frame
    22. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
      1 frame
    23. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      1 frame
    24. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      1 frame
    25. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    26. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      4 frames
    27. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    28. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      3 frames