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 187203 - IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens) TokenSequence for text/x-fx at tokenIndex=258. TokenList contains 258 tokens: T[
Summary: IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previo...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 13:32 UTC by Alexandr Scherbatiy
Modified: 2010-07-09 11:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 170432


Attachments
stacktrace (6.11 KB, text/plain)
2010-06-04 13:33 UTC, Alexandr Scherbatiy
Details
stacktrace (6.11 KB, text/plain)
2010-07-07 09:14 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-06-04 13:32:58 UTC
Build: NetBeans IDE Dev (Build 201006040001)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

Stacktrace: 
java.lang.IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens)
TokenSequence for text/x-fx at tokenIndex=258. TokenList contains 258 tokens:
T[  0]: "/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */" <0,99> COMMENT[15] DefT, IHC=7748820
T[  1]: "\n" <99,100> WS[130] DefT, IHC=9683753
T[  2]: "package" F(7) PACKAGE[76] FlyT, IHC=15842072
T[  3]: " " <107,108> WS[130] DefT, IHC=3286307
T[  4]: "towerdefence" <108,120> IDENTIFIER[42] DefT, IHC=2383247
T[  5]: "." F(1) DOT[21] FlyT, IHC=24796809
T[  6]: "guns" <121,125> IDENTIFIER[42] DefT, IHC=13938848
T[  7]: ";" F(1) SEMI[100] FlyT, IHC=26735480
T[  8]: "\n" <126,127> WS[130] DefT, IHC=15829151
T[  9]: "\n" <127,128> WS[130] DefT, IHC=21007236
T[ 10]: "import" F(6) IMPORT[44] FlyT, IHC=8885263
T[ 11]: " " <134,135> WS[130] DefT, IHC=17404990
T[ 12]: "towerdefence" <135,147> IDENTIFIER[42] DefT, IHC=31692776
T[ 13]: "." F(1) DOT[21] FlyT, IHC
   at org.netbeans.api.lexer.TokenSequence.checkTokenNotNull(TokenSequence.java:739)
   at org.netbeans.api.lexer.TokenSequence.offset(TokenSequence.java:254)
   at org.netbeans.modules.javafx.editor.semantic.Utilities.createHighlightImpl(Utilities.java:429)
   at org.netbeans.modules.javafx.editor.semantic.Utilities.access$300(Utilities.java:73)
   at org.netbeans.modules.javafx.editor.semantic.Utilities$5.run(Utilities.java:442)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1409)
Comment 1 Alexandr Scherbatiy 2010-06-04 13:33:02 UTC
Created attachment 99819 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-07-07 09:14:32 UTC
Created attachment 100639 [details]
stacktrace
Comment 3 Anton Chechel 2010-07-07 13:32:15 UTC
fixed
http://hg.netbeans.org/javafx/rev/d9289b301223
Comment 4 Alexandr Scherbatiy 2010-07-09 11:25:49 UTC
Unable to reproduce in NetBeans IDE 6.9.1 Dev (Build 201007082301)