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 94498 - Import customizer ArrayIndexOutofBoundsException
Summary: Import customizer ArrayIndexOutofBoundsException
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 20:21 UTC by jlautz
Modified: 2007-02-08 14:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace for Exception. (4.41 KB, application/octet-stream)
2007-02-05 20:23 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2007-02-05 20:21:40 UTC
Seen on Windows XP with Gavotte build 070205_12 and JDK 1.5.0_10:

In a project that contains no schemas (not sure this is important, but . . . ),
only occurs once per NB restart -- can't repeat without restarting NB, even with
other WSDL files:
1. Open a WSDL file that doesn't have any imports (not sure this is important).
I used default WSDL wizard-created files to recreate this.
2. In the WSDL view, on the root node, right-click the Add-> Schema Import. 
3. In the Import Customizer, click the + icons next to and under By File until
the tree is completely expanded.
4. Click the + icon next to By Namespace.

==> ArrayIndexOutOfBoundsException. Stack trace attached.
Comment 1 jlautz 2007-02-05 20:23:04 UTC
Created attachment 38063 [details]
Stack trace for Exception.
Comment 2 Nathan Fiedler 2007-02-06 00:51:24 UTC
NamespaceChildren was calling setKeys() on a thread that was not the EDT, which
is probably not a good thing. This resulted in the obscure error, which is
obviously the result of a thread timing issue. Fixed such that setKeys() is
always called on the EDT (fixed in release551 branch).

xamui/src/org/netbeans/modules/xml/xam/ui/customizer/NamespaceChildren.java;
new revision: 1.1.2.10.16.2; previous revision: 1.1.2.10.16.1
Comment 3 jlautz 2007-02-08 14:52:46 UTC
Verified on Windows XP with NB 5.5.1 070206 and EP Gavotte 070207_28 with JDK
1.5.0_10.

The exception is no longer seen in this scenario.