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.
When I tried to add my new Glassfish v2 b19 server into the Server Manager I keep getting a NullPointer Exception. java.lang.NullPointerException at java.io.File.<init>(File.java:222) at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.Util.getRegisterableDefaultDomains(Util.java:162) at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainPlatformPanel.isValid(AddDomainPlatformPanel.java:112) at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:629) at org.netbeans.modules.j2ee.deployment.impl.ui.wizard.AddServerInstanceWizard.updateState(AddServerInstanceWizard.java:72) at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:1615) at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:284) at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainPlatformPanel.fireChangeEvent(AddDomainPlatformPanel.java:262) at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddDomainPlatformPanel.stateChanged(AddDomainPlatformPanel.java:281) [catch] at org.netbeans.modules.j2ee.sun.ide.j2ee.ui.AddInstanceVisualPlatformPanel$3$1.run(AddInstanceVisualPlatformPanel.java:174) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1039) at java.awt.Dialog$3.run(Dialog.java:1091) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1089) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:816) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) at org.openide.util.Mutex.readAccess(Mutex.java:215) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832) at java.awt.Component.show(Component.java:1419) at java.awt.Component.setVisible(Component.java:1372) at java.awt.Window.setVisible(Window.java:801) at java.awt.Dialog.setVisible(Dialog.java:979) at org.netbeans.modules.j2ee.deployment.impl.ui.ServersCustomizer.addServer(ServersCustomizer.java:298) at org.netbeans.modules.j2ee.deployment.impl.ui.ServersCustomizer.access$000(ServersCustomizer.java:66) at org.netbeans.modules.j2ee.deployment.impl.ui.ServersCustomizer$1.actionPerformed(ServersCustomizer.java:166) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1039) at java.awt.Dialog$3.run(Dialog.java:1091) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1089) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:816) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) at org.openide.util.Mutex.readAccess(Mutex.java:215) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832) at java.awt.Component.show(Component.java:1419) at java.awt.Component.setVisible(Component.java:1372) at java.awt.Window.setVisible(Window.java:801) at java.awt.Dialog.setVisible(Dialog.java:979) at org.netbeans.modules.j2ee.deployment.devmodules.api.ServerManager.showCustomizer(ServerManager.java:68) at org.netbeans.modules.j2ee.deployment.impl.ui.actions.ServerManagerAction.performAction(ServerManagerAction.java:39) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:100) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53) at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:96) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) I also had to manually modify .netbeans/5.5dev/config/J2EE/InstalledServers/.ntattrs to get NetBeans to point to the correct directory for Glassfish. I imagine that this is a related problem. Possibly some code after the Exception is thrown that isn't getting executed? Deployment does work correctly.
-> sunappserv
Easy fix.
I am able to register v2 b20 in 5.5 rc1 (and the daily build which will become rc2) and 6.0 (post merge). Please reopen with more details about your GF install... I am particularly interested in the content of asenv.conf (or asenv.bat, if you are using a MS Windows OS)
...
Sorry, I completely forgot about this bug report. I got it working by installing Glassfish locally on my dev machine. I was trying to use a network share as the Platform location and it just didn't work. In my opinion, I would love to see the need for a local copy of the Application Server go away if possible.
See comments in issue 150223 - this is the same problem, and will depend on JDK and look and feel. Re-close if this code no longer exists.
how do you reckon that this is related to issue 150223.. in that issue the isValid is being called from the construtor of a panel... BAD In this issue, the only constructor on the stack is the constructor for File...