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 177573 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=4 != upToDateModCount=5 Please report ag
Summary: java.util.ConcurrentModificationException: Caller uses obsolete token sequenc...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@editor
URL:
Keywords:
: 180313 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-25 05:06 UTC by FrantaM
Modified: 2010-02-05 02:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 160485


Attachments
stacktrace (3.30 KB, text/plain)
2009-11-25 05:06 UTC, FrantaM
Details
stacktrace (3.30 KB, text/plain)
2009-11-25 10:17 UTC, velodiver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FrantaM 2009-11-25 05:06:10 UTC
Build: NetBeans IDE Dev (Build 200911220201)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows 7, 6.1, amd64

User Comments:
dreidmg: open xhtml jsp

dreidmg: open xhtml jsp

facilityderek: Using the internal Diff viewer trasferred an update from one file to the other committing a single differerence.

FrantaM: Opened a JSP file. 
The code is not highlighed, text color is white, except: 
- scriptlets
Actually only classes and methods seems to be colored properly.
- css properties (values are not)

GUEST: opening file from search result that is already open



Stacktrace: 
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=4 != upToDateModCount=5
Please report against caller's module which needs to be fixed (not the lexer module).
        at org.netbeans.api.lexer.TokenSequence.checkModCount(TokenSequence.java:745)
        at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:451)
        at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:574)
        at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:290)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer$3.moveNext(CompoundHighlightsContainer.java:303)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:743)
Comment 1 FrantaM 2009-11-25 05:06:14 UTC
Created attachment 91663 [details]
stacktrace
Comment 2 velodiver 2009-11-25 10:17:00 UTC
Created attachment 91688 [details]
stacktrace
Comment 3 Exceptions Reporter 2009-12-04 09:50:59 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160485
Comment 4 Exceptions Reporter 2010-01-21 05:45:09 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=160485
Comment 5 Vitezslav Stejskal 2010-02-02 07:50:37 UTC
http://hg.netbeans.org/jet-main/rev/5083b9dd0d1c
Comment 6 Quality Engineering 2010-02-03 21:57:24 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5083b9dd0d1c
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #177573: check for concurrent modifications in TokenSequence that is being rendered
Comment 7 Vitezslav Stejskal 2010-02-05 02:38:32 UTC
*** Bug 180313 has been marked as a duplicate of this bug. ***