Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341662

Summary: NPE on Run On Server creating a new server
Product: [WebTools] WTP ServerTools Reporter: Raymond Lai <rkklai>
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Angel Vera <arvera>
Severity: normal    
Priority: P3 CC: benson.ning, eyuen7
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/109031
Whiteboard:
Attachments:
Description Flags
Patch to fix NPE
none
Updated patch to fix NPE arvera: iplog+

Description Raymond Lai CLA 2011-04-01 14:38:09 EDT
Build Identifier: 

Say we have a new server type that doesn't have launch configuration defined, i.e. no support for start and stop etc. Then we do a Run On Server and create a new server in the dialog, then we will get the following NPE:
!ENTRY org.eclipse.core.jobs 4 2 2011-03-29 10:49:32.819
!MESSAGE An internal error occurred during: "Starting Workload Deployer at 10.102.151.56".
!STACK 0
java.lang.NullPointerException
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3216)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3163)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:359)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always

Steps to Reproduce:
1. Define a new Server Type extension that doesn't have launch configuration
2. Run on Server with a resource
3. Create a new server in the Run On Server dialog, and run.
Comment 1 Raymond Lai CLA 2011-04-01 14:38:59 EDT
Created attachment 192380 [details]
Patch to fix NPE
Comment 2 Raymond Lai CLA 2011-04-01 15:04:43 EDT
Created attachment 192382 [details]
Updated patch to fix NPE
Comment 3 Elson Yuen CLA 2011-04-01 15:06:22 EDT
The new patch looks ok and fix the previous problem on the old patch.
Comment 4 Elson Yuen CLA 2011-04-01 15:16:53 EDT
Code released to 32M and 33M.
Comment 5 Eclipse Genie CLA 2017-10-11 16:35:57 EDT
New Gerrit change created: https://git.eclipse.org/r/109031