5 Replies Latest reply on Aug 27, 2002 5:21 AM by olchan

    Unable to invoke EJB method from remote client (Connection r

    olchan Newbie


      I got problem invoke method of EJB from remote client.

      java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read

      and some kinds of:
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy0.create(Unknown Source)

      my client code is:

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL, hostName);
      env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
      ctx = new InitialContext(env);
      Object ref = ctx.lookup(jndiName);
      WorkflowMgrEJBHome workflowManagerHome = (WorkflowMgrEJBHome) PortableRemoteObject.narrow(ref, WorkflowMgrEJBHome.class);
      WorkflowMgrEJB workflowManager;
      workflowManager = workflowManagerHome.create();

      I got no problem using the EJB at the server...any idea?

      Please kindly give me a hand on this...Thanks!!!