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.
This bug was originally marked as duplicate of bug 200967, 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 201206260002) VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05 OS: Windows 7 User Comments: sasule: I was trying to indent the code. Stacktrace: java.lang.AssertionError: token:> ts=JoinedTokenSequence[ContextDataTokenSequence[ts=TokenSequence for text/x-latte-template/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <0,1> DECLARATION[14] ParT[1/2], IHC=522166402 ,virtual=false],ContextDataTokenSequence[CURRENT,ts=TokenSequence for text/x-latte-template/text/html at tokenIndex=3. TokenList contains 5 tokens: T[0]: "!DOCTYPE" <1,9> DECLARATION[14] ParT[2/2], la=1, st=State(hash=7683932,s=41,ss=0,es=0,tag=null,attr=null), IHC=518630736 T[1]: " " <9,10> WS[3] DefT, la=1, st=State(hash=6264075,s=24,ss=0,es=0,tag=null,attr=null), IHC=646147689 T[2]: "html" <10,14> DECLARATION[14] DefT, la=1, st=State(hash=6264075,s=24,ss=0,es=0,tag=null,attr=null), IHC=2138140426 *[3]: ">" <14,15> DECLARATION[14] DefT, st=State(hash=4259571,s=0,ss=0,es=0,tag=null,attr=null), IHC=1882274531 T[4]: "\n" <15,16> TEXT[0] DefT, la=1, st=State(hash=4259571,s=0,ss=0,es=0,tag=null,attr=null), IHC=1771413022 ,virtual=false],ContextDataTokenSequence[ts=TokenSequenc at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.getLineIndent(MarkupAbstractIndenter.java:473) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.processLanguage(AbstractIndenter.java:1197) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:349) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.reindent(AbstractIndenter.java:209) at org.netbeans.modules.html.editor.indent.HtmlIndentTask.reindent(HtmlIndentTask.java:74) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:546)
Created attachment 121359 [details] stacktrace
sasule, the problem is most likely reproducible on certain code snippet. If you could attach such code snippet and what to do with it to reproduce the problem would be appreciated. Otherwise it is hard to resolve it. Thanks.
I'm not sure why this issue had 72patch2-candidate keyword.
I improved Latte lexer to avoid this error, but I think that it should be fixed on HTML Indenter side as well. The problem is, that if the lexer lexes this code: <!DOCTYPE html> as Token 1: < Token 2: ! Token 3: D Token 4: O Token 5: C ... Then condition in HtmlIndenter:113 is never met, even though all these tokens are in joined token sequence.
Ondra, is there a test case I could use to reproduce this bug on? Some file with instructions what to do? > The problem is, that if the lexer lexes this code: > > <!DOCTYPE html> > > as > > Token 1: < > Token 2: ! > Token 3: D > Token 4: O > Token 5: C I cannot (and to be honest do not want to :-) ) remember details how HTML indenter works but above example looks to me like a bug in lexer - DOCTYPE should be one token, no? What's the point of having tokens for single characters? Sorry if I missed something.
Integrated into 'main-golden', will be available in build *201305222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/129b3cd629e8 User: Ondrej Brejla <obrejla@netbeans.org> Log: Improved Latte top lexer due to issue #214777.
(In reply to comment #5) > Ondra, is there a test case I could use to reproduce this bug on? Some file > with instructions what to do? What worked, create test.latte file with just content: <!DOCTYPE html> (but it will work now, since I made a change in Latte lexer). > but above example looks to me like a bug in lexer - DOCTYPE should be one token, no? I don't think so...for third party lexers, every single character can be marked as HTML part...and joined token sequence is created. In some cases one doesn't have to match every single HTML tag as a single token...is's a job of HTML lexer, which work as expected now :) It handles joined token sequence of DECLARATION tokens properly. The only one who has a problem is an Indenter, which expects "<!" as a single token, not joined ;) > What's the point of having tokens for single characters? Sorry if I missed something. E.g. one have to make some heuristic in his lexer...and don't care of "exact" html lexing...just knows, that everything what is NOT in his interrest (i.e. embedded Latte parts) is HTML. I still think that it's a bug of HTML Indenter. Because every third party Lexer, which will embed HTML parts and will not lex "<!" (of DOCTYPE) as a single token will have this issue :)
This issue is 100% reproducible for me, as follows: Product Version: NetBeans IDE Dev (Build 201605020002) Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14 System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb) User directory: C:\dev\Netbeans\user\dev Cache directory: C:\dev\Netbeans\cache\dev 1. Install FreeMarker Plugin from http://plugins.netbeans.org/plugin/58284/freemarker-support-for-netbeans 2. Create test.ftl containing: <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div>Hello ${name}</div> </body> </html> 3. Save, close and then reopen this file. 4. Hit ENTER. 5. Exception will be thrown.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190087
It seems to me, there is a problem with <!DOCTYPE html> <! is not defined as opentag and therefore assertion is thrown in ending tag >. Can you please look at your parser? Thank you. I can be wrong.
I've created test.ftl file with <!DOCTYPE html> but cannot reproduce the bug. I am using NetBeans 8.1 and FreeMarker plugin version 1.8. gtzabari, please add your stackstrace. Do you use other third party plugins?
rostanek, I am now getting this exception earlier than before. Repro steps: 1. Create a new Maven project. 2. Right click on the created package, create new Other -> FreeMarker file 3. Enter file name = "test" and click "Finish" 4. Exception thrown: java.lang.AssertionError: token:org.netbeans.lib.lexer.token.DefaultToken@3d140e90 ts=JoinedTokenSequence[ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\n" <30,32> TEXT[0] ParT[1/13], IHC=841677779 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <66,67> TEXT[0] ParT[2/13], IHC=1768492912 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\n" <100,102> TEXT[0] ParT[3/13], IHC=1260870833 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <127,128> TEXT[0] ParT[4/13], IHC=1448782795 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <153,154> TEXT[0] ParT[5/13], IHC=868951728 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 1 tokens: T[0]: "\n" <171,172> TEXT[0] ParT[6/13], IHC=318287158 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "This" <172,176> TEXT[0] ParT[7/13], IHC=1674291468 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <176,177> TEXT[0] ParT[8/13], IHC=1624003149 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "is" <177,179> TEXT[0] ParT[9/13], IHC=181929538 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <179,180> TEXT[0] ParT[10/13], IHC=1562286898 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "content" <180,187> TEXT[0] ParT[11/13], IHC=1671678548 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <187,188> TEXT[0] ParT[12/13], IHC=1644147287 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 1 tokens: T[0]: "\n" <198,199> TEXT[0] ParT[13/13], la=1, st=HLS(hc=72412707,s=0), IHC=727667260 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <199,200> DECLARATION[14] ParT[1/2], IHC=45189998 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "!DOCTYPE" <200,208> DECLARATION[14] ParT[2/2], la=1, st=HLS(hc=130626844,s=41), IHC=2143092742 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <208,209> WS[3] DefT, la=1, st=HLS(hc=106489275,s=24), IHC=1674340524 ,virtual=false],ContextDataTokenSequence[CURRENT,ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "html" <209,213> DECLARATION[14] DefT, la=1, st=HLS(hc=106489275,s=24), IHC=844306523 *[1]: ">" <213,214> DECLARATION[14] DefT, st=HLS(hc=72412707,s=0), IHC=1024724624 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <214,215> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=1018630020 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "html" F(4) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=139816279,s=9,tag=html), IHC=731743524 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t" <221,223> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=722735603 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "head" F(4) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=139564764,s=9,tag=head), IHC=19879178 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <229,232> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=90222980 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "title" F(5) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=1961505492,s=9,tag=title), IHC=1116975273 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <247,248> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=1224981121 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <248,249> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=855581102 T[1]: "title" F(5) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=848513764 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <255,258> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=1843045095 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "meta" F(4) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=142106961,s=9,tag=meta), IHC=970574447 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <263,264> WS[3] DefT, la=1, st=HLS(hc=142106961,s=9,tag=meta), IHC=1918926507 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "charset" F(7) ARGUMENT[7] FlyT, la=1, st=HLS(hc=-1009502448,s=12,tag=meta,attribute=charset), IHC=1510788713 T[1]: "=" F(1) OPERATOR[8] FlyT, st=HLS(hc=-1006662734,s=14,tag=meta,attribute=charset), IHC=1220081807 *[2]: """ <272,273> VALUE[9] ParT[1/2], IHC=1466183373 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: """ <283,284> VALUE[9] ParT[2/2], st=HLS(hc=142106961,s=9,tag=meta), IHC=606960265 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <285,288> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=1652134485 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "meta" F(4) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=142106961,s=9,tag=meta), IHC=970574447 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <293,294> WS[3] DefT, la=1, st=HLS(hc=142106961,s=9,tag=meta), IHC=361019079 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "name" F(4) ARGUMENT[7] FlyT, la=1, st=HLS(hc=1121367855,s=12,tag=meta,attribute=name), IHC=1692407802 T[1]: "=" F(1) OPERATOR[8] FlyT, st=HLS(hc=1124207569,s=14,tag=meta,attribute=name), IHC=1220081807 *[2]: ""viewport"" <299,309> VALUE[9] DefT, st=HLS(hc=142106961,s=9,tag=meta), IHC=856408464 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <309,310> WS[3] DefT, la=1, st=HLS(hc=142106961,s=9,tag=meta), IHC=1487135369 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "content" F(7) ARGUMENT[7] FlyT, la=1, st=HLS(hc=260807901,s=12,tag=meta,attribute=content), IHC=1986410738 T[1]: "=" F(1) OPERATOR[8] FlyT, st=HLS(hc=263647615,s=14,tag=meta,attribute=content), IHC=1220081807 *[2]: ""width=device-width," <318,338> VALUE[9] ParT[1/3], IHC=1772929970 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <338,339> VALUE[9] ParT[2/3], IHC=524847628 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "initial-scale=1.0"" <339,357> VALUE[9] ParT[3/3], st=HLS(hc=142106961,s=9,tag=meta), IHC=1358840414 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t" <358,360> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=1189382775 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <360,361> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=585042582 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <361,362> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=1697580014 T[1]: "head" F(4) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=583603729 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t" <367,369> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=1084000013 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "body" F(4) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=136691390,s=9,tag=body), IHC=441302578 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <390,393> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=132185830 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=1. TokenList contains 2 tokens: T[0]: "div" F(3) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=86882461,s=9,tag=div), IHC=1836255637 *[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <408,409> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=1232293849 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <409,410> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=1052296427 T[1]: "div" F(3) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=1043270164 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <414,417> TEXT[0] ParT[1/2], IHC=1273336805 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <424,427> TEXT[0] ParT[2/2], la=1, st=HLS(hc=72412707,s=0), IHC=414908615 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), IHC=1929222490 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "div" F(3) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=86882461,s=9,tag=div), IHC=1836255637 T[1]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 *[2]: "No" <432,434> TEXT[0] ParT[1/3], IHC=1616646311 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: " " <434,435> TEXT[0] ParT[2/3], IHC=644208914 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "content" <435,442> TEXT[0] ParT[3/3], la=1, st=HLS(hc=72412707,s=0), IHC=1106775168 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <442,443> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=17137984 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <443,444> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=31224047 T[1]: "div" F(3) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=1043270164 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <448,451> TEXT[0] ParT[1/4], IHC=167351439 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t" <457,460> TEXT[0] ParT[2/4], IHC=149165372 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "parameter" <474,483> TEXT[0] ParT[3/4], IHC=633772769 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\t\t\n\n\t" <498,504> TEXT[0] ParT[4/4], la=1, st=HLS(hc=72412707,s=0), IHC=1199558078 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <504,505> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=40330290 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <505,506> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=704826551 T[1]: "body" F(4) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=990009988 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n" <511,512> TEXT[0] DefT, la=1, st=HLS(hc=72412707,s=0), IHC=36266599 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "<" <512,513> TAG_OPEN_SYMBOL[18] ParT[1/2], IHC=1003929828 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=2. TokenList contains 3 tokens: T[0]: "/" <513,514> TAG_OPEN_SYMBOL[18] ParT[2/2], st=HLS(hc=78092135,s=4), IHC=118346845 T[1]: "html" F(4) TAG_CLOSE[6] FlyT, la=1, st=HLS(hc=80931849,s=6), IHC=779249730 *[2]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=72412707,s=0), IHC=79723237 ,virtual=false],ContextDataTokenSequence[ts=TokenSequence for text/x-ftl/text/html at tokenIndex=0. TokenList contains 1 tokens: *[0]: "\n\n" <519,521> TEXT[0] DefT, la=1, st=HLS(hc=73832564,s=1), IHC=1736510897 ,virtual=false]] at org.netbeans.modules.web.indent.api.support.MarkupAbstractIndenter.getLineIndent(MarkupAbstractIndenter.java:473) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.processLanguage(AbstractIndenter.java:1221) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:373) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.reindent(AbstractIndenter.java:233) at org.netbeans.modules.html.editor.indent.HtmlIndentTask.reindent(HtmlIndentTask.java:74) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:573) at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:334) at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:365) at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:154) at org.netbeans.modules.editor.indent.IndentScriptEngineHack.eval(IndentScriptEngineHack.java:96) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) at org.netbeans.modules.editor.indent.IndentScriptEngineHack.eval(IndentScriptEngineHack.java:125) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) at org.netbeans.api.templates.CreateFromTemplateImpl.defaultCreate(CreateFromTemplateImpl.java:287) at org.netbeans.api.templates.CreateFromTemplateImpl.build(CreateFromTemplateImpl.java:130) at org.netbeans.api.templates.CreateFromTemplateImpl.build(CreateFromTemplateImpl.java:92) at org.netbeans.api.templates.FileBuilder.build(FileBuilder.java:250) at org.netbeans.api.templates.FileBuilder.createFromTemplate(FileBuilder.java:351) at org.openide.loaders.FileEntry.createFromTemplate(FileEntry.java:155) at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(MultiDataObject.java:881) at org.openide.loaders.DataObject$CreateAction.run(DataObject.java:1597) at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(DataObjectPool.java:261) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:519) at org.openide.loaders.DataObjectPool.runAtomicAction(DataObjectPool.java:286) at org.openide.loaders.DataObject.invokeAtomicAction(DataObject.java:1051) at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:983) at org.openide.loaders.TemplateWizard$DefaultIterator.instantiate(TemplateWizard.java:919) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160) at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1629) at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1570) at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:92) at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2257) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058) Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to at org.openide.util.RequestProcessor.post(RequestProcessor.java:420) at org.openide.WizardDescriptor$Listener$2.run(WizardDescriptor.java:2304) at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1516) at org.openide.WizardDescriptor.access$2000(WizardDescriptor.java:92) at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2322) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:487) at com.sun.proxy.$Proxy39.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229) at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227) at java.awt.Dialog.show(Dialog.java:1084) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1086) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1136) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1108) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:131) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:138) at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:98) at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:94) at org.openide.util.Mutex.readAccess(Mutex.java:218) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1093) at java.awt.Component.show(Component.java:1671) at java.awt.Component.setVisible(Component.java:1623) at java.awt.Window.setVisible(Window.java:1014) at java.awt.Dialog.setVisible(Dialog.java:1005) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:266) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:192) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Hi Rostanek, you need to use development version. In 8.1 version, assertions are turned off.
Created attachment 161878 [details] stacktrace new file > others > freemarker
Created attachment 163461 [details] stacktrace Trying to create a new freemarker file.