javax.naming.CommunicationException caused by: java.rmi.UnmarshalException: while using Jboss messaging bridge (Doc ID 1345584.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 8.1 and later   [Release: and later ]
Information in this document applies to any platform.
JBoss version : 4.2.x

Symptoms

While trying to set up a message bridge from another server (JBoss) to connect to a WebLogic Server JMS queue and during restart of the JBoss server, it fails with the exception as below:

14:33:33,475 WARN [Bridge] jboss.messaging:name=TestMessageBridge,service=Bridge Failed to set up connections
javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: Problem deserializing error response; nested exception is:
java.io.StreamCorruptedException: invalid type code: 0B]
  at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74)
  at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:452)
  at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:408)
  at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393)
  at javax.naming.InitialContext.lookup(Unknown Source)
  at org.jboss.jms.server.bridge.JNDIFactorySupport.createObject(JNDIFactorySupport.java:66)
  at org.jboss.jms.server.bridge.JNDIDestinationFactory.createDestination(JNDIDestinationFactory.java:45)
  at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:967)
  at org.jboss.jms.server.bridge.Bridge.start(Bridge.java:320)
  at org.jboss.jms.server.bridge.BridgeService.startService(BridgeService.java:336)
  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
:
  at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.UnmarshalException: Problem deserializing error response; nested exception is:
  java.io.StreamCorruptedException: invalid type code: 0B
  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
  at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
  at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
  at weblogic.jndi.internal.ServerNamingNode_1033_WLStub.lookup(Unknown Source)
  at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:405)
  ... 117 more
Caused by: java.io.StreamCorruptedException: invalid type code: 0B
  at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
  at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
  at java.io.ObjectInputStream$BlockDataInputStream.skipBlockData(Unknown Source)
  at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
  at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:598)
  at weblogic.rjvm.ResponseImpl.getThrowable(ResponseImpl.java:190)
  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:232)
  ... 121 more

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms