1 Reply Latest reply on Jul 11, 2009 12:13 AM by ron_sigal

    Can not get connection to server - port out of range -1

      I'm trying to get a simple demo running on a single machine using socket transport. When I run the client and server on the same machine, I get this exception when the client attempts to invoke the server and pass a String. It gets

      java.lang.IllegalArgumentException: port out of range:-1

      I have tried different port numbers and still get the same exception.

      socket://toms-d2003x64/10.1.3.100:1600
      socket://toms-d2003x64/10.1.3.100:5400

      The client connect works but when I attempt to invoke server I get the following:

      Here's the stack trace:

      INFO | jvm 1 | main | 2009/05/21 16:21:13 | EXCEPTION: org.jboss.remoting.CannotConnectException: Can not get connection to
      server. Problem establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem
      establishing socket connection for InvokerLocator [socket://toms-d2003x64/10.1.3.100:1600]
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
      ocketClientInvoker.java:525)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.j
      ava:125)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:630)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:622)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.Client.invoke(Client.java:607)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.i365.archive.contentservice.ContentServiceImpl.invoke(ContentServiceImpl.
      java:436)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.startAllServices(Main.java:403)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at com.metalincs.analysis.framework.Main.start(Main.java:169)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:3011)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | Caused by: java.lang.IllegalArgumentException: port out of range:-1
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at java.net.InetSocketAddress.(Unknown Source)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketCl
      ientInvoker.java:178)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(Mi
      croSocketClientInvoker.java:796)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroS
      ocketClientInvoker.java:521)
      INFO | jvm 1 | main | 2009/05/21 16:21:13 | ... 8 more
      INFO | jvm 1 | main | 2009/05/21 16:21:13 |
      INFO | jvm 1 | main | 2009/05/21 16:21:13 |
      INFO | jvm 1 | main | 2009/05/21 16:21:13 |

      Has anyone else seen this problem?

      Thanks,

      Tom