Skip to main content

Bug report: NPE when opening netbean's Add Server Dialog

5 replies [Last post]
frederickkaempfer
Offline
Joined: 2007-11-21
Points: 0

Another small problem i have noticed in u12 b03 is a NPE which occurs in netbeans 6.5 final if I try to add a new web/application server (in Tools->Servers->Add Server...). This does not happen with jdk6u11.

Stacktrace:

java.lang.NullPointerException
at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.isServerValid(ServerWizardVisual.java:155)
at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.isValid(ServerWizardVisual.java:146)
at java.awt.Component.invalidateIfValid(Component.java:2740)
at java.awt.Component.setLocale(Component.java:1810)
at javax.swing.JComponent.(JComponent.java:595)
at javax.swing.JPanel.(JPanel.java:65)
at javax.swing.JPanel.(JPanel.java:92)
at javax.swing.JPanel.(JPanel.java:100)
at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.(ServerWizardVisual.java:83)
at org.netbeans.modules.server.ui.wizard.ServerWizardPanel.getComponent(ServerWizardPanel.java:68)
at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard$AddServerInstanceWizardIterator.initialize(AddServerInstanceWizard.java:295)
at org.openide.WizardDescriptor.callInitialize(WizardDescriptor.java:1417)
at org.openide.WizardDescriptor.(WizardDescriptor.java:472)
at org.openide.WizardDescriptor.(WizardDescriptor.java:481)
at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard.(AddServerInstanceWizard.java:107)
at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard.(AddServerInstanceWizard.java:94)
at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard.showAddServerInstanceWizard(AddServerInstanceWizard.java:134)
at org.netbeans.modules.server.ui.node.AddServerInstanceAction.performAction(AddServerInstanceAction.java:58)
at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:77)
at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:577)
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:1225)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1329)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:568)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:465)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:411)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:306)
at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(BasicPopupMenuUI.java:817)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2353)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2245)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2203)
at java.awt.Component.dispatchEventImpl(Component.java:4481)
at java.awt.Container.dispatchEventImpl(Container.java:2094)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4551)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4215)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4145)
at java.awt.Container.dispatchEventImpl(Container.java:2080)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vbkraemer
Offline
Joined: 2003-09-03
Points: 0

Yes. This is a bug in the NetBeans codebase.

The issue is filed http://www.netbeans.org/issues/show_bug.cgi?id=150223 and has been fixed... but the code hasn't been pushed out in the recent 6.5 patches.

If you run into this issue, the best advice is to run the IDE under an older release of the JDK (like update 11). You can get update 11 from https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site....

HTH,
vbk

xkou
Offline
Joined: 2003-06-14
Points: 0

My work around for now is to also have 6u11 installed, and start NetBeans with --jdkhome option, add the server, and restart NetBeans with 6u12.

anthony_p
Offline
Joined: 2006-07-24
Points: 0

.

anthony_p
Offline
Joined: 2006-07-24
Points: 0

Please see this:

http://bugs.sun.com/view_bug.do?bug_id=6793340

and the corresponding forum post:

http://forums.java.net/jive/thread.jspa?threadID=55998&tstart=0

--
best regards,
Anthony

xkou
Offline
Joined: 2003-06-14
Points: 0

The same issue still appears on JDK 6u12 b04