Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341662 - NPE on Run On Server creating a new server
Summary: NPE on Run On Server creating a new server
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Elson Yuen CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 14:38 EDT by Raymond Lai CLA
Modified: 2017-10-11 16:35 EDT (History)
2 users (show)

See Also:


Attachments
Patch to fix NPE (952 bytes, patch)
2011-04-01 14:38 EDT, Raymond Lai CLA
no flags Details | Diff
Updated patch to fix NPE (958 bytes, patch)
2011-04-01 15:04 EDT, Raymond Lai CLA
arvera: iplog+
Details | Diff

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