This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 241294 - NPE when starting Glassfish
Summary: NPE when starting Glassfish
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Gorkem Ercan CLA
QA Contact: Tim deBoer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-17 13:58 EDT by Kaloyan Raev CLA
Modified: 2017-10-11 16:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2008-07-17 13:58:09 EDT
build: M-3.0.1-20080717094056

I have the following NullPointerException logged when starting Glassfish from the Servers view:

Error calling delegate setupLaunchConfiguration() GlassFish V2 Java EE 5 at localhost

java.lang.NullPointerException
	at org.eclipse.jst.server.generic.internal.xml.Resolver.skipToProperty(Resolver.java:103)
	at org.eclipse.jst.server.generic.internal.xml.Resolver.resolvePropertiesFromCache(Resolver.java:90)
	at org.eclipse.jst.server.generic.internal.xml.Resolver.resolveProperties(Resolver.java:68)
	at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.getStartClassName(GenericServerBehaviour.java:259)
	at org.eclipse.jst.server.generic.core.internal.GenericServerBehaviour.setupLaunchConfiguration(GenericServerBehaviour.java:354)
	at org.eclipse.wst.server.core.internal.Server.setupLaunchConfiguration(Server.java:1415)
	at org.eclipse.wst.server.core.internal.Server.getLaunchConfiguration(Server.java:1458)
	at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:2766)
	at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:2719)
	at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:306)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Angel Vera CLA 2008-07-21 14:02:44 EDT
The exception is coming from the Generic Server adapter. It seems that the class name for glassfish is missconfigured in the xml.

Passing to Gorken for proper analysis.
Comment 2 Tim deBoer CLA 2008-07-21 14:39:21 EDT
The Glassfish server adapter is not provided by WTP. If this is a bug in the adapter we should close and ask the user to open a bug against the vendor that provided it.
Comment 3 Gorkem Ercan CLA 2008-11-08 15:45:34 EST
I think this is actually a problem with the Glassfish adapter itself. It looks like it is missing a mandatory field. I have added a safe guard to the generic server framework for this just in case. The fix is released to 3.1 builds.
Comment 4 Gorkem Ercan CLA 2008-11-08 15:46:23 EST
Fixed on 3.1
Comment 5 Eclipse Genie CLA 2017-10-11 16:26:01 EDT
New Gerrit change created: https://git.eclipse.org/r/108696