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 120800 - IndexOutOfBoundsException: Index: -2
Summary: IndexOutOfBoundsException: Index: -2
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@obsolete
URL: http://statistics.netbeans.org/except...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-11-01 13:40 UTC by Petr Blaha
Modified: 2007-11-02 11:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 10163


Attachments
stacktrace (1.15 KB, text/plain)
2007-11-01 13:41 UTC, Petr Blaha
Details
stacktrace (1.15 KB, text/plain)
2007-11-01 15:03 UTC, Lark Fitzgerald
Details
stacktrace (1.15 KB, text/plain)
2007-11-01 15:24 UTC, Lark Fitzgerald
Details
stacktrace (1.15 KB, text/plain)
2007-11-01 15:41 UTC, Dan Kolar
Details
stacktrace (1.15 KB, text/plain)
2007-11-01 17:46 UTC, Tomas Danek
Details
stacktrace (1.15 KB, text/plain)
2007-11-01 18:44 UTC, Tomas Danek
Details
stacktrace (1.15 KB, text/plain)
2007-11-02 02:04 UTC, free49498445
Details
stacktrace (1.15 KB, text/plain)
2007-11-02 04:31 UTC, free49498445
Details
stacktrace (1.15 KB, text/plain)
2007-11-02 11:48 UTC, raulfonseca
Details
stacktrace (1.15 KB, text/plain)
2007-11-02 11:50 UTC, raulfonseca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2007-11-01 13:40:54 UTC
Build: NetBeans IDE Dev (Build 071101)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Linux, 2.6.17-12-generic, i386

User Comments: 
Register Tomcat, create JSPsamples (smaples/web/JspSamples) and open error/err.jsp and the exception is thrown.
Comment 1 Petr Blaha 2007-11-01 13:41:07 UTC
Created attachment 52253 [details]
stacktrace
Comment 2 Petr Blaha 2007-11-01 13:44:24 UTC
Upgrading priority since the exceptions is thrown even the file is edited.
Comment 3 Jan Jancura 2007-11-01 14:32:44 UTC
Reproducible.
Comment 4 Jan Jancura 2007-11-01 14:37:28 UTC
fixed in trunk:
IDE:-------------------------------------------------
IDE: [11/1/07 1:36 PM] Committing "LLSyntaxAnalyser.java" started
Checking in LLSyntaxAnalyser.java;
/cvs/languages/engine/src/org/netbeans/modules/languages/parser/LLSyntaxAnalyser.java,v  <--  LLSyntaxAnalyser.java
new revision: 1.54; previous revision: 1.53
done
IDE: [11/1/07 1:36 PM] Committing "LLSyntaxAnalyser.java" finished
Comment 5 Marek Fukala 2007-11-01 14:42:45 UTC
verified, it works now. 

it was breaking parsing of html inside of any jsp file. 

thanks for the fix Hanzi.
Comment 6 Lark Fitzgerald 2007-11-01 15:03:36 UTC
Build: NetBeans IDE Dev (Build 20071101120111)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows Vista, 6.0, x86

User Comments: 
Creation of page fragment with name Header to re-create issue on nbusers:
http://www.nabble.com/NB6-Beta-2%3A-Missing-Body-Element-in-VWP-tf4722784.html
Comment 7 Lark Fitzgerald 2007-11-01 15:03:44 UTC
Created attachment 52256 [details]
stacktrace
Comment 8 Lark Fitzgerald 2007-11-01 15:23:50 UTC
Build: NetBeans IDE Dev (Build 20071101120111)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows Vista, 6.0, x86

User Comments: 
Correction, this happens on creation of ANY page fragment.
Comment 9 Lark Fitzgerald 2007-11-01 15:24:26 UTC
Created attachment 52265 [details]
stacktrace
Comment 10 Dan Kolar 2007-11-01 15:41:40 UTC
Build: NetBeans IDE Dev (Build 20071101120111)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b02
OS: Windows XP, 5.1, x86

User Comments: 
Opening any jsp.
Comment 11 Dan Kolar 2007-11-01 15:41:50 UTC
Created attachment 52268 [details]
stacktrace
Comment 12 Winston Prakash 2007-11-01 15:53:53 UTC
THIS ISSUE HAS 5 MORE DUPLICATES
Comment 13 Winston Prakash 2007-11-01 15:56:57 UTC
Strange this is marked as fixed. But just I got the build from hudson (build 4244) and I saw saw the exception.
If I see the exception again, I will open the issue again.
Comment 14 Marek Fukala 2007-11-01 16:14:42 UTC
I was able to reproduce, after the fix it works fine. I have just updated the languages/engine. Give me a reproducible
testcase - what to type and where exactly, it cannot be related to the visualpack itself.
Comment 15 Tomas Danek 2007-11-01 17:45:59 UTC
Build: NetBeans IDE Dev (Build 20071101130916)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
pasted some (valid) rhtml code to editor
Comment 16 Tomas Danek 2007-11-01 17:46:09 UTC
Created attachment 52289 [details]
stacktrace
Comment 17 Tomas Danek 2007-11-01 18:43:58 UTC
Build: NetBeans IDE Dev (Build 20071101130916)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
editing rhtml
Comment 18 Tomas Danek 2007-11-01 18:44:09 UTC
Created attachment 52300 [details]
stacktrace
Comment 19 free49498445 2007-11-02 02:04:31 UTC
Build: NetBeans IDE Dev (Build 200711011200)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
Comment 20 free49498445 2007-11-02 02:04:34 UTC
Created attachment 52328 [details]
stacktrace
Comment 21 free49498445 2007-11-02 04:31:50 UTC
Build: NetBeans IDE Dev (Build 200711011200)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
Comment 22 free49498445 2007-11-02 04:31:57 UTC
Created attachment 52331 [details]
stacktrace
Comment 23 raulfonseca 2007-11-02 11:48:12 UTC
Build: NetBeans IDE Dev (Build 200711011200)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows Vista, 6.0, x86

User Comments: 
Comment 24 raulfonseca 2007-11-02 11:48:20 UTC
Created attachment 52354 [details]
stacktrace
Comment 25 raulfonseca 2007-11-02 11:50:29 UTC
Build: NetBeans IDE Dev (Build 200711011200)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows Vista, 6.0, x86

User Comments: 
Comment 26 raulfonseca 2007-11-02 11:50:38 UTC
Created attachment 52355 [details]
stacktrace