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.

Bug 247534

Summary: NullPointerException at org.netbeans.modules.j2ee.deployment.impl.Server.getFactory
Product: serverplugins Reporter: Exceptions Reporter <exceptions_reporter>
Component: InfrastructureAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal CC: bjh
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 212296
Attachments: stacktrace

Description Exceptions Reporter 2014-09-29 01:26:23 UTC
This bug was originally marked as duplicate of bug 201336, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Mac OS X

User Comments:
GUEST: Trying to "Add Server" by right clicking on "Servers" under "Services" tab fails.  Netbeans 7.4 on OS X 10.9.5.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.deployment.impl.Server.getFactory(Server.java:155)
   at org.netbeans.modules.j2ee.deployment.impl.Server.getDisplayName(Server.java:195)
   at org.netbeans.modules.j2ee.deployment.impl.bridge.BridgingServerWizardProvider.getDisplayName(BridgingServerWizardProvider.java:82)
   at org.netbeans.modules.server.ui.wizard.ServerWizardVisual$WizardAdapter.compareTo(ServerWizardVisual.java:433)
   at org.netbeans.modules.server.ui.wizard.ServerWizardVisual$WizardAdapter.compareTo(ServerWizardVisual.java:420)
   at java.util.ComparableTimSort.binarySort(ComparableTimSort.java:232)
Comment 1 Exceptions Reporter 2014-09-29 01:26:25 UTC
Created attachment 149572 [details]
stacktrace
Comment 2 bjh 2015-12-03 00:24:09 UTC
Still happens in NetBeans 8.1

The offending plugin is: jetty-server-nb-1.0 (http://plugins.netbeans.org/plugin/54458/jetty-server-nb-1-0)

Same scenario as described before: trying to "Add Server"... etc...

Disabling the plugin (or removing it) solves the problem.
Comment 3 bjh 2016-05-02 20:49:39 UTC
There seems to be a conflict somewhere at the modules/plugins level.
I did remove the ~/.netbeans/... dir and started NetBeans 8.1 from scratch. Added the jetty-server-nb-1.0 and now "Add Server..." works all right.