| 
| Timeout while connecting (4.4.0.2 client with 4.3.1 AC) [message #119172] | Fri, 07 December 2007 04:32  |  | 
| Eclipse User  |  |  |  |  | I'm doing filetransfer in my own java application using the Agent Controller API as documented in
 http://www.eclipse.org/tptp/platform/documents/newtechAC/jav adoc/overview-summary.html.
 
 If both, client and server use version 4.4.0.2 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 = "sun.tonbeller.com";
 final int PORT = 10002;
 ConnectionInfo connectionInfo = new ConnectionInfo();
 INode node = NodeFactory.createNode(HOST);
 connectionInfo.setHostName(HOST);
 connectionInfo.setPort(PORT);
 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
 at
 org.eclipse.tptp.platform.execution.client.core.internal.Nod eImpl.connect(NodeImpl.java:146)
 
 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,
 Andreas
 |  |  |  | 
| 
| Re: Timeout while connecting (4.4.0.2 client with 4.3.1 AC) [message #119228 is a reply to message #119172] | Mon, 10 December 2007 02:02  |  | 
| Eclipse User  |  |  |  |  | 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.
 
 Regards,
 Igor
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.07326 seconds