Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 158960 - "Add Server" does not open dialog, raises NullPointerException
"Add Server" does not open dialog, raises NullPointerException
Status: RESOLVED DUPLICATE of bug 150223
Product: ide
Classification: Unclassified
Component: UI
Other Linux
: P2 (vote)
: 6.x
Assigned To: issues@ide
Depends on:
  Show dependency treegraph
Reported: 2009-02-23 03:06 UTC by mishom
Modified: 2009-02-25 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description mishom 2009-02-23 03:06:19 UTC

NetBeans 6.5
Slackware Linux 12.2 (32bit)
Sun JDK 1.6.0_12 


Go to tab "Services", right-click on "Servers" and try "Add Server". No dialog appears and you got a Stop sign at the
bottom right corner. Click on it and it shows stack trace for a NullPointerException.
However, Adding Server seems broken only when the JDK is the latest 1.6.0_12, and it works fine if I revert to previous
build 1.6.0_11. It seems that JDK 1.6.0 Update 12 does not play well with NetBeans 6.5. Again, this does not happen with
JDK 1.6.0 Update 7 and 11, which I tested. Those work fine. 
Below is the stack trace.

Mihail Merdjanov

	at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.isServerValid(
	at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.isValid(
	at java.awt.Component.invalidateIfValid(
	at java.awt.Component.setLocale(
	at javax.swing.JComponent.<init>(
	at javax.swing.JPanel.<init>(
	at javax.swing.JPanel.<init>(
	at javax.swing.JPanel.<init>(
	at org.netbeans.modules.server.ui.wizard.ServerWizardVisual.<init>(
	at org.netbeans.modules.server.ui.wizard.ServerWizardPanel.getComponent(
	at org.openide.WizardDescriptor.callInitialize(
	at org.openide.WizardDescriptor.<init>(
	at org.openide.WizardDescriptor.<init>(
	at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard.<init>(
	at org.netbeans.modules.server.ui.wizard.AddServerInstanceWizard.<init>(
	at org.netbeans.modules.server.ui.node.AddServerInstanceAction.performAction(
	at org.openide.util.actions.NodeAction$DelegateAction$
	at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(
	at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
[catch] at java.awt.EventQueue.dispatchEvent(
	at org.netbeans.core.TimableEventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(
Comment 1 mishom 2009-02-23 17:21:14 UTC
I checked with my other PC, running Windows XP Pro, NetBeans 6.5 and JDK 1.6.0_12. It happens there too, and if I 
revert my JDK to the previous one - 1.6.0 Update 11, then it works fine.
So, apparently this problem is not OS dependent, just JDK dependent.
Comment 2 Jindrich Sedek 2009-02-25 13:40:52 UTC
patch will be provided in two weeks.

Thanks for reporting the problem

*** This issue has been marked as a duplicate of 150223 ***

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo