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 185013 - IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens): tokenIndex=3
Summary: IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previo...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 14:19 UTC by Exceptions Reporter
Modified: 2010-09-23 09:15 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1736


Attachments
stacktrace (1.66 KB, text/plain)
2010-04-26 14:19 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-04-26 14:19:45 UTC
This issue was reported manually by mmirilovic.
It already has 31 duplicates 


Build: NetBeans IDE 6.0.1 (Build 200801291616)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Windows XP

User Comments:
ppisl: I wrote text <div and pasted text  style="color: red"

GUEST: Hating this IDE

GUEST: Working on a JSP.

GUEST: invoking cc at situation of ${|}

stroudcuster: Pasted fragment of EL into a JSP, entered the closing curly brace(}).

mschovanek: to reproduce:
-----------
1) have a .jsp like:
<html lang="${pageContex|t}"></html>
NOTE: | char represents cursor
2) invoke CC
3) 3 times press [->]
ERROR: when cursor leaves EL, IDE throws the ISE

GUEST: i'm closing that window, which action is recomended to do

dam5s: Editing a partial with .rhtml extension.

Opening the file, closing the file, editing the file all trigger an exception.

GUEST: i'm closing that window, which action is recomended to do

GUEST: I press CTRL+Space in html tag of jsp file.

I create empty web application project with Struts.
in file welcomeStruts.jsp:

<body style="background-color: white"[CTRL+Space]>
...
</body>

GUEST: Created a new JSON file and invoked code completion using Ctrl-Spc




Stacktrace: 
java.lang.IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens): tokenIndex=3
   at org.netbeans.api.lexer.TokenSequence.checkTokenNotNull(TokenSequence.java:746)
   at org.netbeans.api.lexer.TokenSequence.offset(TokenSequence.java:247)
   at org.netbeans.modules.languages.features.CompletionProviderImpl$CompletionTaskImpl.compute(CompletionProviderImpl.java:253)
   at org.netbeans.modules.languages.features.CompletionProviderImpl$CompletionTaskImpl.query(CompletionProviderImpl.java:202)
   at org.netbeans.modules.editor.completion.CompletionImpl.queryResultSets(CompletionImpl.java:1459)
   at org.netbeans.modules.editor.completion.CompletionImpl.documentationQuery(CompletionImpl.java:993)
Comment 1 Exceptions Reporter 2010-04-26 14:19:54 UTC
Created attachment 98052 [details]
stacktrace
Comment 2 David Strupl 2010-09-23 09:15:56 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.