This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164679 - javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive
Summary: javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text...
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ide
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 176172 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-07 13:16 UTC by pribyl
Modified: 2009-11-11 08:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 150772


Attachments
stacktrace (3.81 KB, text/plain)
2009-05-07 13:18 UTC, pribyl
Details
Msg log (32.14 KB, text/plain)
2009-05-07 14:11 UTC, pribyl
Details
stacktrace (3.81 KB, text/plain)
2009-05-11 13:48 UTC, matusdekanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pribyl 2009-05-07 13:18:02 UTC
Build: NetBeans IDE Dev (Build 200905051401)
VM: Java HotSpot(TM) Client VM, 14.0-b12, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b03
OS: Windows XP, 5.1, x86

User Comments:
pribyl: I created new JPanel Form in existing Java Project, placed a JToggleButton into it, following by JLabel (placed next to the togglebutton). -> This StateInvariantError occured.



Stacktrace: 
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive
        at javax.swing.text.GlyphView.getText(GlyphView.java:118)
        at javax.swing.text.GlyphView.getBreakSpotUseWhitespace(GlyphView.java:740)
        at javax.swing.text.GlyphView.getBreakSpot(GlyphView.java:732)
        at javax.swing.text.GlyphView.breakView(GlyphView.java:704)
        at javax.swing.text.html.InlineView.breakView(InlineView.java:165)
        at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:510)
Comment 1 pribyl 2009-05-07 13:18:29 UTC
Created attachment 81730 [details]
stacktrace
Comment 2 pribyl 2009-05-07 14:11:24 UTC
Created attachment 81732 [details]
Msg log
Comment 3 pribyl 2009-05-07 14:17:53 UTC
Unfortunately, I was not able to reproduce this with clear userdir.
I am attaching the messages.log, maybe it will help to track the problem.

Otherwise I guess this can be closed as worksforme. At least until I figure out how to reproduce :)
Comment 4 matusdekanek 2009-05-11 13:48:01 UTC
Build: NetBeans IDE Dev (Build 200905110201)
VM: Java HotSpot(TM) Client VM, 14.0-b12, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b03
OS: Windows XP, 5.1, x86

User Comments: 
designing, using a palette

Stacktrace: 
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Length must be positive
        at javax.swing.text.GlyphView.getText(GlyphView.java:118)
        at javax.swing.text.GlyphView.getBreakSpotUseWhitespace(GlyphView.java:740)
        at javax.swing.text.GlyphView.getBreakSpot(GlyphView.java:732)
        at javax.swing.text.GlyphView.breakView(GlyphView.java:704)
        at javax.swing.text.html.InlineView.breakView(InlineView.java:165)
        at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:510)
Comment 5 matusdekanek 2009-05-11 13:48:06 UTC
Created attachment 81891 [details]
stacktrace
Comment 6 Jan Stola 2009-05-22 10:43:23 UTC
This issue is a JDK bug 6818231, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6818231
This problem doesn't occur in 1.6.0_12, but occurs in 1.6.0_14-ea-b03. It is claimed to be fixed in 1.6.0_14-b04.
Comment 7 Jan Stola 2009-11-11 08:18:25 UTC
*** Bug 176172 has been marked as a duplicate of this bug. ***