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

Bug 327686

Summary: Profile on server using JVMTI fails to attach to agents if AC has security enabled
Product: z_Archived Reporter: Mike Reid <mikereid>
Component: TPTPAssignee: Mike Reid <mikereid>
Status: CLOSED FIXED QA Contact: Kathy Chan <kathy>
Severity: major    
Priority: P2 CC: ewchan, jgwest
Version: unspecifiedFlags: jgwest: review+
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: adopter patch
Attachments:
Description Flags
Patch
none
Updated patch includes version number bump none

Description Mike Reid CLA 2010-10-13 12:31:41 EDT
The WTP Profile on Server integration operates by listening to 'server started' events and then if the server is running profiling mode a list of running agents is queried and attached to (or the user is prompted for specifics if necessary).

However, if the profiling agent is a JVMTI agent and the AC is secured, the attempt to list and attach to JVMTI agents fails. The result is that no agents are attached even though the server is listed as "Profiling".
Comment 1 Mike Reid CLA 2010-10-13 12:34:39 EDT
Created attachment 180789 [details]
Patch

Attaching a patch which uses a security-aware API to connect to the AC to list JVMTI agents.

The user will be prompted for the username/password if their credentials have not already been cached.
Comment 2 Mike Reid CLA 2010-10-13 15:29:41 EDT
Jon, can you please review this patch?
Comment 3 Jonathan West CLA 2010-10-13 15:46:12 EDT
Patch is good.
Comment 4 Mike Reid CLA 2010-10-13 16:17:36 EDT
Created attachment 180823 [details]
Updated patch includes version number bump
Comment 5 Mike Reid CLA 2010-10-14 09:39:29 EDT
Patch checked into HEAD, resolving.
Comment 6 Kathy Chan CLA 2011-02-11 13:45:46 EST
This defect had been resolved as FIXED for more than 1 month.  Please verify with the latest TPTP 4.7.2 driver.  If this defect is still left unverified by February 25, we'll close it on the originator's behalf.

TPTP 4.7.2 driver can be downloaded from:

http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Comment 7 Mike Reid CLA 2011-02-11 14:48:08 EST
Verified in TPTP-4.7.2-201102102100.
Comment 8 Mike Reid CLA 2011-02-11 14:49:34 EST
Closing.