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 268403 - AssertionError: should never have two equal TokenSequence TokenSequence for text/x-jsp/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 3 tokens: *[0]: """ <73120,73121> VALUE[9
Summary: AssertionError: should never have two equal TokenSequence TokenSequence for t...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: Editing infrastructure (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 268520 268576 268695 268750 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-07 10:13 UTC by Maksim Khramov
Modified: 2018-03-24 20:11 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226642


Attachments
stacktrace (5.25 KB, text/plain)
2016-10-07 10:13 UTC, Maksim Khramov
Details
stacktrace (5.31 KB, text/plain)
2017-04-03 05:52 UTC, brettryan
Details
stacktrace (6.12 KB, text/plain)
2017-05-05 18:16 UTC, cwt137
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2016-10-07 10:13:40 UTC
This bug was originally marked as duplicate of bug 268097, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201610070002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.111-b09, Java(TM) SE Runtime Environment, 1.8.0_111-b09
OS: Windows 7

User Comments:
GUEST: edit

GUEST: Edit file

mkhramov: Open and try to edit JSF JSP file




Stacktrace: 
java.lang.AssertionError: should never have two equal TokenSequence TokenSequence for text/x-jsp/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 3 tokens:
*[0]: """ <73120,73121> VALUE[9] ParT[2/2], st=HLS(hc=-1778154212,s=9,tag=h:outputText), @7b6d0950
T[1]: "/>" F(2) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), @732e380f
T[2]: ";\n                                                                tsu(rowId);\n                                                            " <73123,73261> TEXT[0] ParT[1/3], @1fc16210

 text/html, LH: org.netbeans.api.html.lexer.HTMLTokenId$1
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:281)
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:278)
   at java.util.TimSort.gallopRight(TimSort.java:656)
   at java.util.TimSort.mergeHi(TimSort.java:859)
   at java.util.TimSort.mergeAt(TimSort.java:516)
   at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
Comment 1 Maksim Khramov 2016-10-07 10:13:42 UTC
Created attachment 162389 [details]
stacktrace
Comment 2 Maksim Khramov 2016-10-07 11:43:10 UTC
Here is the code mentioned in assert
<script type="text/javascript">
<!-- Next script will called every time container cell/row/table/page rerendered -->
var rowId = <h:outputText escape="false" value="#{rkvar}"/>;
tsu(rowId);
</script>
Comment 3 Milutin Kristofic 2016-11-02 14:22:16 UTC
*** Bug 268520 has been marked as a duplicate of this bug. ***
Comment 4 Milutin Kristofic 2016-11-02 14:22:23 UTC
*** Bug 268576 has been marked as a duplicate of this bug. ***
Comment 5 Milutin Kristofic 2016-11-02 14:22:32 UTC
*** Bug 268695 has been marked as a duplicate of this bug. ***
Comment 6 Milutin Kristofic 2016-11-02 14:22:45 UTC
*** Bug 268750 has been marked as a duplicate of this bug. ***
Comment 7 brettryan 2017-04-03 05:52:10 UTC
Created attachment 164004 [details]
stacktrace

Trying to paste template content (invalid) so I can construct a JSON object from.
Comment 8 terje7601 2017-04-10 07:47:59 UTC
Once I get this error, I can no longer hit Enter or Tab without getting it again.

Product Version: NetBeans IDE Dev (Build 201703100002)
Updates: Updates available
Java: 1.8.0_121; OpenJDK 64-Bit Server VM 25.121-b14
Runtime: OpenJDK Runtime Environment 1.8.0_121-b14
System: Linux version 4.10.8-200.fc25.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 9 cwt137 2017-05-05 18:16:15 UTC
Created attachment 164262 [details]
stacktrace

typing inside a script tag