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 167972 - ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid.
Summary: ConcurrentModificationException: Caller uses obsolete token sequence which is...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 15:29 UTC by Alexandr Scherbatiy
Modified: 2009-09-14 10:37 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 Alexandr Scherbatiy 2009-07-01 15:29:06 UTC
marina-netbeans-plugin: #190

  Product Version         = NetBeans IDE 6.7 (Build 200906241340)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_12-ea; Java HotSpot(TM) Client VM 11.2-b01; Sun Microsystems Inc.

From time to time I see the following exception in the editor:
------------------------------------------------------
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying
token hierarchy has been modified: modCount=156 != upToDateModCount=157
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.javafx.editor.fold.JavaFXElementFoldManager$JavaFXElementFoldVisitor.addCommentsFolds(JavaFXElementFoldManager.java:364)
	at
org.netbeans.modules.javafx.editor.fold.JavaFXElementFoldManager$JavaFXElementFoldVisitor.access$400(JavaFXElementFoldManager.java:342)
	at
org.netbeans.modules.javafx.editor.fold.JavaFXElementFoldManager$JavaFXElementFoldTask.run(JavaFXElementFoldManager.java:228)
	at
org.netbeans.modules.javafx.editor.fold.JavaFXElementFoldManager$JavaFXElementFoldTask.run(JavaFXElementFoldManager.java:173)
	at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:200)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------
Comment 1 Alexandr Scherbatiy 2009-07-02 09:26:25 UTC
One more ConcurrentModificationException:

java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying
token hierarchy has been modified: modCount=814 != upToDateModCount=815
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.movePrevious(TokenSequence.java:496)
	at org.netbeans.modules.javafx.navigation.CaretListeningTask.run(CaretListeningTask.java:127)
	at org.netbeans.modules.javafx.navigation.CaretListeningTask.run(CaretListeningTask.java:79)
	at org.netbeans.modules.javafx.source.scheduler.CompilationJob.run(CompilationJob.java:200)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 2 Anton Chechel 2009-07-14 17:34:39 UTC
fixed
Comment 3 Alexandr Scherbatiy 2009-09-14 10:37:56 UTC
unable to reproduce in the latest builds