This content has been marked as final.
Show 2 replies
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 172.25.67.24:1100 [Root exception is java.io.StreamCorruptedException.
I have the following in my code
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "172.25.67.112:8080");
The starange thing is my computer's IP is 172.25.67.24:1100 .
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.