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

Summary: 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
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: Alniks, hsd, terje7601
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209600
Attachments: stacktrace

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