Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Unable to run AgentController&SampleClient under Fedora 4
Unable to run AgentController&SampleClient under Fedora 4 [message #120360] Wed, 09 January 2008 14:36 Go to next message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

Hi

Im facing with following troubles -
I downloaded latest TPTP sources from CVS repository (~3 weeks ago).
Then I built them under Fedora Core 4 (gcc 4.2 and g++ 4.2) following all
the instructions described in readme file.
Then i got all needed executables(including samples).

Starting ACServer seems to be ok (it occupies port #10006)/
Then i run SampleClient and got following output :

Connected to the Agent Controller on "localhost" at port number 10006
ERROR: Unable to get agent org.eclipse.tptp.TimeCollector
Press any key to exit....

After that I checked agents/org.eclipse.tptp.TimeCollector/agent.xml -
it is corrected as described in readme file (.exe and .\are dropped)

Then i set DEBUG log level and got following output:
------------------------------------------------------
createTransportListener (socket)
Successfully loaded transport layer: socketTL
Successfully loaded command extractor: tptpCmdExtr
createTransportListener (named pipe).
Successfully loaded transport layer: namedPipeTL
Successfully loaded command extractor: tptpCmdExtr
createTransportListener (named pipe).
Successfully loaded transport layer: namedPipeTL
Successfully loaded command extractor: tptpCmdExtr
createTransportListener (shared memory).
Successfully loaded transport layer: sharedMemTL
Successfully loaded command extractor: tptpCmdExtr
The transport layer specified for peer connection, TPTP_SOCKET, does not
provide the setPeerAttachInfo function.
Ready to start servers
startTransportListener (socket)
Starting Process
Controller:/home/jhsilver/TPTP_CVS/platform/org.eclipse.tptp .platform.agentcontroller/src-native-new/bin/tptpProcessCont roller
SUCCESSFULLY started Process Controller (pid=31011)
Everything is running
Socket server is running at port number of 10006.
Named pipe server is running and listening at "/tmp/IBMRAC/acmasterlog"
pipe.
Ready to accept next named pipe request.
Socket processClientRequest: Read 12 bytes.
Socket processRecdMsgs: Process msg from Control channel.
Socket: Read at least one complete message, process it.
Socket processRecdMsgs: Process msg from Control channel.
Socket: handle CONNECT request (Control channel).
ConnectionManger - successfully added connectionID 100 for transportID 1000
Socket handleCONNECT: using Connection ID: 100
Socket processClientRequest: Read 178 bytes.
Socket processRecdMsgs: Process msg from Control channel.
Socket: Read at least one complete message, process it.
Socket processRecdMsgs: Process msg from Control channel.
Socket processTheMessageHeader: Stripped header from non-TL message.
getAgent( org.eclipse.tptp.TimeCollector ) called
findActiveAgentByName looking for org.eclipse.tptp.TimeCollector
findActiveAgentByName couldn't find org.eclipse.tptp.TimeCollector
The Process Controller could not be found
sendMessage (socket) to this connection id(100)
Socket: Sent 188 bytes on connection ID 100
Error launching agent
sendMessage (socket) to this connection id(100)
Socket: Sent 168 bytes on connection ID 100

---------------------------------------------------

That it.

By the way - I also downloaded Windows binaries - and log file is in XML
format on Windows (isnt it strange ?)

Can any one give any tips please.

If any additional info is needed --please ask for it- actully i dont have
any idea what else may help.
Re: Unable to run AgentController&SampleClient under Fedora 4 [message #120428 is a reply to message #120360] Thu, 10 January 2008 06:23 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor AlelekovFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Andrew,

Isn't AC from eclipse.org working?

Please submit the agent.xml file.
Is the following test working?
- start AC with ACStart.sh
- start TimeCollector manually
- start SampleClient

Format of the log file (xml or plain) is being set in the
serviceconfig.xml.

Regards,
Igor
Re: Unable to run AgentController&SampleClient under Fedora 4 [message #120468 is a reply to message #120428] Thu, 10 January 2008 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

That is agent.xml contents:

<?xml version="1.0" encoding="UTF-8" ?>
<Agent Name="org.eclipse.tptp.TimeCollector">
<Interface>org.eclipse.tptp.agent</Interface>
<Interface>org.eclipse.tptp.collector</Interface>
<SingleInstance>0</SingleInstance>
<Bound>0</Bound>
<MaxControllers>-1</MaxControllers>
<MaxObservers>-1</MaxObservers>
<ConfigFile> %TPTP_AC_HOME%/agents/org.eclipse.tptp.TimeCollector/config/ agentconfig.xml </ConfigFile>
<LaunchConfiguration>
<launchInfo><Application
executable="TimeCollector"></Application></launchInfo>
</LaunchConfiguration>
</Agent>

Test you suggested failed - with exactly the same behaiviour.

Regarding logs - i have < Loggining fomat="CBE" level="DEBUG"> in
serviceconfig.h - and eventhough - i m getting plain text

Is there any other tips ?
Re: Unable to run AgentController&SampleClient under Fedora 4 [message #120479 is a reply to message #120428] Thu, 10 January 2008 13:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

One more addition - i looked through source code, added some debug printfs
and found one thing :

in file ../src-native-new/src/agentController/ConnectionManager.c :
function: connectionManager_startServers
i added debug two pritnf (with "Krokodile" prefix :-)):

for ( node = cm->messagePipelineList.head; node != 0; node = node->next )
{
mp = (message_pipeline_t*)node->data;

ret = mp->tl.startTransportListener( &(mp->tl.tlo) );
printf("Krokodile: one more listener ret=%d\n ",ret);
fflush(stdout);
if ( ret != 0 )
{
/* Log an error */
TPTP_LOG_ERROR_MSG2( cm, "An error was returned from
TransportLayer(%d)::startTransportLayer errNum = %d", mp->tl.transportID,
ret );
return -1;
}
i++;
}
printf("Krokodile: exiting from startServers\n ");
fflush(stdout);
return 0;

And im getting following output -

Krokodile: one more listener ret=0
Krokodile: one more listener ret=0
Krokodile: one more listener ret=0

BUT!!! i cant see output from "printf("Krokodile: exiting from
startServers\n ");" and if i add any other printfs to the code that goes
after connectionManager_startServers - i cant see it also. it looks like
some kind of program hang up - isnt it ?

If i break cycle on the second cycle step(i added counter and condition to
the FOR cycle) i have normal output:
Krokodile: one more listener ret=0
Krokodile: one more listener ret=0
Krokodile: exiting from startServers

May it be helpfull?
Re: Unable to run AgentController&SampleClient under Fedora 4 [message #120567 is a reply to message #120468] Fri, 11 January 2008 14:40 Go to previous messageGo to next message
Igor Alelekov is currently offline Igor AlelekovFriend
Messages: 139
Registered: July 2009
Senior Member
Andrew,
Your AC build isn't working in proper way.
Please check the process ProcessController.
It seems that it might be abnormal terminated according to the "The
Process Controller could not be found" record in your log file.

Is a binary build from eclipse.org working on your system?

Regards,
Igor
Re: Unable to run AgentController&SampleClient under Fedora 4 [message #120847 is a reply to message #120360] Mon, 14 January 2008 12:53 Go to previous message
Eclipse UserFriend
Originally posted by: ck2329.mail.ru

Thanks for your support - now it seems to work properly - problem was
caused by xchg and cmpxchg missing functions - my stubs were malformed -
that is my fault that i didnt mentioned about that
Previous Topic:Finding TPTP Junit Tools
Next Topic:Weblogic Profiling
Goto Forum:
  


Current Time: Wed Apr 24 18:36:18 GMT 2024

Powered by FUDForum. Page generated in 0.02661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top