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 56628 - AIOOBE from Output when running the project
Summary: AIOOBE from Output when running the project
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 08:39 UTC by Milan Kubec
Modified: 2008-12-22 18:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.23 KB, text/plain)
2005-03-18 09:37 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-03-18 08:39:55 UTC
[dev-200503172015, JDK 1.5.0_02]

I was running java projects and was playing with input field (the application
didn't request any input) - closing the input, entering values etc. During one
project execution, after hitting F6 I got ArrayIndexOutOfBoundsException. Not
reproducible.
Comment 1 Jan Chalupa 2005-03-18 09:03:08 UTC
stack-trace?
Comment 2 Milan Kubec 2005-03-18 09:37:21 UTC
Created attachment 20942 [details]
exc stack trace
Comment 3 Milan Kubec 2005-03-18 09:40:15 UTC
Sorry, but I got finally pist off enough to start finding out why those MIME
types are ordered as they are when you want to attach attachment so I almost
forgot about the attachment :-)
See http://www.netbeans.org/issues/show_bug.cgi?id=56117
Comment 4 Milos Kleint 2005-03-22 10:24:50 UTC
4.1, there's a strange trick with overriding doLayout() in CloseButtonTabbedPane.
If the tab is being removed, the super.doLayout() call is invokedLater(). That's
where the data structure race condition emerges.

Tim, what was the reason for the doLayout() override? it looks like hack to me.
if the problem is that the tab component is removed in awtlistener, then it
would be better to invokelater the whole removal of the tab?
Comment 5 Milos Kleint 2005-03-23 09:21:42 UTC
were you closing some tabs right before the exception appeared?
Comment 6 Milos Kleint 2005-03-24 09:31:26 UTC
fixed in trunk.


commit -m "#56628 removed the recheduling of doLayout() and replaced it by
reflection call on windowsL&F that will reset the rollovertab when removing
one." src/org/netbeans/core/output2/ui/AbstractOutputWindow.java
src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java
Checking in src/org/netbeans/core/output2/ui/AbstractOutputWindow.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputWindow.java,v 
<--  AbstractOutputWindow.java
new revision: 1.11; previous revision: 1.10
done
Checking in src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/CloseButtonTabbedPane.java,v
 <--  CloseButtonTabbedPane.java
new revision: 1.8; previous revision: 1.7
Comment 7 Milan Kubec 2005-07-08 12:53:47 UTC
Not able to reproduce in dev-200507061800.