javax.swing.text.BadLocationException: Invalid location

java.com | 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

    Bug ID: JDK-4765331 JEditorPane editing: Ctrl-A + Delete on wrapped HTML throws BadLocationException

    java.com | 6 months ago
    javax.swing.text.BadLocationException: Invalid location

    Root Cause Analysis

    1. javax.swing.text.BadLocationException

      Invalid location

      at javax.swing.text.GlyphView.getText()
    2. Java RT
      EventDispatchThread.run
      1. javax.swing.text.GlyphView.getText(GlyphView.java:102)
      2. javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:95)
      3. javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:395)
      4. javax.swing.text.GlyphView.paint(GlyphView.java:386)
      5. javax.swing.text.BoxView.paintChild(BoxView.java:144)
      6. javax.swing.text.BoxView.paint(BoxView.java:407)
      7. javax.swing.text.BoxView.paintChild(BoxView.java:144)
      8. javax.swing.text.BoxView.paint(BoxView.java:407)
      9. javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
      10. javax.swing.text.html.ParagraphView.paint(ParagraphView.java:220)
      11. javax.swing.text.BoxView.paintChild(BoxView.java:144)
      12. javax.swing.text.BoxView.paint(BoxView.java:407)
      13. javax.swing.text.html.BlockView.paint(BlockView.java:264)
      14. javax.swing.text.BoxView.paintChild(BoxView.java:144)
      15. javax.swing.text.BoxView.paint(BoxView.java:407)
      16. javax.swing.text.html.BlockView.paint(BlockView.java:264)
      17. javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1248)
      18. javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:565)
      19. javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:699)
      20. javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:678)
      21. javax.swing.JComponent.paintComponent(JComponent.java:537)
      22. javax.swing.JComponent.paint(JComponent.java:804)
      23. javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4735)
      24. javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
      25. javax.swing.JComponent._paintImmediately(JComponent.java:4632)
      26. javax.swing.JComponent.paintImmediately(JComponent.java:4464)
      27. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:404)
      28. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
      29. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      30. java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
      31. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
      32. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
      33. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
      34. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
      35. java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
      35 frames