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 184230 - IllegalStateException: Lexer org.netbeans.modules.javafx.fxd.composer.lexer.FXDLexer@a75b92e returned null token but lexerInput.readLength()=2 lexer-state: null tokenStartOffset=8, readOffset=10
Summary: IllegalStateException: Lexer org.netbeans.modules.javafx.fxd.composer.lexer.F...
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 08:43 UTC by Lukas Hasik
Modified: 2010-04-21 14:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 168072


Attachments
stacktrace (1.55 KB, text/plain)
2010-04-15 08:43 UTC, Lukas Hasik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2010-04-15 08:43:19 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004092101)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
lhasik: -had opened FXZ file
-closed it
-opened a FX project
-exception appeared - but no FXZ/D wasn't opened




Stacktrace: 
java.lang.IllegalStateException: Lexer org.netbeans.modules.javafx.fxd.composer.lexer.FXDLexer@a75b92e
  returned null token but lexerInput.readLength()=2
  lexer-state: null
  tokenStartOffset=8, readOffset=10, lookaheadOffset=0
  Chars: "\b^@" - 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:415)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:192)
   at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:175)
   at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbedding(BatchTokenList.java:170)
   at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:454)
   at org.netbeans.modules.javafx.fxd.composer.editor.parser.FXDSyntaxErrorParser$FXDParserResult.getSyntaxErrors(FXDSyntaxErrorParser.java:107)
Comment 1 Lukas Hasik 2010-04-15 08:43:24 UTC
Created attachment 97413 [details]
stacktrace
Comment 2 Andrew Korostelev 2010-04-21 14:36:01 UTC
fixed in trunk.
http://hg.netbeans.org/javafx/rev/e7700f326805

see also issue 183365
Comment 3 Andrew Korostelev 2010-04-21 14:40:39 UTC
anyway this case (and commited fix) will not be removed by fix suggested for issue 180670