[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: launch remote application

Ok, to be sure I used your class.

the class is in
/profile/classes/org/test/Test.class

if I select the class name with the browse button (works only if the test is on localhost) then the class name instead to be org.test.Test.class is filled with Test !
Not only this but automagically.. the classpath is filled with /profile/classes/org/test/


Obvioulsy not works so.

I correct classname with org.test.Test.class and classpath with /profile/classes/ then I start the test and it works but only for memory profiling no coverage or method timing (and I have they selected).

the log on rac server say:
<SERVER_MSG time="2004:10:22:11:46:38" severity="INFORMATION" text="Attempting to launch process : java.exe -XrunpiAgent:server=controlled org.test.Test"/>
<SERVER_MSG time="2004:10:22:11:46:39" severity="INFORMATION" text="Adding agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="INFORMATION" text="Incoming connection request from agent Java Profiling Agent in process 30020 with uuid UUID-1098438401-52763-1085260847-156462072"/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="WARNING" text="Registered Agent UUID-1098438401-52763-1085260847-156462072."/>
<SERVER_MSG time="2004:10:22:11:46:41" severity="WARNING" text="Requesting shared memory 31457280 bytes, allocating 31457280 bytes, system max 33554432 bytes"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Created data channel with name rabuffer6 and CB addr 0x5da05154 buffer addr 0x5da15a6c size in=31457280 size out=16777216"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Connected to client data channel socket on port 34062 with descriptor 13"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Created flusher thread and about to send message to agent"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Deregistering agent UUID-1098438401-52763-1085260847-156462072. "/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Removing agent UUID-1098438401-52763-1085260847-156462072. from client"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Process 30020 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:46:42" severity="INFORMATION" text="Process 30020 exited"/>


I'm corious to know HOW it has worked on my linux box launching java.exe -XrunpiAgent:server=controlled org.test.Test
maybe with wine? .... ARGH!


now I copy the whole /profile directory on my hpux box under /testing

I duplicate the Remote Profile configuration and substitute /profile/classes/ with /testing/profile/classes/ in classpath, and check the my remote host.

Not works, and again follows the log of rac server

<SERVER_MSG time="2004:10:22:11:20:9" severity="INFORMATION" text="Adding agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:20:12" severity="INFORMATION" text="Process 15295 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:20:12" severity="INFORMATION" text="Process 15295 exited"/>
<SERVER_MSG time="2004:10:22:11:24:44" severity="INFORMATION" text="Attempting to launch process : java.exe -XrunpiAgent:server=controlled org.test.Test"/>
<SERVER_MSG time="2004:10:22:11:24:44" severity="INFORMATION" text="Adding agent interest: Java Profiling Agent"/>
<SERVER_MSG time="2004:10:22:11:24:48" severity="INFORMATION" text="Process 15726 does not exist so scrub it"/>
<SERVER_MSG time="2004:10:22:11:24:48" severity="INFORMATION" text="Process 15726 exited"/>



Again, java.exe -XrunpiAgent:server=controlled org.test.Test but here I don't have wine installed :-|


on windows is the same but I get in the console:
java.lang.NoClassDefFoundError: org/test/Test
Exception in thread "main"

<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION" text="Attempting to launch process : java.exe -XrunpiAgent:server=controlled org.test.Test in location C:\DOCUME~1\phoenix\LOCALS~1\Temp" file="..\RAServer\launcher.c" line="315"/>
<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION" text="Process launched: PID=2848" file="..\RAServer\launcher.c" line="334"/>
<SERVER_MSG time="2004:10:22:12:2:40" severity="INFORMATION" text="Adding agent interest: Java Profiling Agent" file="..\RAServer\RACommS.c" line="863"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Incoming connection request from agent Java Profiling Agent in process 2848 with uuid 4f9d3334-8119-40c4-b109-eee9b927d022" file="..\RAServer\messagePump.c" line="232"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="WARNING" text="Registered Agent 4f9d3334-8119-40c4-b109-eee9b927d022." file="..\RAServer\messagePump.c" line="280"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Created data channel with name rabuffer9 and CB addr 1B740158 buffer addr 1B782270 size in=67108864 size out=67108864" file="..\RAServer\RACommS.c" line="1095"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Connected to client data channel socket on port 34085 with descriptor 1492" file="..\RAServer\RACommS.c" line="1231"/>
<SERVER_MSG time="2004:10:22:12:2:41" severity="INFORMATION" text="Created flusher thread and about to send message to agent" file="..\RAServer\RACommS.c" line="1256"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="INFORMATION" text="Deregistering agent 4f9d3334-8119-40c4-b109-eee9b927d022. " file="..\RAServer\util.c" line="153"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="INFORMATION" text="Removing agent 4f9d3334-8119-40c4-b109-eee9b927d022. from client" file="..\RAServer\util.c" line="182"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="WARNING" text="Application exited, Closing console" file="..\RAServer\launcher.c" line="790"/>
<SERVER_MSG time="2004:10:22:12:2:42" severity="WARNING" text="Application exited, Closing console" file="..\RAServer\launcher.c" line="712"/>
<SERVER_MSG time="2004:10:22:12:2:47" severity="INFORMATION" text="Process 2848 does not exist so scrub it" file="..\RAServer\RACommS.c" line="2176"/>
<SERVER_MSG time="2004:10:22:12:2:47" severity="INFORMATION" text="Process 2848 exited" file="..\RAServer\util.c" line="64"/>


Note that the log of rac server on nt say that the process is starter in C:....\Temp.

Here I think java.exe can work.

Paths of classpath on windows and hpux are doublechecked

there is a configuration of the rac server log to see what REALLY happens??
Did have someone tested it REALLY?
They are some configuration hacks that are not documented?

thanks,

Frustrated Luca (going to giving up)


Sébastien Mathy wrote:
Luca Di Stefano a écrit :

Is it only the button browse that is disabled?

classpath and class related buttons are disabled, but text areas are enabled.


Couldn't you specify 'MyTest' in the specify class field (assuming
MyTest has a main method)?


Yes I can, and I do it but it not works:
I copied the project environment in the remote host, setted the
classpath with absolute paths of remote machine, setted the class (with
main obviously) and started profile:
on remote windows I get in console
java.lang.NoClassDefFoundError: org/lds/test/MyTest
Exception in thread "main"



It works well on my system.

I have this java file :
package org.test;
public class Test
{
    public static void main(String[] args)
    {
        System.out.println("ok");
    }
}

I have in /tmp org/test/Test.class

try first on the remote linux
java org.test.Test
ok

then in the profile menu
path : /tmp
class : org.test.Test

Regards