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 142344 - [65cat][j2ee]reflect.InvocationTargetException at java.awt.EventQueue.invokeAndWait
Summary: [65cat][j2ee]reflect.InvocationTargetException at java.awt.EventQueue.invokeA...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Miloslav Metelka
URL:
Keywords: RANDOM
: 150429 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-31 01:16 UTC by alcmontejo
Modified: 2010-05-12 04:12 UTC (History)
11 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 1923


Attachments
stacktrace (945 bytes, text/plain)
2009-04-17 12:37 UTC, brettryan
Details
stacktrace (3.13 KB, text/plain)
2009-11-10 01:02 UTC, Georg Schmid
Details
stacktrace (2.19 KB, text/plain)
2009-12-02 12:02 UTC, esmithbss
Details
stacktrace (1.96 KB, text/plain)
2009-12-15 16:18 UTC, giorgio42
Details
stacktrace (1.96 KB, text/plain)
2010-04-07 03:07 UTC, claudio.lago
Details
stacktrace (1.96 KB, text/plain)
2010-04-07 03:18 UTC, claudio.lago
Details
stacktrace (2.19 KB, text/plain)
2010-04-26 19:50 UTC, leonhad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alcmontejo 2008-07-31 01:16:49 UTC
Hi!

Good day!

Got this exception while I edit jsp files.


Thanks and more power,
Allen Montejo

SEVERE
java.lang.ArrayIndexOutOfBoundsException: 12
	at org.netbeans.lib.editor.util.GapList.get(GapList.java:459)
	at org.netbeans.modules.editor.fold.FoldChildren.getFold(FoldChildren.java:106)
	at org.netbeans.api.editor.fold.Fold.getFold(Fold.java:322)
	at org.netbeans.api.editor.fold.Fold.replaceByChildren(Fold.java:373)
	at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldReplaceByChildren
(FoldHierarchy.java:379)
	at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeFoldFromHierarchy
(FoldHierarchyTransactionImpl.java:831)
	at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.removeOverlap
(FoldHierarchyTransactionImpl.java:821)
	at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:699)
	at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:498)
	at org.netbeans.modules.editor.fold.FoldHierarchyExecution.add(FoldHierarchyExecution.java:354)
	at org.netbeans.modules.editor.fold.FoldOperationImpl.addToHierarchy(FoldOperationImpl.java:184)
	at org.netbeans.spi.editor.fold.FoldOperation.addToHierarchy(FoldOperation.java:137)
	at org.netbeans.modules.web.core.syntax.folding.JspFoldManager$2.run(JspFoldManager.java:472)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused: java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)
	at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
[catch] at org.netbeans.modules.web.core.syntax.folding.JspFoldManager.updateFolds(JspFoldManager.java:425)
	at org.netbeans.modules.web.core.syntax.folding.JspFoldManager.access$100(JspFoldManager.java:55)
	at org.netbeans.modules.web.core.syntax.folding.JspFoldManager$1$1.run(JspFoldManager.java:118)
	at java.lang.Thread.run(Thread.java:619)
classLoader = org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$ParserClassLoader@528627, parent : 
org.netbeans.modules.web.jspparser.JspParserImpl$ExtClassLoader@27aaf0
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1efc193
INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: Tomcat 6.0
classLoader = org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$ParserClassLoader@782787, parent : 
org.netbeans.modules.web.jspparser.JspParserImpl$ExtClassLoader@27aaf0
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1efc193
classLoader = org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$ParserClassLoader@529b10, parent : 
org.netbeans.modules.web.jspparser.JspParserImpl$ExtClassLoader@27aaf0
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1efc193
classLoader = org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$ParserClassLoader@bfa472, parent : 
org.netbeans.modules.web.jspparser.JspParserImpl$ExtClassLoader@27aaf0
SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@1efc193
Comment 1 Marek Fukala 2008-07-31 06:47:23 UTC
Seems to be a bug in the folding infrastructure. Any way to reproduce it?
Comment 2 Vitezslav Stejskal 2008-08-01 08:19:01 UTC
alcmontejo, is this reproducible or does it just happen randomly?
Comment 3 alcmontejo 2008-08-01 08:37:51 UTC
Hi vstejskal,

I try to reproduce it, but it seems that I cannot make it out, I gues this just happen randomly.

Thanks,
Allen Montejo
Comment 4 Vitezslav Stejskal 2008-08-01 11:23:08 UTC
Thanks!
Comment 5 Vitezslav Stejskal 2008-10-20 12:34:26 UTC
*** Issue 150429 has been marked as a duplicate of this issue. ***
Comment 6 brettryan 2009-04-17 12:37:34 UTC
Build: NetBeans IDE Dev (Build 200904160201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista, 6.0, x86

User Comments: 
Editing javascript within JSP.

Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 25
        at org.netbeans.lib.editor.util.GapList.get(GapList.java:459)
        at org.netbeans.modules.editor.fold.FoldChildren.getFold(FoldChildren.java:106)
        at org.netbeans.api.editor.fold.Fold.getFold(Fold.java:322)
        at org.netbeans.modules.editor.fold.FoldUtilitiesImpl.findFoldEndIndex(FoldUtilitiesImpl.java:154)
        at org.netbeans.modules.editor.fold.FoldUtilitiesImpl.findNearestFold(FoldUtilitiesImpl.java:245)
        at org.netbeans.api.editor.fold.FoldUtilities.findNearestFold(FoldUtilities.java:382)
Comment 7 brettryan 2009-04-17 12:37:38 UTC
Created attachment 80338 [details]
stacktrace
Comment 8 David Strupl 2009-06-08 13:58:18 UTC
Marek, these are yours now ...
Comment 9 Georg Schmid 2009-11-10 01:02:02 UTC
Created attachment 90665 [details]
stacktrace
Comment 10 esmithbss 2009-12-02 12:02:12 UTC
Created attachment 92002 [details]
stacktrace
Comment 11 giorgio42 2009-12-15 16:18:12 UTC
Created attachment 92641 [details]
stacktrace

Editing a JSP page (started to comment out something using <%--).
Comment 12 claudio.lago 2010-04-07 03:07:23 UTC
Created attachment 96828 [details]
stacktrace

Editing a JSP file.
Comment 13 claudio.lago 2010-04-07 03:18:23 UTC
Created attachment 96829 [details]
stacktrace

Editing JSP file.
Comment 14 leonhad 2010-04-26 19:50:02 UTC
Created attachment 98074 [details]
stacktrace
Comment 15 Marian Mirilovic 2010-05-03 13:02:31 UTC
> 100 reports ... reported against NB 6.9 as well
Comment 16 David Strupl 2010-05-03 13:41:47 UTC
I will have a look.
Comment 17 David Strupl 2010-05-05 07:45:59 UTC
Passing to Mila as we need the real expert to check this.
Comment 18 Miloslav Metelka 2010-05-05 08:25:15 UTC
Since this is a random problem I'll write random tests for fold hierarchy testing and see whether I'll be able to reproduce the problem. If that would not help I would at least add some better diagnostics when the AIOOBE is to be thrown.
Comment 19 Miloslav Metelka 2010-05-10 14:26:46 UTC
I have written a random test and added some asserts which revealed a particular problem that I've fixed. However I'm not 100% sure whether this problem was caused exactly by the thing that was fixed. Anyway I've added a diagnostics dumping of fold hierarchy at the place where original AIOOBE was thrown so this particular exception will no longer be thrown. Marking as fixed.
http://hg.netbeans.org/jet-main/rev/b0d3aa85af60
Comment 20 Quality Engineering 2010-05-12 04:12:51 UTC
Integrated into 'main-golden', will be available in build *201005112200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: