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 270323

Summary: AssertionError: should never have two equal TokenSequence TokenSequence for text/x-jsp/text/html at tokenIndex=0. TokenList contains 12 tokens: *[ 0]: "\n\t$(function(){\n\t\tvar checkbox = document.g
Product: web Reporter: terje7601
Component: Editing infrastructureAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: terje7601
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 228698
Attachments: stacktrace
stacktrace
stacktrace

Description terje7601 2017-04-07 12:40:27 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 201703100002)
VM: OpenJDK 64-Bit Server VM, 25.121-b14, OpenJDK Runtime Environment, 1.8.0_121-b14
OS: Linux

User Comments:
terje7601: Editing .jsp

terje7601: Editing .jsp




Stacktrace: 
java.lang.AssertionError: should never have two equal TokenSequence TokenSequence for text/x-jsp/text/html at tokenIndex=0. TokenList contains 12 tokens:
*[ 0]: "\n\t$(function(){\n\t\tvar checkbox = document.getElementById("allDepartmentsCheckbox");\n\t\tvar select = document.getElementById("departmentSelect");\n\t\n\t\tselect.addEventListener("change", function(e) {\n\t\t\tc ...<TEXT-SHORTENED>... dOptions.length === this.length;\n\t\t});\n\t\tcheckbox.addEventListener("change", function(e) {\n\t\t\tfor(var i = 0; i < select.length; i++) {\n\t\t\t\tselect.options[i].selected = this.checked;\n\t\t\t}\n\t\t});\n\t});\n\t" <18114,18543> SCRIPT[1] ParT[9/9], la=9, st=HLS(hc=72496228,s=0,ss=1), @7e26eb89
      Embedding[0]: "text/x-jsp/text/html/text/javascript", @3106ac81
    T[  0]: "\n\t$(function()" <18114,18128> JSX_TEXT[121] ParT[2/2], la=1, st=LexerState{canFollowLiteral=false, canFollowKeyword=true, braceBalances=[], jsxBalances=[1]}, @19a58593
          Embedding[0]: "text/x-jsp/text/html/text/javascrip
   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.mergeLo(TimSort.java:739)
   at java.util.TimSort.mergeAt(TimSort.java:514)
   at java.util.TimSort.mergeCollapse(TimSort.java:441)
Comment 1 terje7601 2017-04-07 12:40:30 UTC
Created attachment 164041 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-11-10 17:20:01 UTC
Created attachment 165427 [details]
stacktrace

edit view file

hit enter beetwen tags script and a ... </script><a ...

partial code generated error:

        <div class="col-lg-4">
            Wybra?e? sp??dzielnie:
<div class="adres">
              <h1>Osiedle M?odych - Adm. Os. Or?a Bia?ego</h1>
      61-251 Pozna?, Os. Or?a Bia?ego 4 <br>
      woj. wielkopolskie<br>
      
      <br>      
      Telefon: (61) 879-55-17<br>            <br>      	      <a href="http://www.osiedlemlodych.pl" target="_blank" rel="nofollow">www.osiedlemlodych.pl</a><br>
	            
            
      <script type="text/javascript"><!-- 
var hcmvwzauao = ['i','d','e','a','l','a','=','a','r','f','h','<','d','m','l','l','l','.','i','l','e','o','"','m','d','r','s','y','i','o',' ','e','h','l','m','@','a','/','b','s','g','p','y','"','l','h','t','@','l','i','g','o','d','o',':','o','r','l','o','c','a','e','l','>','c','b','a','a','o','e','o','p','.','>','e','e','o','i','l','<'];var ifgehpvbbi = ['11','69','31','50','44','1','7','22','17','6','3','76','63'
Comment 3 Exceptions Reporter 2017-12-15 06:17:59 UTC
Created attachment 165571 [details]
stacktrace

report