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 137668 - AssertionError: ').submit()document.getElementById(ack_form'1:E
Summary: AssertionError: ').submit()document.getElementById(ack_form'1:E
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 09:46 UTC by davideconsonni
Modified: 2008-07-04 04:31 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 66705


Attachments
jsp (4.29 KB, text/plain)
2008-06-19 09:47 UTC, davideconsonni
Details
stacktrace (1.81 KB, text/plain)
2008-06-19 16:09 UTC, Tomas Mysik
Details
stacktrace (1.84 KB, text/plain)
2008-06-20 09:07 UTC, kawazu428
Details
stacktrace (4.82 KB, text/plain)
2008-06-20 13:11 UTC, dynamite
Details
stacktrace (4.82 KB, text/plain)
2008-06-20 13:16 UTC, dynamite
Details
stacktrace (5.14 KB, text/plain)
2008-06-21 00:16 UTC, jamespb
Details
stacktrace (5.14 KB, text/plain)
2008-06-22 18:52 UTC, jamespb
Details
stacktrace (1.83 KB, text/plain)
2008-06-26 18:57 UTC, Jesse Glick
Details
stacktrace (5.88 KB, text/plain)
2008-07-01 17:08 UTC, Jindrich Sedek
Details
another file to reproduce the problem (5.16 KB, text/plain)
2008-07-01 17:16 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davideconsonni 2008-06-19 09:46:21 UTC
Build: NetBeans IDE Dev (Build 080618)
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.4-smp, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.AssertionError: ').submit()document.getElementById(ack_form'1:E
        at org.mozilla.javascript.TokenStream.getToken(TokenStream.java:358)
        at org.netbeans.modules.javascript.editing.lexer.JsLexer.nextToken(JsLexer.java:195)
        at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:178)
        at org.netbeans.lib.lexer.JoinTokenList.init(JoinTokenList.java:104)
        at org.netbeans.lib.lexer.TokenListList.<init>(TokenListList.java:128)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenListList(TokenHierarchyOperation.java:408)
        at org.netbeans.lib.lexer.EmbeddingContainer.embeddedTokenList(EmbeddingContainer.java:173)
        at org.netbeans.api.lexer.TokenSequence.embeddedImpl(TokenSequence.java:353)
        at org.netbeans.api.lexer.TokenSequence.embedded(TokenSequence.java:301)
        at
org.netbeans.modules.html.editor.coloring.EmbeddingHighlightsContainer$Highlights._moveNext(EmbeddingHighlightsContainer.java:208)
Comment 1 davideconsonni 2008-06-19 09:47:00 UTC
Created attachment 63060 [details]
jsp
Comment 2 Exceptions Reporter 2008-06-19 14:20:39 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=66705
Comment 3 Tomas Mysik 2008-06-19 16:09:39 UTC
Created attachment 63116 [details]
stacktrace
Comment 4 Tomas Mysik 2008-06-19 16:14:22 UTC
Not sure about the component - please reassign if needed, thanks.

To reproduce, try to open http://www.netbeans.org/nonav/issues/showattachment.cgi/60360/autoScriptSetup.jsp, there are 
plenty of JS errors in this file.
Comment 5 Tomas Mysik 2008-06-19 16:23:21 UTC
Marku, do you know who should take a look at this issue please? Thanks a lot.
Comment 6 Marek Fukala 2008-06-19 16:35:11 UTC
lexer issue I belive. There is currently a P1 assigned to Mila causing a lot of problems especially in editors with many
embeddings - see issue 137579.
Comment 7 kawazu428 2008-06-20 09:07:08 UTC
Created attachment 63147 [details]
stacktrace
Comment 8 dynamite 2008-06-20 13:11:36 UTC
Created attachment 63161 [details]
stacktrace
Comment 9 dynamite 2008-06-20 13:16:00 UTC
Created attachment 63162 [details]
stacktrace
Comment 10 jamespb 2008-06-21 00:16:16 UTC
Created attachment 63191 [details]
stacktrace
Comment 11 jamespb 2008-06-22 18:52:04 UTC
Created attachment 63220 [details]
stacktrace
Comment 12 Jesse Glick 2008-06-26 18:57:22 UTC
Created attachment 63535 [details]
stacktrace
Comment 13 Jesse Glick 2008-06-26 18:59:10 UTC
33 duplicates!
Comment 14 giorgio42 2008-06-27 22:51:41 UTC
Took the liberty to change this to a P1. It causes an annoying exception bombardment on each NB startup.

As the exception occurs with build 200806271402 http://www.netbeans.org/issues/show_bug.cgi?id=137579 is either not
fixed or does not fix this issue.

Georg

Comment 15 Miloslav Metelka 2008-06-30 17:25:30 UTC
I'm already working on a fix. I expect to have it ready tomorrow.
Comment 16 Jindrich Sedek 2008-07-01 17:08:59 UTC
Created attachment 63765 [details]
stacktrace
Comment 17 Jindrich Sedek 2008-07-01 17:16:30 UTC
Created attachment 63766 [details]
another file to reproduce the problem
Comment 18 Jan Lahoda 2008-07-02 17:44:48 UTC
The original change in lexer which caused this problem (f6b2e0181e07) has been rolled back in 6.5M1 branch as well as
any subsequent changes in lexer (the rollback affected only files in the lexer module, files in other modules remain
untouched). This problem shouldn't be reproducible anymore in the 6.5M1 branch, and so this bug should no longer be a
stopper for M1.

http://hg.netbeans.org/release65_m1?cmd=changeset;node=a413d7e43d64
Comment 19 Exceptions Reporter 2008-07-03 03:53:45 UTC
This issue has already 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=66705
Comment 20 Miloslav Metelka 2008-07-03 18:08:10 UTC
Finally I have a fix that should eliminate the problem. Besides unit tests I have tested it on my >20 testing jsps and I
did not encounter any problem so far.
 I have rewritten the join sections relexing considerably to be more readable and stable. This should eliminate most of
other recently enetered problems too.

http://hg.netbeans.org/main/rev/68f150822f13
Comment 21 Quality Engineering 2008-07-04 04:31:10 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #298 build
Changeset: http://hg.netbeans.org/main/rev/68f150822f13
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #137668 - AssertionError: ').submit()document.getElementById(ack_form'1:E.