[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hyades-dev] Problems with remote launch

Hi,

following problem:

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


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

Hyades 3.1.0 latest release.
In external java application panel 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.

I correct classname with org.test.Test 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? :-||

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 in this case 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"/>

Here I think java.exe can work.

Note that the log of rac server on nt say that the process is starter in  C:....\Temp.
I 'm wondering how different are the behavior of rac servers (logs are different, windows gives console feedback,..)
I suppose hyades is developed under windows.

Paths of classpath on windows and hpux are doublechecked

there is a configuration of the rac server log to see what REALLY happens?? (it is aleady setted with loggingDetail="HIGH"


NOTE:

I think that how is now, the hyades newsgroup is not usable if no one can/try to help users.
Maybe I'm not an advanced user, maybe I'm. Anyway, if you will that other people uses and appreciate your work, give a chance to do it! Try to help them. Maybe they find some bugs that you will not able to discovery, or simple gives you feedbacks on documentation and usability.
Did you make statistics on your newsgroup like how many threads haves a reply, or in wich time it comes? Or how many threads are closed?

best regards,

Frustrated Luca (going to giving up)