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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.