java.lang.IndexOutOfBoundsException: Wrong line: 20. Available lines count: 16

GitHub | shanaithal | 4 weeks 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

    Wrong line: 20. Available lines count: 16

    GitHub | 4 weeks ago | shanaithal
    java.lang.IndexOutOfBoundsException: Wrong line: 20. Available lines count: 16
  2. 0

    Incorrect handling of multiple classes with same package and name (in different modules)

    GitHub | 11 months ago | michalkochanowicz
    java.lang.IndexOutOfBoundsException: Wrong line: 456. Available lines count: 313
  3. 0

    java.lang.IndexOutOfBoundsException

    GitHub | 6 months ago | sis-yoshiday
    java.lang.IndexOutOfBoundsException: Wrong line: 56. Available lines count: 17
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Execption while using tree.expandPath() method??

    Oracle Community | 1 decade ago | 843805
    java.lang.ClassCastException
  6. 0

    exception in python run configuration

    YouTrack | 7 years ago
    java.lang.NoSuchMethodError: javax.swing.AbstractButton.setHideActionText(Z)V

    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

      Wrong line: 20. Available lines count: 16

      at com.intellij.openapi.editor.impl.LineSet.b()
    2. IDEA
      DocumentImpl.getLineStartOffset
      1. com.intellij.openapi.editor.impl.LineSet.b(LineSet.java:200)
      2. com.intellij.openapi.editor.impl.LineSet.getLineStart(LineSet.java:185)
      3. com.intellij.openapi.editor.impl.DocumentImpl.getLineStartOffset(DocumentImpl.java:920)
      3 frames
    3. org.twodividedbyzero.idea
      BugTree$SelectionListenerImpl.valueChanged
      1. org.twodividedbyzero.idea.findbugs.gui.toolwindow.view.BugTreePanel.createEditor(BugTreePanel.java:216)
      2. org.twodividedbyzero.idea.findbugs.gui.toolwindow.view.BugTreePanel.setPreview(BugTreePanel.java:172)
      3. org.twodividedbyzero.idea.findbugs.gui.tree.view.BugTree$SelectionListenerImpl.valueChanged(BugTree.java:316)
      3 frames
    4. Java RT
      BasicTreeUI$Handler.mousePressed
      1. javax.swing.JTree.fireValueChanged(JTree.java:2927)
      2. javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3391)
      3. javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
      4. javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
      5. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294)
      6. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188)
      7. javax.swing.JTree.setSelectionPath(JTree.java:1634)
      8. javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393)
      9. javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3609)
      10. javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548)
      10 frames
    5. IDEA
      MouseEventAdapter.mousePressed
      1. com.intellij.util.ui.MouseEventAdapter.mousePressed(MouseEventAdapter.java:45)
      1 frame
    6. Java RT
      EventQueue.dispatchEvent
      1. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
      2. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
      3. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
      4. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
      5. java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
      6. java.awt.Component.processMouseEvent(Component.java:6530)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      8. java.awt.Component.processEvent(Component.java:6298)
      9. java.awt.Container.processEvent(Container.java:2236)
      10. java.awt.Component.dispatchEventImpl(Component.java:4889)
      11. java.awt.Container.dispatchEventImpl(Container.java:2294)
      12. java.awt.Component.dispatchEvent(Component.java:4711)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4522)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      16. java.awt.Container.dispatchEventImpl(Container.java:2280)
      17. java.awt.Window.dispatchEventImpl(Window.java:2746)
      18. java.awt.Component.dispatchEvent(Component.java:4711)
      19. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
      20. java.awt.EventQueue.access$500(EventQueue.java:98)
      21. java.awt.EventQueue$3.run(EventQueue.java:715)
      22. java.awt.EventQueue$3.run(EventQueue.java:709)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      25. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
      26. java.awt.EventQueue$4.run(EventQueue.java:737)
      27. java.awt.EventQueue$4.run(EventQueue.java:735)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
      30 frames
    7. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:818)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:651)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
      3 frames
    8. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames