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

Bug 223385

Summary: Process's UUID is returned null
Product: z_Archived Reporter: Raheel Ashraf <rashraf>
Component: TPTPAssignee: Bing Xu <xubing>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: analexee, igor.alelekov, jgwest, jkubasta, paulslau, xubing
Version: unspecifiedFlags: xubing: review?
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: housecleaned460 closed460
Bug Depends on: 228379    
Bug Blocks: 219395    
Attachments:
Description Flags
patch to set process UUID properly.
none
Move main query method from AgentController.java to ProcessImpl.java.
none
Make query method private instead of public none

Description Raheel Ashraf CLA 2008-03-20 14:06:58 EDT
Build ID: Build id: I20080305-1100

Steps To Reproduce:
1. Implement IAgentListener
2. Hook it up with the agent (tiAgent.addAgentListener) eg: 
attachToAgent method in TIDelegateHelper
3. In the implementation for agentActive method of the interface, print: agent.getProcess().getUUID() it will be returned as null


More information:
Comment 1 Jonathan West CLA 2008-03-20 14:40:49 EDT
I took a look while Raheel and I were examining the problem, and the _UUID variable of the ProcessImpl class is never set to anything but NULL. Thus, when getUUID is called, a NULL value will always be returned. 

The UUID is reported to the client after the startProcess XML command is sent to the AC. The following is the XML response to that command that is received by the client:

		<processStarted iid="org.eclipse.tptp.processController">
				<processID>%lu</processID>
				<processUUID>%s</processUUID>
				<envVarCount>%d</envVarCount><envVarList>
				*Environment Labels encoded in Base64*
				</envVarList>
		</processStarted>

The execution framework should be able to read the UUID when it receives this XML command from the agent controller. A quick scan looks like the above XML is processed by "private void processStarted(Hashtable commandHash)" of "ProcessCommandHandler" inside ProcessImpl.java (under org\eclipse\tptp\platform\execution\client\core\internal)

Bing, can have a look?
Comment 2 Bing Xu CLA 2008-03-25 17:04:20 EDT
Created attachment 93497 [details]
patch to set process UUID properly.
Comment 3 Bing Xu CLA 2008-03-25 17:05:37 EDT
Jonathan, can you reivew the patch.  Thanks.
Comment 4 jkubasta CLA 2008-03-25 17:06:08 EDT
Raheel, would you please test the patch?  Thanks.
Comment 5 Raheel Ashraf CLA 2008-03-26 11:18:48 EDT
Patch works for me
Comment 6 Bing Xu CLA 2008-04-14 11:24:07 EDT
Created attachment 95929 [details]
Move main query method from AgentController.java to ProcessImpl.java.

Jonathan, can you review the patch.
Comment 7 Bing Xu CLA 2008-04-15 09:29:50 EDT
Created attachment 96065 [details]
Make query method private instead of public

Jonathan, can you review it.  Thanks.
Comment 8 Jonathan West CLA 2008-04-15 11:22:34 EDT
Patch is good.
Comment 9 jkubasta CLA 2008-04-15 14:17:49 EDT
Patch committed to Head
Comment 10 Igor Alelekov CLA 2008-04-18 10:49:07 EDT
Hi Bing,
The patch caused regression #227618
I would recommend to roll back the patch to resolve blocker #227618.

The current bug should be fixed in BaseAgentImpl/ACCollector module.
Comment 11 Alexander N. Alexeev CLA 2008-04-18 11:12:32 EDT
Bing's solution is Ok but some fixes on agents site are required. 
I've commented out value assignment to _UUID in ProcessImpl. It is temporary solution until TI agent will be able to provide correct UUID. (see Bug 139984 and Bug 130597)

 
Comment 12 Alexander N. Alexeev CLA 2008-04-18 11:24:04 EDT
forget to mention :), caused Bug 227618 
Comment 13 jkubasta CLA 2008-04-18 11:43:21 EDT
Does this change fix the regression or is a fix for 130597 (currently targeted to "future") needed in 4.5 i7?
Comment 14 Alexander N. Alexeev CLA 2008-04-18 12:15:52 EDT
(In reply to comment #13)
> Does this change fix the regression or is a fix for 130597 (currently targeted
> to "future") needed in 4.5 i7?
> 
My changes only fix regression.
 
To put fix for 223385 back only partial implementation of bug 130597 required, 
functionality for obtaining process UUID. I hope it will not require to much changes in sources, if it isn't so we have to roll back this fix completely. More  details I am going to provide in Monday. 
Comment 15 Bing Xu CLA 2008-04-18 13:25:08 EDT
Hi Alex,

The patch isn't too complicate.  So do you want me to roll back completely or just port of the patch?

Comment 16 Alexander N. Alexeev CLA 2008-04-21 07:05:20 EDT
Bing, to minimize changes during TP leave commit as is (with commented return), required function in AC baseAgent will be provided in I8.
Comment 17 Bing Xu CLA 2008-05-16 14:28:10 EDT
Alex, any update on this?
Comment 18 Alexander N. Alexeev CLA 2008-05-16 17:47:08 EDT
(In reply to comment #17)
> Alex, any update on this?
> 

Depends on bug 228379 is in questionable section for 4.5. It will be considered accordingly to the queue.    
Comment 19 Paul Slauenwhite CLA 2009-06-30 10:20:58 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant 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 defect is resolved as WONTFIX by the Project Lead since the originator of this defect has an inactive Bugzilla account and it may be no longer relevant. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 20 Paul Slauenwhite CLA 2009-06-30 10:45:04 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 the originator of this enhancement/defect has an inactive Bugzilla account 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.