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 244370 - IllegalStateException: Lexer org.netbeans.modules.groovy.gsp.lexer.GspLexer@fcdfbe returned null token but lexerInput.readLength()=199 lexer-state: GSTART_TAG_BACKSLASH_EXPR tokenStartOffset=182
Summary: IllegalStateException: Lexer org.netbeans.modules.groovy.gsp.lexer.GspLexer@f...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 08:43 UTC by Exceptions Reporter
Modified: 2017-04-18 13:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209600


Attachments
stacktrace (8.22 KB, text/plain)
2014-05-08 08:43 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-05-08 08:43:03 UTC
This bug was originally marked as duplicate of bug 220938, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13
OS: Linux

User Comments:
GUEST: Opening an index.gsp page.  There's no problem opening this page with a text editor and the application works with grails run-app.  Seems the problem is with currencySymbol="\$"




Stacktrace: 
java.lang.IllegalStateException: Lexer org.netbeans.modules.groovy.gsp.lexer.GspLexer@fcdfbe
  returned null token but lexerInput.readLength()=199
  lexer-state: GSTART_TAG_BACKSLASH_EXPR
  tokenStartOffset=1827, readOffset=2026, lookaheadOffset=2027
  Chars: ""\\$" /></td></tr>\n                            </g:each>\n                        </table>\n                    </g:each>\n                </div>\n            </g:if>\n        </div>\n\n    </body>\n</html>\n\n" - these characters need to be tokenized.
Fix the lexer to not return null token in this state.
   at org.netbeans.lib.lexer.LexerInputOperation.checkLexerInputFinished(LexerInputOperation.java:457)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:217)
   at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingImpl(IncTokenList.java:195)
   at org.netbeans.lib.lexer.inc.IncTokenList.tokenCount(IncTokenList.java:152)
   at org.netbeans.lib.lexer.TokenListList.scanTokenList(TokenListList.java:149)
   at org.netbeans.lib.lexer.TokenListList.<init>(TokenListList.java:128)
Comment 1 Exceptions Reporter 2014-05-08 08:43:05 UTC
Created attachment 147178 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-08-17 14:07:06 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=209600