Unable to run AgentController&SampleClient under Fedora 4 [message #120360] |
Wed, 09 January 2008 14:36 |
Eclipse User |
|
|
|
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 #120468 is a reply to message #120428] |
Thu, 10 January 2008 10:54 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03597 seconds