0 Replies Latest reply on Jun 16, 2005 12:04 PM by sguy_yugs

    CannotConnectException when calling a Stateless bean from a

    sguy_yugs

      I'm using ejb3.0 preview 5 + jboss 4.01sp1 + jdk 1.5.02

      I have a client that connects to the server, looks up the remote interface of a session bean and calls a method.

      When I run this client via eclipse, it works fine.

      When I run this via a jnlp with all security permissions granted, I get the following exception (btw, the client and server are being run on the same machine):

      0 [javawsApplicationMain] DEBUG org.jboss.remoting.Client - invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [socket://192.168.1.228/]
      0 [javawsApplicationMain] DEBUG org.jboss.remoting.transport.socket.SocketClientInvoker - connect called for: org.jboss.remoting.transport.socket.SocketClientInvoker@1b15692
      32 [javawsApplicationMain] ERROR tradesports.util.SystemEventLog - org.jboss.remoting.CannotConnectException: Can get connection to server. Problem establishing socket connection.
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:203)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:96)
       at org.jboss.remoting.Client.invoke(Client.java:197)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:39)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:44)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:38)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:32)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:82)
       at $Proxy0.getEventClasses(Unknown Source)


      Any ideas why this may be happening? I've poked around the forums and I haven't found much. The closest thing I found was:

      http://jboss.com/index.html?module=bb&op=viewtopic&t=63821

      but that was an issue when connecting to a remote machine. I am just trying to connect to my local machine.

      thanks,
      -steven