java.lang.IllegalArgumentException: Index out of bounds

GitHub | reprogrammer | 6 years ago
  1. 0

    GitHub comment 238#1259212

    GitHub | 6 years ago | reprogrammer
    java.lang.IllegalArgumentException: Index out of bounds
  2. 0

    Undo does not work all the time

    GitHub | 3 years ago | Banger
    java.lang.IllegalArgumentException: Index out of bounds
  3. 0

    {html}<div><p>I have a JS file, a lot of which has been folded. When I try to run "Show Scope" on a segment, nothing happens. Checking the log, I see:<br></p> <pre> <code>!ENTRY org.eclipse.ui 4 0 2011-05-05 09:31:34.090 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.IllegalArgumentException: Index out of bounds at org.eclipse.swt.SWT.error(SWT.java:4258) at org.eclipse.swt.SWT.error(SWT.java:4192) at org.eclipse.swt.SWT.error(SWT.java:4163) at org.eclipse.swt.custom.StyledText.getLocationAtOffset(StyledText.java:4318) at com.aptana.editor.common.scripting.commands.CommandExecutionUtils.showAsTooltip(CommandExecutionUtils.java:906) at com.aptana.editor.common.scripting.commands.CommandExecutionUtils.processCommandResult(CommandExecutionUtils.java:647) at com.aptana.editor.common.scripting.commands.CommandExecutionUtils.processCommandResult(CommandExecutionUtils.java:490) at com.aptana.editor.common.internal.scripting.CommandElementsProvider.execute(CommandElementsProvider.java:48) at com.aptana.scripting.keybindings.internal.KeybindingsManager.executeCommandElement(KeybindingsManager.java:846) at com.aptana.scripting.keybindings.internal.KeybindingsManager.processKeyStroke(KeybindingsManager.java:530) at com.aptana.scripting.keybindings.internal.KeybindingsManager.processKeyStrokes(KeybindingsManager.java:459) at com.aptana.scripting.keybindings.internal.KeybindingsManager.access$2(KeybindingsManager.java:454) at com.aptana.scripting.keybindings.internal.KeybindingsManager$1.handleEvent(KeybindingsManager.java:130) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)</code> </pre> <p>My guess is we're not translating the positions/points based on the folding.</p></div>{html}

    Appcelerator JIRA | 5 years ago | Chris Williams
    java.lang.IllegalArgumentException: Index out of bounds
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalArgumentException showing search result

    Eclipse Bugzilla | 1 decade ago | jerome_lanneluc
    java.lang.IllegalArgumentException: Index out of bounds
  6. 0

    Exception during "Organize imports"

    Eclipse Bugzilla | 1 decade ago | Olivier_Thomann
    java.lang.IllegalArgumentException: Index out of bounds

    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.IllegalArgumentException

      Index out of bounds

      at org.eclipse.swt.SWT.error()
    2. RWT
      StyledText.getLocationAtOffset
      1. org.eclipse.swt.SWT.error(SWT.java:4064)
      2. org.eclipse.swt.SWT.error(SWT.java:3998)
      3. org.eclipse.swt.SWT.error(SWT.java:3969)
      4. org.eclipse.swt.graphics.TextLayout.getLocation(TextLayout.java:1283)
      5. org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5456)
      6. org.eclipse.swt.custom.StyledText.getLocationAtOffset(StyledText.java:4331)
      6 frames
    3. Text Editor Framework
      SourceViewerDecorationSupport$IBeamStrategy.draw
      1. org.eclipse.ui.texteditor.SourceViewerDecorationSupport$IBeamStrategy.draw(SourceViewerDecorationSupport.java:103)
      1 frame
    4. JFace Text
      AnnotationPainter.paintControl
      1. org.eclipse.jface.text.source.AnnotationPainter.drawDecoration(AnnotationPainter.java:1424)
      2. org.eclipse.jface.text.source.AnnotationPainter.handleDrawRequest(AnnotationPainter.java:1390)
      3. org.eclipse.jface.text.source.AnnotationPainter.paintControl(AnnotationPainter.java:1334)
      3 frames
    5. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:223)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
      6. org.eclipse.swt.widgets.Control.gtk_expose_event(Control.java:2783)
      7. org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite.java:701)
      8. org.eclipse.swt.widgets.Canvas.gtk_expose_event(Canvas.java:167)
      9. org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1739)
      10. org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
      11. org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
      11 frames
    6. org.eclipse.swt
      OS.gtk_main_do_event
      1. org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8189)
      2 frames
    7. RWT
      Display.eventProc
      1. org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
      1 frame
    8. org.eclipse.swt
      OS.gdk_window_process_updates
      1. org.eclipse.swt.internal.gtk.OS._gdk_window_process_updates(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.gdk_window_process_updates(OS.java:5366)
      2 frames
    9. RWT
      StyledText$6.textChanging
      1. org.eclipse.swt.widgets.Control.update(Control.java:4755)
      2. org.eclipse.swt.widgets.Control.update(Control.java:4746)
      3. org.eclipse.swt.widgets.Canvas.scroll(Canvas.java:267)
      4. org.eclipse.swt.custom.StyledText.scroll(StyledText.java:7805)
      5. org.eclipse.swt.custom.StyledText.scrollText(StyledText.java:7922)
      6. org.eclipse.swt.custom.StyledText.handleTextChanging(StyledText.java:6272)
      7. org.eclipse.swt.custom.StyledText$6.textChanging(StyledText.java:5633)
      7 frames
    10. JFace Text
      AbstractDocument.fireDocumentAboutToBeChanged
      1. org.eclipse.jface.text.DefaultDocumentAdapter.fireTextChanging(DefaultDocumentAdapter.java:392)
      2. org.eclipse.jface.text.DefaultDocumentAdapter.documentAboutToBeChanged(DefaultDocumentAdapter.java:309)
      3. org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:656)
      3 frames
    11. Text
      ProjectionDocumentManager.documentAboutToBeChanged
      1. org.eclipse.jface.text.projection.ProjectionDocument.delayedFireDocumentAboutToBeChanged(ProjectionDocument.java:768)
      2. org.eclipse.jface.text.projection.ProjectionDocument.masterDocumentAboutToBeChanged(ProjectionDocument.java:727)
      3. org.eclipse.jface.text.projection.ProjectionDocumentManager.fireDocumentEvent(ProjectionDocumentManager.java:121)
      4. org.eclipse.jface.text.projection.ProjectionDocumentManager.documentAboutToBeChanged(ProjectionDocumentManager.java:138)
      4 frames
    12. JFace Text
      AbstractDocument.replace
      1. org.eclipse.jface.text.AbstractDocument.fireDocumentAboutToBeChanged(AbstractDocument.java:665)
      2. org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1182)
      2 frames
    13. File Buffers
      SynchronizableDocument.replace
      1. org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:195)
      1 frame
    14. JFace Text
      AbstractDocument.replace
      1. org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:1210)
      1 frame
    15. File Buffers
      SynchronizableDocument.replace
      1. org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace(SynchronizableDocument.java:181)
      1 frame
    16. Text
      TextEdit.apply
      1. org.eclipse.text.edits.ReplaceEdit.performDocumentUpdating(ReplaceEdit.java:82)
      2. org.eclipse.text.edits.TextEditProcessor.executeUndo(TextEditProcessor.java:223)
      3. org.eclipse.text.edits.UndoEdit.dispatchPerformEdits(UndoEdit.java:57)
      4. org.eclipse.text.edits.TextEditProcessor.performEdits(TextEditProcessor.java:156)
      5. org.eclipse.text.edits.TextEdit.apply(TextEdit.java:711)
      5 frames
    17. Refactoring Core
      UndoTextFileChange$1.run
      1. org.eclipse.ltk.core.refactoring.UndoTextFileChange.doPerformEdits(UndoTextFileChange.java:281)
      2. org.eclipse.ltk.core.refactoring.UndoTextFileChange.access$0(UndoTextFileChange.java:278)
      3. org.eclipse.ltk.core.refactoring.UndoTextFileChange$1.run(UndoTextFileChange.java:243)
      3 frames
    18. Default Text Editor
      UISynchronizationContext.run
      1. org.eclipse.ui.internal.editors.text.UISynchronizationContext.run(UISynchronizationContext.java:34)
      1 frame
    19. File Buffers
      TextFileBufferManager.execute
      1. org.eclipse.core.internal.filebuffers.TextFileBufferManager.execute(TextFileBufferManager.java:629)
      1 frame
    20. Refactoring Core
      UndoTextFileChange.perform
      1. org.eclipse.ltk.core.refactoring.UndoTextFileChange.performEdits(UndoTextFileChange.java:259)
      2. org.eclipse.ltk.core.refactoring.UndoTextFileChange.perform(UndoTextFileChange.java:194)
      2 frames
    21. Java Code Manipulation Functionality
      UndoCompilationUnitChange.perform
      1. org.eclipse.jdt.core.refactoring.UndoCompilationUnitChange.perform(UndoCompilationUnitChange.java:74)
      1 frame
    22. Refactoring Core
      UndoableOperation2ChangeAdapter$1.run
      1. org.eclipse.ltk.internal.core.refactoring.UndoableOperation2ChangeAdapter$1.run(UndoableOperation2ChangeAdapter.java:342)
      1 frame
    23. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1970)
      2. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1952)
      2 frames
    24. Refactoring Core
      UndoableOperation2ChangeAdapter.undo
      1. org.eclipse.ltk.internal.core.refactoring.UndoableOperation2ChangeAdapter.executeChange(UndoableOperation2ChangeAdapter.java:372)
      2. org.eclipse.ltk.internal.core.refactoring.UndoableOperation2ChangeAdapter.undo(UndoableOperation2ChangeAdapter.java:204)
      2 frames
    25. Commands
      DefaultOperationHistory.undo
      1. org.eclipse.core.commands.operations.TriggeredOperations.undo(TriggeredOperations.java:228)
      2. org.eclipse.core.commands.operations.DefaultOperationHistory.doUndo(DefaultOperationHistory.java:415)
      3. org.eclipse.core.commands.operations.DefaultOperationHistory.undo(DefaultOperationHistory.java:1280)
      3 frames
    26. Workbench
      OperationHistoryActionHandler$4.run
      1. org.eclipse.ui.operations.UndoActionHandler.runCommand(UndoActionHandler.java:78)
      2. org.eclipse.ui.operations.OperationHistoryActionHandler$4.run(OperationHistoryActionHandler.java:311)
      2 frames
    27. JFace
      ProgressMonitorDialog.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      3. org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
      3 frames
    28. Workbench
      TimeTriggeredProgressMonitorDialog$2.run
      1. org.eclipse.ui.internal.operations.TimeTriggeredProgressMonitorDialog.access$6(TimeTriggeredProgressMonitorDialog.java:1)
      2. org.eclipse.ui.internal.operations.TimeTriggeredProgressMonitorDialog$2.run(TimeTriggeredProgressMonitorDialog.java:203)
      2 frames
    29. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    30. Workbench
      OperationHistoryActionHandler.run
      1. org.eclipse.ui.internal.operations.TimeTriggeredProgressMonitorDialog.run(TimeTriggeredProgressMonitorDialog.java:216)
      2. org.eclipse.ui.operations.OperationHistoryActionHandler.run(OperationHistoryActionHandler.java:326)
      2 frames
    31. JFace
      Action.runWithEvent
      1. org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      1 frame
    32. Workbench
      LegacyHandlerWrapper.execute
      1. org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
      2. org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
      2 frames
    33. Commands
      ParameterizedCommand.executeWithChecks
      1. org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
      2. org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      2 frames
    34. Workbench
      WorkbenchKeyboard$KeyDownFilter.handleEvent
      1. org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
      2. org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
      3. org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
      4. org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
      5. org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
      6. org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
      7. org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
      7 frames
    35. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      2. org.eclipse.swt.widgets.Display.filterEvent(Display.java:1524)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
      6. org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)
      7. org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)
      8. org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2841)
      9. org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
      10. org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
      11. org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
      12. org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
      12 frames
    36. org.eclipse.swt
      OS.gtk_main_do_event
      1. org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8189)
      2 frames
    37. RWT
      Display.eventProc
      1. org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
      1 frame
    38. org.eclipse.swt
      OS.g_main_context_iteration
      1. org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
      2. org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2237)
      2 frames
    39. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
      1 frame
    40. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      4 frames
    41. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    42. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      1 frame
    43. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    44. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
      1 frame
    45. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    46. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    47. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    48. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1408)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1384)
      4 frames