3 Replies Latest reply on Sep 22, 2005 10:27 AM by Bela Ban

    java.io.StreamCorruptedException under clustering - not the

    Nitesh Varma Newbie

      I have a very simple cluster of two nodes running on the same machine. I successfully deployed a HelloWorld Stateless Session Bean on the cluster.

      Now when I try to look up the Home reference of my HelloWorld bean, I get the following exception:

      javax.naming.CommunicationException: Failed to retrieve stub from server 10.1.3.76:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1294)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1382)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:579)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at com.tvworks.example.hello.test.HelloWorldTest.testHello(HelloWorldTest.java:50)

      I came across similar exceptions on JBoss Clustering FAQ <http://wiki.jboss.org/wiki/Wiki.jsp?page=ClusteringFAQ> but this is not the case for me. There is nothing deployed in the default and the JBoss instances are not being started in default config. Both nodes are 'all' config and both of them have jbossha.jar in their lib directories.

      Any help would be appreciated.

      Thanks,

      Nitesh