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 138586 - AssertionError: ModCount already updated
Summary: AssertionError: ModCount already updated
Status: RESOLVED DUPLICATE of bug 143759
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 09:34 UTC by davideconsonni
Modified: 2008-08-14 07:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 70724


Attachments
error page (4.83 KB, text/plain)
2008-06-30 09:37 UTC, davideconsonni
Details
stacktrace (1.91 KB, text/plain)
2008-07-29 23:05 UTC, sunbiz
Details
stacktrace (1.80 KB, text/plain)
2008-07-31 00:34 UTC, _ deva
Details
stacktrace (1.91 KB, text/plain)
2008-08-03 04:02 UTC, sunbiz
Details
stacktrace (1.91 KB, text/plain)
2008-08-04 10:26 UTC, josko_s
Details
stacktrace (1.91 KB, text/plain)
2008-08-06 21:42 UTC, jsr
Details
stacktrace (1.91 KB, text/plain)
2008-08-07 13:46 UTC, jonycus
Details
stacktrace (1.80 KB, text/plain)
2008-08-10 20:01 UTC, _ krystyna
Details
stacktrace (51 bytes, text/plain)
2008-08-13 00:40 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davideconsonni 2008-06-30 09:34:39 UTC
Build: NetBeans IDE Dev (Build 080630)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Linux, 2.6.25.7-smp, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:410)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:290)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:572)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.updateCreateOrRemoveEmbedding(TokenHierarchyUpdate.java:204)
        at org.netbeans.lib.lexer.EmbeddingContainer.createEmbedding(EmbeddingContainer.java:282)
        at org.netbeans.api.lexer.TokenSequence.createEmbedding(TokenSequence.java:418)
        at org.netbeans.modules.html.editor.coloring.EmbeddingUpdater.createEmbedding(EmbeddingUpdater.java:303)
Comment 1 davideconsonni 2008-06-30 09:37:14 UTC
Created attachment 63663 [details]
error page
Comment 2 sunbiz 2008-07-29 23:04:53 UTC
Build: NetBeans IDE Dev (Build 080728)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
Reformat code in JSP page with Alt+Shift+F

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:421)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:278)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:551)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 3 sunbiz 2008-07-29 23:05:02 UTC
Created attachment 65998 [details]
stacktrace
Comment 4 _ deva 2008-07-31 00:34:01 UTC
Build: NetBeans IDE Dev (Build 080730)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
Debug URL cnn.com, open http://www.cnn.com from Debug|sources window

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:421)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:278)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:551)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 5 _ deva 2008-07-31 00:34:04 UTC
Created attachment 66130 [details]
stacktrace
Comment 6 sunbiz 2008-08-03 04:02:12 UTC
Build: NetBeans IDE Dev (Build 080802)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 
Format source code in JSP file

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:423)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:285)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:556)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 7 sunbiz 2008-08-03 04:02:21 UTC
Created attachment 66407 [details]
stacktrace
Comment 8 josko_s 2008-08-04 10:26:27 UTC
Build: NetBeans IDE Dev (Build 200808021401)
VM: Java HotSpot(TM) Client VM, 1.5.0_07-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_07-b03
OS: Windows XP, 5.1, x86

User Comments: 
writing an URL to a .jsp file in an old project imported from nb 6.1
<%@ include file="/lib/...

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:423)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:285)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:556)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 9 josko_s 2008-08-04 10:26:46 UTC
Created attachment 66457 [details]
stacktrace
Comment 10 Miloslav Metelka 2008-08-05 11:33:48 UTC
josko_s and sunbiz:
Could you please attach the source of the problematic jsp? Thanks.
I've tried on all my testing jsps but wasn't able to reproduce the problem.
Comment 11 jsr 2008-08-06 21:41:58 UTC
Build: NetBeans IDE Dev (Build 200808021401)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
doing a diff on an updated file

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:423)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:285)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:556)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 12 jsr 2008-08-06 21:42:02 UTC
Created attachment 66734 [details]
stacktrace
Comment 13 jonycus 2008-08-07 13:46:39 UTC
Build: NetBeans IDE Dev (Build 200807080009)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, amd64

User Comments: 


Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:421)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:278)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:549)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 14 jonycus 2008-08-07 13:46:42 UTC
Created attachment 66814 [details]
stacktrace
Comment 15 _ krystyna 2008-08-10 20:01:36 UTC
Build: NetBeans IDE Dev (Build 20080810014251)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86

User Comments: 
second debug url launch, new userdir, extensions installed prior (not this pass)

Stacktrace: 
java.lang.AssertionError: ModCount already updated
        at org.netbeans.lib.lexer.EmbeddedTokenList.replaceTokens(EmbeddedTokenList.java:423)
        at org.netbeans.lib.lexer.inc.JoinTokenListChange.replaceTokens(JoinTokenListChange.java:285)
        at org.netbeans.lib.lexer.inc.MutableJoinTokenList.replaceTokens(MutableJoinTokenList.java:89)
        at org.netbeans.lib.lexer.inc.TokenListUpdater.updateJoined(TokenListUpdater.java:556)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:333)
        at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:215)
Comment 16 _ krystyna 2008-08-10 20:01:45 UTC
Created attachment 66972 [details]
stacktrace
Comment 17 _ krystyna 2008-08-13 00:40:11 UTC
Build: NetBeans IDE Dev (Build 200808121401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: SunOS, 5.10, sparc

User Comments: 


Stacktrace: 
java.lang.AssertionError: ModCount already updated
Comment 18 _ krystyna 2008-08-13 00:40:14 UTC
Created attachment 67197 [details]
stacktrace
Comment 19 David Konecny 2008-08-14 02:34:58 UTC
Mila, I can always reproduce it:
* create a web application
* under Web pages create New->HTML
* in created HTML file after </body> paste following code:

  <div class="demobox">
    <div class="contentBox"><a href="javascript://" onclick="$(this).up('.contentBox').fade(); return false;">Click me
for Effect.Fade demo</a></div>
  </div>

  <div class="demobox">

That always gives me the exception. Hope that help, David.
Comment 20 Jiri Prox 2008-08-14 07:16:19 UTC
Marking as duplicate of higher priority bug

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