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 - NullPointerException at org.netbeans.modules.j2ee.deployment.impl.Server.getFactory
Summary: NullPointerException at org.netbeans.modules.j2ee.deployment.impl.Server.getF...
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 01:26 UTC by Exceptions Reporter
Modified: 2016-05-02 20:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212296


Attachments
stacktrace (5.68 KB, text/plain)
2014-09-29 01:26 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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.