| Summary: | Problems with the process console when attaching to an agent | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | amehrega |
| Component: | TPTP | Assignee: | Stanislav Polevic <stanislav.v.polevic> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P1 | CC: | igor.alelekov, jkubasta, samwai, stanislav.v.polevic |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | closed460 | ||
| Attachments: | |||
|
Description
amehrega
Hi Ali, Could you please help to clarify this? In regular attachment to an external jvm (Profile Dialog / Attach to Agent ...), an empty inactive console windows also appears for both agents - TI and PI. Is it normal? An inactive console is not created when you attach to a process that's running with the PI agent. You can interact with that console by entering input. There are two inactive consoles created when the TI agent is used. Try entering input in the console created by the attached TI agent. Notice that user input is not processed. Please follow the steps outlined in the original comment of the bugzilla. (4.4.0.1 was used to test this) Thanks, now I've catched the PI-TI difference :) Created attachment 80346 [details]
Add configureConsole to IProcess interface
The main problem is that console is not configured during attaching to the process.
Proposed patch adds new method IProcess#configureConsole() which is intended to be invoked by the client before attaching.
I'm not sure that introducing new method is the most elegant and efficient solution...
Could somebody (Igor?) review this patch?
Created attachment 80347 [details]
Configure the console during attach
(In reply to comment #5) > Created an attachment (id=80347) [details] > Configure the console during attach Hi Stas, The patches are fine. Could you please investigate if the same actions might be done without API changes? Created attachment 80353 [details]
Initialize console in IProcess#getConsole
Better solution was found and there is no need to change public API, thanks to Igor.
Created attachment 80354 [details]
Invoke getConsole in attachAgent method
(In reply to comment #8) > Created an attachment (id=80354) [details] > Invoke getConsole in attachAgent method The patches look good. Stas, have you tested them? I tested it using described scenario. Reassigning bug to Stanislav. Samson could you please check the patch into CVS HEAD? Thanks, Igor Hi. I have trouble checking in "client_patch.txt". It seems that the patch is created using an older version of the source file. Please resync and generate a new patch file. Thanks. Comment on attachment 80353 [details]
Initialize console in IProcess#getConsole
Patch is incorrect
Comment on attachment 80354 [details]
Invoke getConsole in attachAgent method
Patch is incorrect
Comment on attachment 80354 [details]
Invoke getConsole in attachAgent method
Invalid patch
Created attachment 84867 [details]
Provide correct Process creation/deletion from AC Java code
Created attachment 84868 [details]
Add console listener in attach procedure
Igor, could you, please, review and commit the patches? Patch checked in. Updated a target. 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. 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. |