7 Replies Latest reply on Dec 22, 2008 3:06 PM by brian.stansberry

    CommunicationException when looking up EJB (SLSB 3.0)

      Hello,

      When looking up an SLSB (EJB 3.0) I am getting a CommunicationException in JBoss 5.0

      javax.naming.CommunicationException: Failed to connect to server 10.14.51.52:1100 [Root exception is java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList]


      The properties used in the InitialContext are:
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      jnp.discoveryGroup=230.0.0.4
      jnp.discoveryPort=1102
      jnp.discoveryTimeout=5000
      jnp.disableDiscovery=false
      jnp.partitionName=ClusterOne



      Can you tell me what could I be missing? Any pointers would be appreciated..

      Thanks,

      Shreyas


      Platform: RHEL4
      JBoss AS 5.0


      The entire stack trace is here:

      javax.naming.CommunicationException: Failed to connect to server 10.14.51.52:1100 [Root exception is java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
       at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1457)
       at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1582)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
      
      Caused by: java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList
       at org.jboss.ha.framework.interfaces.HARMIClient.readObject(HARMIClient.java:342)
       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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
       at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:257)
       ... 33 more