javax.swing.text.StateInvariantError

GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Oracle Community by 843805, 8 months ago
    GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
  • via Oracle Community by 807587, 11 months ago
    GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
  • via Oracle Community by 807587, 11 months ago
    GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive
  • Stack trace

    • javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GlyphView.getText(GlyphView.java:106) at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:95) at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:439) at javax.swing.text.GlyphView.paint(GlyphView.java:430) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.text.ParagraphView.paint(ParagraphView.java:569) at javax.swing.text.html.ParagraphView.paint(ParagraphView.java:220) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.text.html.BlockView.paint(BlockView.java:264) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.text.html.BlockView.paint(BlockView.java:264) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.text.html.BlockView.paint(BlockView.java:264) at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1319) at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:636) at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:770) at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:749) at javax.swing.JComponent.paintComponent(JComponent.java:541) at javax.swing.JComponent.paint(JComponent.java:808) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740) at javax.swing.JComponent._paintImmediately(JComponent.java:4685) at javax.swing.JComponent.paintImmediately(JComponent.java:4488) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.