Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 212009 - Upgrade ARM agent to the new AC execution framework
Summary: Upgrade ARM agent to the new AC execution framework
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Richard Y.S. HUANG CLA
QA Contact:
URL:
Whiteboard: housecleaned462 closed472
Keywords:
Depends on:
Blocks: 205821
  Show dependency tree
 
Reported: 2007-12-05 10:20 EST by Richard Y.S. HUANG CLA
Modified: 2016-05-05 10:49 EDT (History)
8 users (show)

See Also:
analexee: review? (ewchan)
analexee: review? (jptoomey)


Attachments
patch for 212009 (70.70 KB, patch)
2008-04-21 09:12 EDT, Richard Y.S. HUANG CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Y.S. HUANG CLA 2007-12-05 10:20:23 EST
Current ARM agent is developed based on the old AC execution framework. We need to upgrade this ARM agent to the new AC execution framework.
Comment 1 Paul Slauenwhite CLA 2007-12-19 07:45:54 EST
If this Bugzilla is planed to be completed in 4.5, please add the plan keyword.  Otherwise, please target to future.

In addition, if this Bugzilla is committed to be completed in 4.5, please change the priority to P1.
Comment 2 Alex Nan CLA 2008-01-15 09:45:32 EST
Two critical defects are depending on this defect, raising to critical and P1.
Comment 3 Alexander N. Alexeev CLA 2008-04-01 06:34:33 EDT
target milestone is changed with PMC approval 
Comment 4 Richard Y.S. HUANG CLA 2008-04-21 09:08:48 EDT
I'm working on this bug.
Comment 5 Richard Y.S. HUANG CLA 2008-04-21 09:12:27 EDT
Created attachment 96840 [details]
patch for 212009
Comment 6 Alexander N. Alexeev CLA 2008-04-21 09:26:34 EDT
Eugene, Joe, could you review the patch?
Comment 7 Igor Alelekov CLA 2008-04-22 07:16:35 EDT
Richard, your patch detects java version locally getting System.getProperty().
This is incorrect.
You should request remote Agent Controller for the JVM version.
Some useful code you can find in the org.eclipse.hyades.trace.ui plugin.
Comment 8 Richard Y.S. HUANG CLA 2008-04-22 08:02:36 EDT
Igor, thanks for helping review... but could you please tell me the method name or class name? It'll be quicker for fixing this defect.
Comment 9 Igor Alelekov CLA 2008-04-22 08:06:03 EDT
PIDelegateHelper.JVMVersionDetector
Comment 10 Richard Y.S. HUANG CLA 2008-04-22 08:36:12 EDT
In order to use JVMVersionDetector, we'll need to add org.eclipse.hyades.trace.ui as a dependency in org.eclipse.tptp.trace.arm. But this org.eclipse.tptp.trace.arm is deployed in AC side. Is it correct to add the dependency? I'm not sure.

Since ARM agent works on AC side, it should be okay to use System.getProperty() to detect AC's java version. If I'm wrong, please correct. Thanks.
Comment 11 Eugene Chan CLA 2008-04-22 11:10:21 EDT
UI plug-in dependency should not be introduced on the AC side. 

Richard/Igor, Is there a way to get the JVM path value from the AC configuration file programmatically and simulate what is done in org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.DefaultJVMVersionDetector. ie. run 'java.exe -version' for version value? 
Comment 12 Igor Alelekov CLA 2008-04-22 11:16:24 EDT
(In reply to comment #11)
> UI plug-in dependency should not be introduced on the AC side. 
> Richard/Igor, Is there a way to get the JVM path value from the AC
> configuration file programmatically and simulate what is done in
> org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.DefaultJVMVersionDetector.
> ie. run 'java.exe -version' for version value? 

Currently config file hasn't jvm version.
Recently during investigation of another bug I have implemented this - getting jvm version from the config file. But hasn't checked it into CVS yet.
So the code can be applied if it is necessary.
Comment 13 Eugene Chan CLA 2008-04-22 11:26:41 EDT
Igor, it sounds like a very handy util to be included on the AC side. 
Comment 14 Paul Slauenwhite CLA 2008-04-24 06:32:41 EDT
(In reply to comment #11)
> UI plug-in dependency should not be introduced on the AC side. 
> 
> Richard/Igor, Is there a way to get the JVM path value from the AC
> configuration file programmatically and simulate what is done in
> org.eclipse.tptp.trace.ui.internal.launcher.deleg.application.DefaultJVMVersionDetector.
> ie. run 'java.exe -version' for version value? 
> 

Agreed.  We should not introduce an UI plug-in dependency to the Agent Controller, especially for a common utility.

In addition, the useJVMTI() will incorrectly return for 1.3.* and below JVMs.
Comment 15 Richard Y.S. HUANG CLA 2008-04-29 04:47:33 EDT
(In reply to comment #14)
> 
> In addition, the useJVMTI() will incorrectly return for 1.3.* and below JVMs.
> 

Yes, the method useJVMTI() doesn't cover java version below 1.4, that's because TPTP 4.5 requires java 1.4 or above.
Comment 16 Paul Slauenwhite CLA 2008-04-29 06:27:16 EDT
(In reply to comment #15)
> (In reply to comment #14)
> > 
> > In addition, the useJVMTI() will incorrectly return for 1.3.* and below JVMs.
> > 
> 
> Yes, the method useJVMTI() doesn't cover java version below 1.4, that's because
> TPTP 4.5 requires java 1.4 or above.
> 

Correct, but the method should handle the corner case.

Comment 17 Richard Y.S. HUANG CLA 2008-04-29 07:03:38 EDT
(In reply to comment #16)
> 
> Correct, but the method should handle the corner case.
> 

OK, I'll change code for this and create a new patch tonight.
Comment 18 Alexander N. Alexeev CLA 2008-05-24 06:10:27 EDT
moved to future with PMC approval
Comment 19 Kathy Chan CLA 2009-02-23 13:41:49 EST
Mass update of P1 enhancements and defects targetted to future to P2.
Comment 20 Kathy Chan CLA 2009-02-24 09:58:09 EST
Targetting to 4.5.3 based on Eugene's input.
Comment 21 Kathy Chan CLA 2009-02-24 11:23:19 EST
Leaving at P2 for 4.5.3 pending Richard's input.
Comment 22 Kathy Chan CLA 2009-04-22 17:06:03 EDT
Targeting to future as requested by Richard since there's no resource to work on this for TPTP 4.6.
Comment 23 Paul Slauenwhite CLA 2010-03-10 12:14:54 EST
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. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 24 Kathy Chan CLA 2011-02-11 13:40:46 EST
This defect had been resolved as WONTFIX for more than 1 month.  Closing this on the reporter's behalf.  Please re-open if you have further comment on this issue.
Comment 25 Kathy Chan CLA 2011-02-11 14:45:22 EST
Closed in TPTP 4.7.2.