javax.swing.text.BadLocationException: Invalid location

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:102)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:95)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:395)
at javax.swing.text.GlyphView.paint(GlyphView.java:386)
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:568)
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.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1248)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:565)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:699)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:678)
at javax.swing.JComponent.paintComponent(JComponent.java:537)
at javax.swing.JComponent.paint(JComponent.java:804)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4735)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
at javax.swing.JComponent._paintImmediately(JComponent.java:4632)
at javax.swing.JComponent.paintImmediately(JComponent.java:4464)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:404)
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:443)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.