2 Replies Latest reply on Dec 28, 2005 11:52 AM by ayusman

    Stub error..

      Hi All,
      I was writing a simple stand alone program that would call an deployed EJB on JBoss4.0.2.

      I am getting the following error.

      javax.naming.CommunicationException: Failed to retrieve stub from server [Root exception is java.io.StreamCorruptedException.

      I have the following in my code

      props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      props.put(Context.PROVIDER_URL, "");

      The starange thing is my computer's IP is .
      Can any one say why I am getting this from the JBoss AS.

      I am running the JBoss in default mode , when I switch to all mode the error is same but the error changes to some other ip.

      Any suggestions will be highly appreciated.

      Thanks in advance.