Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 159390 - NullPointerException when adding new Application Server
NullPointerException when adding new Application Server
Status: RESOLVED DUPLICATE of bug 150223
Product: java
Classification: Unclassified
Component: Editor
PC Windows 7
: P2 (vote)
: 5.x
Assigned To: Dusan Balek
Depends on:
  Show dependency treegraph
Reported: 2009-03-01 15:41 UTC by liono
Modified: 2012-04-27 04:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

It happened when Add Server (455.91 KB, patch)
2012-04-27 04:32 UTC, bongkot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description liono 2009-03-01 15:41:11 UTC
Note: This only happens using JDK SE6u12, I could reproduce on both Linux and Windows Vista with NetBeans 6.1 and 6.5.

I recently decided to give NB6.5 another test run on Linux. I downloaded the 'SE edition' and added any required plugin
afterwards. After I set everything up I tried adding a new Glassfish server specification using the right mouse button
on the "server" tab in the "Services" window but all I got was a NullPointerException. At first I suspected a 6.1-only
issue after noticing that it reacted the same. I removed the $HOME/.netbeans/6.5 directory and started over, this time
not importing settings and only installing the Java EE support and Glassfish v1,2 plugins. Same problem occurred.

After that I tried stripping 6.1 to the core, only adding Java EE and Glassfish support. The exact same behavior;
NullPointerException after trying to add a server.

Eventually I tried using an older JDK (SE5u16) using the --jdkhome parameter and after doing so I could once more get
into the "Add server wizard". The other way around also applies; now my NB 6.5 defaults to SE6u7, but when I override
this to point explicitly to SE6u12 the problem occurs again.

Finally I can re-produce this problem in Windows Vista as well. I cleanly installed SE6u12 (installed u12, then removed
u11. Now I wish I hadn't :)) and then installed NB 6.5 and added the EE plugins. After setting it all up I cannot add a
new server.

The exact stack trace on Linux:

	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 Vince Kraemer 2009-03-01 17:21:28 UTC
see issue 150223 for more info.

*** This issue has been marked as a duplicate of 150223 ***
Comment 2 bongkot 2012-04-27 04:32:32 UTC
Created attachment 118832 [details]
It happened when Add Server

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