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 181711 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=174 != upToDateModCount=176 Please repor
Summary: java.util.ConcurrentModificationException: Caller uses obsolete token sequenc...
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 181266 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-09 10:48 UTC by Petr Jiricka
Modified: 2011-11-01 15:14 UTC (History)
30 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166161


Attachments
stacktrace (3.01 KB, text/plain)
2010-03-09 10:48 UTC, Petr Jiricka
Details
stacktrace (3.00 KB, text/plain)
2010-03-31 09:00 UTC, Peter Pis
Details
stacktrace (3.08 KB, text/plain)
2010-04-27 02:11 UTC, Baiazid
Details
stacktrace (3.08 KB, text/plain)
2010-05-06 08:44 UTC, Kenneth Ganfield
Details
stacktrace (3.08 KB, text/plain)
2010-05-13 11:55 UTC, Peter Pis
Details
stacktrace (2.93 KB, text/plain)
2010-11-19 20:45 UTC, Maksim Khramov
Details
stacktrace (2.93 KB, text/plain)
2011-03-01 10:13 UTC, Martin Fousek
Details
stacktrace (3.00 KB, text/plain)
2011-03-21 06:15 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-03-09 10:48:20 UTC
Build: NetBeans IDE Dev (Build web-main-2745-on-100309)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125
OS: Mac OS X

User Comments:
pjiricka: Accepting code completion in Maven POM file.




Stacktrace: 
java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=174 != upToDateModCount=176
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.move(TokenSequence.java:629)
   at org.netbeans.modules.xml.schema.completion.CompletionResultItem.getInsertingText(CompletionResultItem.java:226)
   at org.netbeans.modules.xml.schema.completion.EndTagResultItem$1.run(EndTagResultItem.java:110)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:311)
   at org.netbeans.modules.xml.schema.completion.EndTagResultItem.replaceText(EndTagResultItem.java:104)
Comment 1 Petr Jiricka 2010-03-09 10:48:24 UTC
Created attachment 94934 [details]
stacktrace
Comment 2 Peter Pis 2010-03-31 09:00:56 UTC
Created attachment 96403 [details]
stacktrace

Editing "web.xml" file that doesn't belong to web app project.
Comment 3 Exceptions Reporter 2010-03-31 09:01:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=166161
Comment 4 Baiazid 2010-04-27 02:11:05 UTC
Created attachment 98090 [details]
stacktrace

I was writing this:

    <filter-mapping>
        <filter-name>Pretty Filter</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD

and I just press autocomplete button (expecting </dispatcher>
Comment 5 Kenneth Ganfield 2010-05-06 08:44:27 UTC
Created attachment 98544 [details]
stacktrace

editing pom.xml
Comment 6 Exceptions Reporter 2010-05-12 19:13:28 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=166161
Comment 7 Peter Pis 2010-05-13 11:55:30 UTC
Created attachment 98930 [details]
stacktrace

Entering CC suggestion while editing DD.
Comment 8 Maksim Khramov 2010-11-19 20:45:32 UTC
Created attachment 103119 [details]
stacktrace
Comment 9 Martin Fousek 2011-03-01 10:13:14 UTC
Created attachment 106586 [details]
stacktrace

- called code completion on </res-ref-name> tag in ejb-jar.xml
Comment 10 Martin Fousek 2011-03-21 06:15:59 UTC
Created attachment 107144 [details]
stacktrace

in faces-config.xml confirmed offered CC for closing <to-view-id> tag
Comment 11 Marian Mirilovic 2011-10-31 10:22:47 UTC
106 duplicates ... at least P2
Comment 12 Svata Dedic 2011-10-31 13:53:12 UTC
Changeset: 00f13e48d892
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2011-10-31 14:53
Message:   #181711: must acquire token sequence under lock.
Issue #181711 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=174 != upToDateModCount=176 Please repor: fixed
Comment 13 Svata Dedic 2011-11-01 11:40:29 UTC
*** Bug 181266 has been marked as a duplicate of this bug. ***
Comment 14 Quality Engineering 2011-11-01 15:14:01 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/00f13e48d892
User: Svata Dedic <sdedic@netbeans.org>
Log: #181711: must acquire token sequence under lock.
Issue #181711 - java.util.ConcurrentModificationException: Caller uses obsolete token sequence which is no longer valid. Underlying token hierarchy has been modified: modCount=174 != upToDateModCount=176 Please repor: fixed