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 was trying to Add J2EE server, in the choose server wizard (first there was nothng in drop down list) when i started to type in name text field the following error happened. java.lang.NullPointerException at org.netbeans.modules.j2ee.deployment.impl.ui.wizard.ServerChooserVisual.displayNameEditFieldKeyReleased(ServerChooserVisual.java:254) at org.netbeans.modules.j2ee.deployment.impl.ui.wizard.ServerChooserVisual.access$200(ServerChooserVisual.java:37) at org.netbeans.modules.j2ee.deployment.impl.ui.wizard.ServerChooserVisual$3.keyReleased(ServerChooserVisual.java:229) at java.awt.Component.processKeyEvent(Component.java:5916) at javax.swing.JComponent.processKeyEvent(JComponent.java:2819) at java.awt.Component.processEvent(Component.java:5732) at java.awt.Container.processEvent(Container.java:1960) at java.awt.Component.dispatchEventImpl(Component.java:4365) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Component.dispatchEvent(Component.java:4195) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1828) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:950) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:822) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657) at java.awt.Component.dispatchEventImpl(Component.java:4237) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Window.dispatchEventImpl(Window.java:2210) at java.awt.Component.dispatchEvent(Component.java:4195) [catch] 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:1032) at java.awt.Dialog$2.run(Dialog.java:1078) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1076) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:810) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:853) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:841) at org.openide.util.Mutex.doEventAccess(Mutex.java:1172) at org.openide.util.Mutex.readAccess(Mutex.java:209) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:826) at java.awt.Component.show(Component.java:1406) at java.awt.Component.setVisible(Component.java:1359) at java.awt.Window.setVisible(Window.java:695) at java.awt.Dialog.setVisible(Dialog.java:972) at org.netbeans.modules.j2ee.deployment.impl.ui.actions.AddServerInstanceAction.performAction(AddServerInstanceAction.java:36) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:531) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:527) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1957) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2278) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1137) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1178) at java.awt.Component.processMouseEvent(Component.java:5955) at javax.swing.JComponent.processMouseEvent(JComponent.java:3285) at java.awt.Component.processEvent(Component.java:5720) at java.awt.Container.processEvent(Container.java:1960) at java.awt.Component.dispatchEventImpl(Component.java:4365) at java.awt.Container.dispatchEventImpl(Container.java:2018) at java.awt.Component.dispatchEvent(Component.java:4195) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4222) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3886) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3816) at java.awt.Container.dispatchEventImpl(Container.java:2004) at java.awt.Window.dispatchEventImpl(Window.java:2210) at java.awt.Component.dispatchEvent(Component.java:4195) 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)
This issue occurs only if there is no server module registered in the IDE, which is not a very common use-case. Moving down to P3.
F. Checking in src/org/netbeans/modules/j2ee/deployment/impl/ui/wizard/ServerChooserVisual.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/wizard/ServerChooserVisual.java,v <-- ServerChooserVisual.java new revision: 1.4.30.1.2.1; previous revision: 1.4.30.1 done