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 119755 - CME: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=1 != upToDateModCount=3 from HighlightingDrawLayer
Summary: CME: Caller uses obsolete token sequence which is no longer valid. Underlying...
Status: RESOLVED DUPLICATE of bug 116939
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-10-23 12:02 UTC by Marek Fukala
Modified: 2007-11-05 13:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2007-10-23 12:02:54 UTC
Following exception has been thrown after JSP file opening. Cannot reproduce anymore. After the exception the text was
just black.

WARNING [org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer]: The layer failed to supply
highlights: org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting@17249e3
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying
token hierarchy has been modified: modCount=1 != upToDateModCount=3
Please report against caller's module which needs to be fixed (not the lexer module).
        at org.netbeans.api.lexer.TokenSequence.checkModCount(TokenSequence.java:752)
        at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:397)
        at
org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:534)
        at
org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:545)
        at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:271)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:574)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:182)
[catch] at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:296)
        at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:165)
        at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:565)
        at org.netbeans.editor.HighlightingDrawLayer.isActive(HighlightingDrawLayer.java:292)
        at org.netbeans.editor.DrawEngine.drawArea(DrawEngine.java:863)
        at org.netbeans.editor.DrawEngine.drawInternal(DrawEngine.java:1139)
        at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1045)
        at org.netbeans.editor.DrawEngineLineView.getModel2ViewRect(DrawEngineLineView.java:413)
        at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:482)
        at org.netbeans.editor.DrawEngineLineView.getPreferredSpan(DrawEngineLineView.java:305)
        at org.netbeans.editor.DrawEngineLineView.minorAxisUpdateLayout(DrawEngineLineView.java:802)
        at org.netbeans.editor.DrawEngineLineView.updateLayout(DrawEngineLineView.java:757)
        at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:900)
        at org.netbeans.lib.editor.view.GapBoxViewChildren.childrenUpdateLayout(GapBoxViewChildren.java:905)
        at org.netbeans.lib.editor.view.GapBoxView.updateLayout(GapBoxView.java:750)
        at org.netbeans.lib.editor.view.GapBoxView.directUpdateLayout(GapBoxView.java:898)
        at org.netbeans.lib.editor.view.GapDocumentView.directUpdateLayout(GapDocumentView.java:187)
        at org.netbeans.lib.editor.view.GapBoxView.markLayoutInvalid(GapBoxView.java:885)
        at org.netbeans.lib.editor.view.GapBoxViewChildren.markLayoutInvalid(GapBoxViewChildren.java:859)
        at org.netbeans.lib.editor.view.GapBoxView.preferenceChanged(GapBoxView.java:1273)
        at org.netbeans.editor.DrawEngineLineView.setEstimatedSpan(DrawEngineLineView.java:184)
        at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:454)
        at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:441)
        at org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1501)
        at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:420)
        at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1496)
        at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1034)
        at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1009)
        at org.netbeans.editor.GlyphGutter.paintComponent(GlyphGutter.java:527)
        at javax.swing.JComponent.paint(JComponent.java:1027)
...
Comment 1 Vitezslav Stejskal 2007-10-24 10:32:04 UTC
Milo, any ideas? You've been making fixes in this area recently, haven't you?
Comment 2 Miloslav Metelka 2007-10-30 11:12:25 UTC
Should be dup of issue 116939 very likely.

*** This issue has been marked as a duplicate of 116939 ***