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.
I'm using the Favorites window to copy some files around to create a GlassFish unit test based on an enterprise app that I had previously created; just copying java and xml files from the app to new directories. I do not have GlassFish currently installed in the Server Manager list. When I open the file tree <my app name>/src/conf/ and click the sun-application.xml file, I immediately get an NPE and cannot copy files around without multiple NPE dialog boxes popping up. I will attach the log, but to make this issue easier to search the exceptions are (in order): INFORMATIONAL *********** Exception occurred ************ at 1:28 PM on Mar 29, 2007 javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: deployer:Sun:AppServer::localhost:4849 The Application Server in stallation directory is not correctly set up. (Use the Tools->J2EE Platform Manager menu to correct.) at org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentFactory.getDisconnectedDeploymentManager(SunDeploymentFactory.java:130) at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:144) at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:138) [catch] at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getDeploymentConfiguration(ConfigSupportImpl.java:432) at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.createInitialConfiguration(ConfigSupportImpl.java:207) at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.createDeploymentConfiguration(ConfigSupportImpl.java:133) at org.netbeans.modules.j2ee.deployment.plugins.api.ConfigurationSupport.requestCreateConfiguration(ConfigurationSupport.java:250) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getDeploymentConfiguration(ConfigDataObject.java:168) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getStorage(ConfigDataObject.java:346) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.findOpenedConfigEditor(ConfigDataObject.java:648) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject$2.run(ConfigDataObject.java:221) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) [...] INFORMATIONAL *********** Exception occurred ************ at 1:28 PM on Mar 29, 2007 java.lang.IllegalStateException: Unable to initialize DeploymentConfiguration for D:\work\temp\EETestApp\src\conf\sun-application.xml on ser ver J2EE at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getDeploymentConfiguration(ConfigDataObject.java:173) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getStorage(ConfigDataObject.java:346) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.findOpenedConfigEditor(ConfigDataObject.java:648) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject$2.run(ConfigDataObject.java:221) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) at org.openide.util.Mutex.readAccess(Mutex.java:215) [...] *********** Exception occurred ************ at 1:28 PM on Mar 29, 2007 java.lang.NullPointerException at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.getStorage(ConfigDataObject.java:347) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject.findOpenedConfigEditor(ConfigDataObject.java:648) at org.netbeans.modules.j2ee.sun.share.config.ConfigDataObject$2.run(ConfigDataObject.java:221) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) at org.openide.util.Mutex.readAccess(Mutex.java:215) [...] I understand the error about the application server not being set up correctly (since it isn't), but I should be able to copy/edit/whatever the file through the Favorites window. (Sorry if 'enterprise' is not the right component.)
Created attachment 40146 [details] log file
reassigning to j2ee module
Looks like a Sun Appserver plugin issue.
Similar to comment (see "Additional comments from pcw Wed Sep 27 00:37:23 +0000 2006") in issue 85533. Will be resolved as part of config editor work, should be easy to take care of.
ConfigDataObject is EOL'd and removed as of 60M9. Marking fixed.