8 Replies Latest reply on Jul 20, 2005 11:27 AM by vignesh vignesh

    Caused by: javax.naming.CommunicationException: Failed to re

    vignesh vignesh Newbie

      Hi All,

      I have two instances of Jboss (v 4.0.1) running on fedora core 3, one with clustering configured and the other with unclustered configuration running webapps to use clustered session beans on the clustered instance.

      The clustered instance is bound to IP address 204.246.8.199 where as the unclustered instance is bound to 127.0.0.1. I have also added a multicast net route as follows

      route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0

      But when I access the webapps, the application is not able to retrieve the stub from the clustered instance and an exception is thrown as below. The webapp is configured to lookup to the HAJNDI port on the clustered instance. The jndi.properties configuration for the webapps is as below.

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=//204.246.8.199:1100

      If I change the lookup for the webapps to the standard JNDI port 1099, the web app works fine without any issues. As clustering can be configured only with HAJNDI, I need to get this working. Would appreciate if someone who has faced a similar issue can provide me a solution. Thanks in advance.

      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server 204.246.8.199:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]]
      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:999)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at net.tds.inat.core.shared.InatUserManagerUtil.lookupHome(InatUserManagerUtil.java:22)
      at net.tds.inat.core.shared.InatUserManagerUtil.getHome(InatUserManagerUtil.java:42)
      at net.tds.inat.core.web.LoginAction.login_onClick(LoginAction.java:98)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at com.cc.framework.adapter.struts.ActionUtil.handleFormAction(Unknown Source)
      at com.cc.framework.adapter.struts.FWAction.handleFormAction(Unknown Source)
      at com.cc.framework.adapter.struts.ActionUtil.execute(Unknown Source)
      at com.cc.framework.adapter.struts.FWAction.execute(Unknown Source)
      at com.cc.framework.adapter.struts.FWAction.execute(Unknown Source)
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
      at net.tds.inat.core.web.InatRequestProcessor.process(InatRequestProcessor.java:61)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at net.tds.inat.core.web.SecurityFilter.doFilter(SecurityFilter.java:167)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server 204.246.8.199:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:209)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1151)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1239)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:527)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:993)
      ... 59 more
      Caused by: java.io.StreamCorruptedException: unexpected block data
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1313)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:198)