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.
This issue occurs on NB 5.0 IDE, 5.5 IDE and 6.0 M5 When trying to open a file (Wanted to add a JAR as library, but you can't use ANY of the open file options in Netbans) an ArrayIndexOutOfBounds error occurs. I wasn't sure in which component to list this bug.
Created attachment 36440 [details] messages.log - error log
In order to better define the module owner, could you add any stack trace? We should then be able to define where to route this bug. JF.
Found the attachement. No JMX in the picture. Could you reassigne it to ide component? JF.
Reassigning to utilities module for further evaluation.
The symptom of the bug and the exception's stack-trace remind me bug #61438 - "None of the File-Open-Dialog type of dialog will open!". I guess they are essentially the same, just the stack-trace is a little bit different due to a different L&F used in Vista. To approve or disprove my suspicion, could you download and run the simple test case attached to bug report #61438, please? The direct link for the compiled test is <http://www.netbeans.org/nonav/issues/showattachment.cgi/24340/Main.class> and (in case you are interested) the direct link for the test's source code is <http://www.netbeans.org/nonav/issues/showattachment.cgi/24339/Main.java>. The test has just 2,2 kB.
Note: The reporter has answered off-line (via e-mail) that he gets an exception when he runs the test application and presses the "Open" button in the application's window. See the beginning of the exception report below. It is exactly the same exception report that is at the end of the attached messages.log file. The conclusion is that the bug is not NetBeans-specific. ------------------------------------------------------ Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3184 ________at_sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:748) ________at_sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:248) ________at_sun.awt.shell.ShellFolder.get (ShellFolder.java:221) ________at_com.sun.java.swing.plaf.windows.WindowsLookAndFeel$LazyWindowsIcon.createValue(WindowsLookAndFeel.java:1873) ________at_javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:185) ...
It seems that conclusion is correct, as I tried to execute that same file with Eclipe and got the same error. I'll try to get the bug reported to Microsoft
alegis, although the stack-trace contains words like "Win32" and "windows", it is no evidence that it is Microsoft's code. I believe it is Sun's code that is only executed when run on the Windows platform. I guess this bug has the same root cause as bug #61438 ("None of the File-Open-Dialog type of dialog will open!") which is claimed to be caused by JDK bug #6210674 (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6210674). So the next step is to confirm that it is really the same. The JDK bug is only reproducible with custom icons used for hard-drives. Do you use custom icons for hard-drives? If your answer is "yes", it is really the same bug and I will update the JDK bug report with the Vista-specific stack-trace. If the answer is "no", we will continue finding the actual cause of the bug (probably with the JDK developers).
*** Issue 90628 has been marked as a duplicate of this issue. ***
*** Issue 90687 has been marked as a duplicate of this issue. ***
mpetras was right, seems like a duplicate of issue #61438. It should be fixed in latest build of JDK - you can also read issue #95147 if you are intrested in further information. *** This issue has been marked as a duplicate of 61438 ***