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.
None of the dialogues that needs file access (file browsing to select a file) works, e.g., file open dialogue, attaching a jar to an existing project etc. Summary : One cannot open, attach, etc existing files, for basic dialogues for choosing a file from disk just won't open. This renders the IDE useless. Installed SW : NetBeans IDE 4.1 with J2SE 5.0 Update 4 Bundle Message Log file : ------------------------------------------------------------------------------- >Log Session: Tuesday, July 26, 2005 10:44:43 PM CEST >System Info: Product Version = NetBeans IDE 4.1 (Build 200505031930) Operating System = Windows 2000 version 5.0 running on x86 Java; VM; Vendor = 1.5.0_04; Java HotSpot(TM) Client VM 1.5.0_04-b05; Sun Microsystems Inc. Java Home = J:\Applications\Java\jdk1.5.0_04\jre System Locale; Encod. = en_GB (nb); Cp1252 Home Dir; Current Dir = C:\Dokumente und Einstellungen\Administrator; J:\Applications\Java\netbeans-4.1 IDE Install; User Dir = J:\Applications\Java\netbeans-4.1\platform5; C:\Dokumente und Einstellungen\Administrator\.netbeans\4.1 CLASSPATH = J:\Applications\Java\netbeans-4.1\platform5\lib\boot.jar;J:\Applications\Java\jdk1.5.0_04\lib\dt.jar;J:\Applications\Java\jdk1.5.0_04\lib\tools.jar Boot & ext classpath = J:\Applications\Java\jdk1.5.0_04\jre\lib\rt.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\i18n.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\sunrsasign.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\jsse.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\jce.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\charsets.jar;J:\Applications\Java\jdk1.5.0_04\jre\classes;J:\Applications\Java\jdk1.5.0_04\jre\lib\ext\dnsns.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\ext\localedata.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\ext\sunjce_provider.jar;J:\Applications\Java\jdk1.5.0_04\jre\lib\ext\sunpkcs11.jar Dynamic classpath = J:\Applications\Java\netbeans-4.1\platform5\core\core.jar;J:\Applications\Java\netbeans-4.1\platform5\core\openide-loaders.jar;J:\Applications\Java\netbeans-4.1\platform5\core\openide.jar;J:\Applications\Java\netbeans-4.1\platform5\core\org-netbeans-swing-plaf.jar;J:\Applications\Java\netbeans-4.1\platform5\core\updater.jar;J:\Applications\Java\netbeans-4.1\nb4.1\core\org-netbeans-upgrader.jar;J:\Applications\Java\netbeans-4.1\nb4.1\core\locale\core_nb.jar;J:\Applications\Java\netbeans-4.1\ide5\core\org-netbeans-modules-utilities-cli.jar ------------------------------------------------------------------------------- Turning on modules: org.openide/1 [5.9.1 200505031930] org.openide.loaders [5.2.1 200505031930] org.netbeans.modules.schema2beans/1 [1.11.1 200505031930] org.netbeans.libs.xerces/1 [1.5.1 2.6.2] org.netbeans.modules.j2ee.sun.dd/1 [1.2.1 1.0 050422] org.netbeans.lib.cvsclient/1 [1.11.1 200505031930] org.netbeans.modules.queries/1 [1.4.1 200505031930] org.netbeans.modules.projectapi/1 [1.3.1 200505031930] org.openide.io [1.6.1 200505031930] org.openide.execution [1.5.1 200505031930] org.netbeans.core.output2/1 [1.3.1 200505031930] org.netbeans.bootstrap/1 [1.0.1 200505031930] org.netbeans.swing.plaf [1.2.1 200505031930] org.netbeans.core/1 [1.27.1 200505031930] org.netbeans.core.execution/1 [1.6.1 200505031930] org.apache.tools.ant.module/3 [3.17.1 200505031930] org.netbeans.spi.viewmodel/2 [1.4.1 200505031930] org.netbeans.api.debugger/1 [1.3.1 200505031930] org.netbeans.api.debugger.jpda/1 [1.3.1 200505031930] org.netbeans.modules.j2eeapis/1 [1.3.1 200505031930] org.netbeans.modules.settings/1 [1.7.1 200505031930] org.netbeans.api.xml/1 [1.8 3.999.4 200505031930] org.netbeans.api.java/1 [1.7.1 200505031930] org.netbeans.modules.project.libraries/1 [1.10.1 200505031930] org.openide.src [1.5.1 200505031930] org.netbeans.libs.j2eeeditor/1 [1.4.1 200505031930] org.netbeans.modules.j2eeserver/3 [1.6.1 200505031930] javax.jmi.reflect/1 [1.4.1 200505031930] org.netbeans.jmi.javamodel/1 [1.13.1 200505031930] org.openidex.util/3 [3.6.1 200505031930] org.netbeans.modules.java.platform/1 [1.3.1 200505031930] org.netbeans.swing.tabcontrol [1.3.1 200505031930] org.netbeans.core.windows/2 [2.4.1 200505031930] org.netbeans.core.ui/1 [1.6.1 200505031930] org.netbeans.modules.xml.core/2 [1.7 3.999.4 200505031930] org.netbeans.modules.xml.catalog/2 [1.6 3.999.4 200505031930] org.netbeans.modules.masterfs/1 [1.4.1 200505031930] org.netbeans.modules.projectuiapi/1 [1.5.4.0.0 4.0.0 200505031930] org.netbeans.modules.projectui [1.3.4.0.0 200505031930] org.netbeans.modules.project.ant/1 [1.6.1 200505031930] javax.jmi.model/1 [1.4.1 200505031930] org.netbeans.api.mdr/1 [1.1.1 200505031930] org.netbeans.modules.jmiutils/1 [1.1.1 release41 200505031930] org.netbeans.modules.mdr/1 [1.1.1 release41 200505031930] org.netbeans.modules.classfile/1 [1.14.1 200505031930] org.netbeans.modules.javacore/1 [1.5.1 200505031930] org.netbeans.modules.java/1 [1.20.1 1.0.0 200505031930] org.netbeans.modules.java.project/1 [1.3.1 200505031930] org.netbeans.modules.ant.browsetask [1.8.1 200505031930] org.netbeans.api.web.webmodule [1.2.1 200505031930] org.netbeans.modules.j2ee.dd/1 [1.3.1 1.0 200505031930] org.netbeans.modules.j2ee.api.ejbmodule [1.0.1 200505031930] org.netbeans.modules.junit/2 [2.14.1 200505031930] org.netbeans.modules.j2ee.common/1 [1.0.1 1.0.1 200505031930] org.netbeans.modules.servletapi/1 [1.6.1 200505031930] org.netbeans.modules.httpserver/2 [2.1.1 release41 200505031930] org.netbeans.modules.java.examples/1 [1.2.1 200505031930] org.netbeans.modules.editor.util/1 [1.4.1 200505031930] org.netbeans.modules.editor.fold/1 [1.2.1 200505031930] org.netbeans.modules.editor.lib/1 [1.3.1 0.1 200505031930] org.netbeans.modules.editor/3 [1.19.1 200505031930] org.netbeans.modules.html.editor.lib/1 [1.0.1 200505031930] org.netbeans.modules.html.editor/1 [1.0.1 200505031930] org.netbeans.modules.xml.tax/2 [1.7 3.999.4 200505031930] org.netbeans.modules.xml.tools/2 [1.7 3.999.4 200505031930] org.netbeans.modules.javahelp/1 [2.5.1 200505031930] org.netbeans.tasklistapi/1 [1.16.6 6 200505031930] org.netbeans.modules.tasklist.core/2 [1.33.615 15 200505031930] org.netbeans.modules.properties/1 [1.14.1 200505031930] org.netbeans.modules.i18n/1 [1.17.1 200505031930] org.netbeans.libs.commons_logging/1 [1.0.1 1.0.4 200505031930] org.netbeans.modules.servletapi24/1 [2.3.1 2.3.1 200505031930] org.netbeans.modules.web.jspparser/2 [2.2.1 200505031930] org.netbeans.core.multiview/1 [1.5.1 200505031930] org.netbeans.modules.xml.multiview/1 [1.0 1.0-release41 200505031930] org.netbeans.modules.editor.plain.lib/1 [1.0.1 200505031930] org.netbeans.modules.editor.plain/1 [1.0.1 200505031930] org.netbeans.modules.xml.text/2 [1.7 3.999.4 200505031930] org.netbeans.modules.java.editor.lib/1 [1.0.1 200505031930] org.netbeans.modules.java.editor/1 [1.0.1 200505031930] org.netbeans.modules.html/1 [1.15.1 200505031930] org.netbeans.modules.web.core.syntax/1 [1.17.1 200505031930] org.netbeans.modules.web.core/1 [1.20.1 release41 200505031930] org.netbeans.modules.web.examples/1 [1.2.1 200505031930] org.netbeans.modules.j2ee.dd.webservice [1.0.1 200505031930] org.netbeans.modules.db/1 [1.11.1 1.1 200505031930] org.netbeans.modules.ant.freeform [1.5.1 200505031930] org.netbeans.modules.servletapi23/1 [1.7.1 200505031930] org.netbeans.modules.j2ee.blueprints/1 [1.5.2 200505031930] org.netbeans.modules.suggestions_framework/2 [1.11.6158 8 200505031930] org.netbeans.modules.xsl/1 [1.7 3.999.4 200505031930] org.netbeans.modules.websvc.websvcapi [1.0.1 200505031930] org.netbeans.modules.dbschema/1 [1.3.3 1.1] org.netbeans.modules.j2ee.ejbjarproject [1.1.1 1.1.1 200505031930] org.netbeans.modules.refactoring/1 [1.1.1 1.0 200505031930] org.netbeans.modules.j2ee.ddloaders/1 [1.2.1 200505031930] org.netbeans.modules.tomcat5/1 [1.3.1 200505031930] org.netbeans.modules.j2ee.sun.ide/1 [2.1.1 1.0 050422] org.netbeans.modules.tomcat5.bundled/1 [1.3.1 200505031930] org.netbeans.modules.utilities/1 [1.18.1 200505031930] org.netbeans.modules.utilities.project/1 [1.2.1 200505031930] org.netbeans.modules.vcscore/1 [1.14.1 promotionE 200505031930] org.netbeans.modules.editor.bookmarks/1 [1.0.1 200505031930] org.netbeans.modules.css/2 [1.7 3.999.4 200505031930] org.netbeans.modules.usersguide/1 [1.16.1 200505031930] org.netbeans.modules.form/2 [1.16.1 200505031930] org.netbeans.modules.i18n.form/2 [1.15.1 200505031930] org.netbeans.modules.debugger.jpda/2 [1.13.1 200505031930] org.netbeans.spi.debugger.ui/1 [2.5.1 200505031930] org.netbeans.modules.debugger.jpda.ui/1 [1.2.1 200505031930] org.netbeans.modules.debugger.jpda.ant [1.4.1 200505031930] org.netbeans.modules.java.j2seproject [1.2.1 1.2.0 200505031930] org.netbeans.modules.web.monitor/1 [1.12.1 200505031930] org.netbeans.modules.websvc.registry [0.2.1 200505031930] org.netbeans.modules.j2ee.platform/1 [1.0.1 200505031930] org.netbeans.modules.java.freeform [1.0.1 200505031930] org.netbeans.modules.javadoc/1 [1.14.1 200505031930] org.netbeans.modules.properties.syntax/1 [1.14.1 200505031930] org.netbeans.modules.favorites/1 [1.8.1 200505031930] org.netbeans.modules.beans/1 [1.14.1 200505031930] org.netbeans.modules.autoupdate/1 [2.12.1 200505031930] org.netbeans.modules.xml.schema/1 [1.7 3.999.4 200505031930] org.netbeans.modules.j2ee.ejbfreeform [1.0.1 200505031930] org.netbeans.modules.extbrowser/1 [1.6.1 200505031930] org.netbeans.modules.web.project [1.4.1 1.1.1.1 200505031930] org.netbeans.modules.j2ee.earproject [1.0.1 1.0.1 200505031930] org.netbeans.modules.welcome/1 [1.7.1 200505031930] org.netbeans.modules.ant.grammar/1 [1.10 200505031930] org.netbeans.modules.navigator/2 [4.1.1 promoe 200505031930] org.netbeans.modules.j2ee.genericserver [1.0.1 200505031930] org.netbeans.modules.websvc.core [1.0.1 200505031930] org.netbeans.modules.websvc.dev/1 [1.1.1 200505031930] org.netbeans.modules.diff/1 [1.10.1 promotionE 200505031930] org.netbeans.modules.vcs.advanced/1 [1.12.1 200505031930] org.netbeans.modules.vcs.profiles.pvcs/1 [1.6.1 200505031930] org.netbeans.modules.tasklist.docscan/2 [1.19.61584 4 200505031930] org.netbeans.core.ide/1 [1.6.1 200505031930] org.netbeans.modules.image/1 [1.14.1 200505031930] org.netbeans.modules.web.freeform [1.0.1 200505031930] org.netbeans.modules.vcs.profiles.cvsprofiles/1 [1.6.1 200505031930] org.netbeans.modules.web.jstl11/1 [2.3.1 2.3.1 200505031930] org.netbeans.modules.j2ee.ant [1.3.1 200505031930] org.netbeans.upgrader [4.2.1 200505031930] org.netbeans.modules.clazz/1 [1.16.1 200505031930] org.netbeans.modules.vcscore.javacorebridge/1 [1.0.1 200505031930] org.netbeans.modules.updatecenters/1 [1.3.1 200505031930] org.netbeans.modules.javanavigation/1 [4.1.1 200505031930] org.netbeans.modules.java.j2seplatform/1 [1.2.1 1.2.0 200505031930] org.netbeans.modules.j2ee.refactoring/1 [1.0.1 200505031930] org.netbeans.modules.web.debug/1 [2.4.1 200505031930] org.netbeans.modules.j2ee.debug/1 [1.0.1 200505031930] org.netbeans.modules.vcs.profiles.vss/1 [1.6.1 200505031930] *********** Exception occurred ************ at 10:46 PM on Jul 26, 2005 java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:161) at javax.swing.ImageIcon.<init>(ImageIcon.java:147) at sun.swing.WindowsPlacesBar.<init>(WindowsPlacesBar.java:82) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(WindowsFileChooserUI.java:509) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:203) at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:136) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:140) at javax.swing.JComponent.setUI(JComponent.java:652) at javax.swing.JFileChooser.updateUI(JFileChooser.java:1755) at javax.swing.JFileChooser.setup(JFileChooser.java:366) at javax.swing.JFileChooser.<init>(JFileChooser.java:332) at javax.swing.JFileChooser.<init>(JFileChooser.java:285) at org.netbeans.modules.openfile.FileChooser.<init>(FileChooser.java:38) at org.netbeans.modules.openfile.OpenFileAction.prepareFileChooser(OpenFileAction.java:63) at org.netbeans.modules.openfile.OpenFileAction.performAction(OpenFileAction.java:103) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) [catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Created attachment 23302 [details] Message log file
I looked at the code and found that the exception is thrown from a no-arg constructor of JFileChooser. It seems that either your JDK/JRE (Java development kit/Java runtime environment) or your Windows installation is broken. I will attach a simple Java application which you can use to check the above statement. To run the simple application, copy the file to an arbitrary directory, open a console (also known as DOS Prompt), go to that directory and run the following command: java -classpath . Main A small window with a big "Open!" button appears. Then press the "Open!" button - a file chooser should appear. If it appears, then maybe I am wrong. If it does not appear, then my assumption is most probably correct. Please report the result of this test here.
Created attachment 23403 [details] Simple test application
I found that having a customized icon for My Documents might be the issue. I had the same error, changed the icon back to the default, now NetBeans runs fine. Attached test program ran fine with the customized icon, however, it used Java L&F not Windows L&F (such as used by NetBeans) for the file dialog.
Created attachment 24339 [details] Test application - fixed (source code)
Created attachment 24340 [details] Test application - fixed (compiled)
I've attached updated test application which should use the platform's default look&feel. Please try it. Thanks.
clubkid32, thanks for the hint! This is a bug in the JDK - bug number 6210674 ("FileChooser fails to load custom harddrive icon and gets NullPointerException"). The full JDK bug report can be found at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6210674 According to the JDK bug report, the only known workaround is not to use custom icons. There is no known way of making a workaround in the NetBeans code. I am marking this bug as WONTFIX.
*** Issue 83525 has been marked as a duplicate of this issue. ***
To workaround it, run NetBeans with a different look and feel. To specify L&F for NetBeans, run netbeans with the following command-line parameter: -ui <look-and-feel class name> Example: -ui javax.swing.plaf.metal.MetalLookAndFeel You can also add the parameter to file <nb-install-dir>/etc/netbeans.conf - append the parameter to line starting with "netbeans_default_options=".
*** Issue 86130 has been marked as a duplicate of this issue. ***
*** Issue 95147 has been marked as a duplicate of this issue. ***
*** Issue 96773 has been marked as a duplicate of this issue. ***
*** Issue 104506 has been marked as a duplicate of this issue. ***
*** Issue 99723 has been marked as a duplicate of this issue. ***
*** Issue 90483 has been marked as a duplicate of this issue. ***
Update: JDK bug was now closed as not reproducible. Both the JDK developer and me were trying several times to find someone who would be able to reproduce it. Unfortunately, most people did not respond and among those who did, nobody was able to reproduce it. If you ever encounter this issue again or if you know how to reproduce this bug, please leave a note here, send an e-mail directly to mpetras(at)netbeans.org or add a comment directly to the JDK bug report (http://bugs.sun.com/view_bug.do?bug_id=6210674).
*** Issue 117629 has been marked as a duplicate of this issue. ***
*** Issue 108857 has been marked as a duplicate of this issue. ***
*** Issue 119646 has been marked as a duplicate of this issue. ***
*** Issue 120004 has been marked as a duplicate of this issue. ***
*** Issue 92872 has been marked as a duplicate of this issue. ***
*** Issue 120249 has been marked as a duplicate of this issue. ***
*** Issue 121134 has been marked as a duplicate of this issue. ***
*** Issue 121689 has been marked as a duplicate of this issue. ***
*** Issue 121765 has been marked as a duplicate of this issue. ***
An easy workaround is possible for this bug. Somebody has added a link to it in a comment on the page with the JDK bug report - see the comments at http://bugs.sun.com/view_bug.do?bug_id=6210674.
A development JDK build (JDK 7 EA b27) having this bug fixed was released. You can download it from: http://download.java.net/jdk7/binaries/
*** Bug 114960 has been marked as a duplicate of this bug. ***
I am getting this when an icon is missing from My Computer, My Documents or another Windows icon. Netbeans needs to handle a null here and use a generic icon in place of the missing desktop icon.
v/c