StreamCorruptedException while river marshalling the EJB objects in EAP6

Solution Verified - Updated -

Issue

  • The following exception could be thrown while calling the remote EJB on EAP 6 server from a remote client:
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
        at $Proxy1.echo(Unknown Source)
        at test.Test1Client.main(Test1Client.java:31)
Caused by: java.io.StreamCorruptedException: Unexpected byte found when reading an object: 53
        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:750)
        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
        at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1678)
        at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:73)
        at java.lang.Throwable.readObject(Throwable.java:913)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content