Bug 172857 - [Profile on server] Using TPTP 4_2_1 and WebTools 2.0
Summary: [Profile on server] Using TPTP 4_2_1 and WebTools 2.0
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Eugene Chan CLA
QA Contact:
URL:
Whiteboard: closed460
Keywords: plan
Depends on:
Blocks:
 
Reported: 2007-02-05 09:55 EST by Angel Vera CLA
Modified: 2016-05-05 10:48 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 Angel Vera CLA 2007-02-05 09:55:56 EST
Build ID: 4.2

Steps To Reproduce:
profile.server.wst.internal.ApplicationServerListener, makes a call to ServerCore.getServers(), this call should be wrapped within a job or moved out of the initialization of the TPTP plugin. 

Plugin initialization should be fast and simple. The call in the ApplicationServerListener assumes that the server plugin has already been initialized and loaded, which might not be the case. Doing such call, at plugin initialization could cause other plugins to get loaded and delay the loading of the platform. 

Although 1.5.3 allowed this beahviour, in 2.0 such behaviour will now cause ServerCore.getServer() to throw a initialization exception. If the plugin has not finished its loading. Currently the code for server code is not completed and the startup of ApplicationServerListener, throws a NPE.



More information:
Comment 1 Valentina Popescu CLA 2007-02-15 11:05:31 EST
Eugene, please update target
Comment 2 jkubasta CLA 2007-03-20 13:10:02 EDT
sizing updated
Comment 3 Eugene Chan CLA 2007-04-25 16:40:54 EDT
TPTP 4_2_1 support up to WTP 1.5.x only.
WTP 2.0 is supported since TPTP 4.4.

The problem mentioned here is fixed in bug 174886(for WTP2.0) and bug 174863(for WTP1.5.3)

ServerCore now loadRuntimesList() and loadServersList() before executeStartups() which triggers ApplicationServerListener in TPTP.
Comment 4 Paul Slauenwhite CLA 2009-06-30 13:45:50 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.