JBAS014154: Failed to marshal EJB parameters on standalone EJB client after applying BZ-1010377 / JBMAR-153 patch on JBoss EAP 6.1.1

Solution Verified - Updated -

Issue

  • I have a Client App in Tomcat that uses a remote EJB call to call JBoss EAP 6.1.1. It works fine if I don't install the patch BZ-1010377 (JBMAR-153 - Memory leak in reflection data), but when I do install the patch to JBoss EAP 6.1.1, I get the exception below on the client:
2013-10-24 09:28:32,650 ERROR [com.jboss.examples.EJBConnection] (EJB default - 4) unknown error executing request: java.lang.RuntimeException: JBAS014154: Marshalling der EJB Parameter nicht möglich
    at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:297) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:286) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:171) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.23.Final-redhat-1.jar:1.0.23.Final-redhat-1]
...
Caused by: java.lang.IllegalArgumentException: Can not set [B field com.jboss.examples.ejb.ContentFrame.compressesContent to con.jboss.examples.ejb.ContentFrame
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164) [rt.jar:1.7.0_45]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168) [rt.jar:1.7.0_45]
    at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:55) [rt.jar:1.7.0_45]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:75) [rt.jar:1.7.0_45]
    at java.lang.reflect.Field.set(Field.java:741) [rt.jar:1.7.0_45]
    at org.jboss.marshalling.cloner.SerializingCloner.storeFields(SerializingCloner.java:366)
    at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)
    at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:249)
    at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:129)
    at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:295) [jboss-as-ejb3-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    ... 84 more

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.1.1

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