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.
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.
Created attachment 38063 [details] Stack trace for Exception.
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
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.