1 Reply Latest reply on Apr 23, 2007 2:20 AM by Ron Sigal

    Unable to connect to server using SimpleClient.java

    Rajesh Joshi Newbie

      Hello,

      I am a first time user of JBoss Remoting. We hava a 3rd party server that I need to connect to using plain sockets. I can connect to the server using telnet and I was also able to connect to the server using conventional java socket programming code.
      However, when I use the SimpleClient.java programme to connect I get error. Not sure what the problem is. I am using JBoss Remoting as a standalone framework for connection and it's JBossRemoting-2_2_0_GA.

      Appreciate any help in resolving this issue. Thank you.

      RJ.

      ant run-simple-client
      Buildfile: build.xml

      compile-sample-classes:

      run-simple-client:
      [java] Calling remoting server with locator uri of: socket://i1qa:5003
      [java] Invoking server with request of ''
      [java] org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://i1qa:5003/]
      [java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
      [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
      [java] at org.jboss.remoting.Client.invoke(Client.java:1544)
      [java] at org.jboss.remoting.Client.invoke(Client.java:530)
      [java] at org.jboss.remoting.Client.invoke(Client.java:518)
      [java] at org.jboss.remoting.samples.simple.SimpleClient.makeInvocation(Unknown Source)
      [java] at org.jboss.remoting.samples.simple.SimpleClient.main(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [java] at org.apache.tools.ant.Task.perform(Task.java:364)
      [java] at org.apache.tools.ant.Target.execute(Target.java:341)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [java] Caused by: java.lang.reflect.InvocationTargetException
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)