Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Timeout while connecting ( client with 4.3.1 AC)
Timeout while connecting ( client with 4.3.1 AC) [message #119172] Fri, 07 December 2007 09:32 Go to next message
Andreas Voss is currently offline Andreas VossFriend
Messages: 51
Registered: July 2009
I'm doing filetransfer in my own java application using the Agent
Controller API as documented in adoc/overview-summary.html.

If both, client and server use version everything works fine.
But when I use 4.3.1 on the server (have to because we need to support
SUN Solaris), the connect fails. On the other hand, I can import log
files from the SUN, so the AC seems to be installed properly.

After debugging a while I found, that the TPTP ImportLogWizard does not
use the API above but uses some internal classes. Is the API above the
recommended way to use Agent Controllers?

Here is an example code that fails:

final String HOST = "";
final int PORT = 10002;
ConnectionInfo connectionInfo = new ConnectionInfo();
INode node = NodeFactory.createNode(HOST);
IAgentController agentController = node.connect(connectionInfo);

node.connect() throws

org.eclipse.tptp.platform.execution.exceptions.AgentControll erUnavailableException:
Error: Unable to connect to the Agent Controller.Timeout while waiting
for connection to complete
org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(

The servicelog.log conatins among others an entry

msg="Connection accepted on socket 17"

so the connection happened, but then something went wrong.

I have created a bug report too.

Thanks for any hints,
Re: Timeout while connecting ( client with 4.3.1 AC) [message #119228 is a reply to message #119172] Mon, 10 December 2007 07:02 Go to previous message
Igor Alelekov is currently offline Igor AlelekovFriend
Messages: 139
Registered: July 2009
Senior Member
Hi Andreas,
New AC is listening to the port 10006 by default (not 10002 as in your
sample). The port value is configured in the serviceconfig.xml file, in
the description of the "SocketTL" transport layer. You can check if the
port is listening to with "netstat" command. And don't forget to allow
connections from other hosts wher AC is configured.

As for TPTP 4.3, actually it contains new tech. AC on Linux and Windows
only. On Solaris it contains old RAC, so old hyades framework is required
to clients to be connected to.

Previous Topic:'org.eclipse.hyades.logging.commons.FileLoggerFactory' cannot be converted to 'org.apache.commons.lo
Next Topic:Profiling Web Application on JBoss using TPTP
Goto Forum:

Current Time: Thu Sep 19 08:24:55 GMT 2019

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

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

Back to the top