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 254644

Summary: IllegalStateException: Lexer org.netbeans.modules.el.lexer.ELLexer@5892de82 returned null token but lexerInput.readLength()=1 lexer-state: org.netbeans.modules.el.lexer.ELState@35a tokenStartOff
Product: editor Reporter: Maksim Khramov <mkhramov>
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: immouawad, rdekeijzer_pm, sai350
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219382
Attachments: stacktrace
stacktrace

Description Maksim Khramov 2015-08-24 09:38:45 UTC
This bug was originally marked as duplicate of bug 240826, 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 201508240002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b09, Java(TM) SE Runtime Environment, 1.8.0_66-b09
OS: Windows 7

User Comments:
mkhramov: Edit JSF XHTML File. Enter \ inside empty JSF EL expression #{}.




Stacktrace: 
java.lang.IllegalStateException: Lexer org.netbeans.modules.el.lexer.ELLexer@5892de82
  returned null token but lexerInput.readLength()=1
  lexer-state: org.netbeans.modules.el.lexer.ELState@35a
  tokenStartOffset=359, readOffset=360, lookaheadOffset=361
  Chars: "\\" - 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.TokenListUpdater.relex(TokenListUpdater.java:627)
   at org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:280)
   at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:350)
   at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:225)
Comment 1 Maksim Khramov 2015-08-24 09:38:47 UTC
Created attachment 155573 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-12-13 11:58:42 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219382
Comment 3 sai350 2015-12-30 07:29:01 UTC
Created attachment 157949 [details]
stacktrace

Some times list is not populated for the selected item