3 Replies Latest reply on Jul 19, 2012 9:34 PM by Stephen Coy

    JBoss 7.1.0 Final and BlazeDS: problem with remote object

    rooswelt Newbie

      Hi everyone,

      I'm trying to invoke a stateless ejb contained in a ear (deployed in JBoss AS 7.1.0 Final) from a AIR (Flex) application using BlazeDS.

      I can invoke without problem remote method with primitive parameters but when I try to pass a remote object I get this exception client side:

       

      [RPC Fault faultString="java.lang.RuntimeException : ClassNotFoundException marshaling EJB parameters" faultCode="Server.Processing" faultDetail="null"]

                at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:345]

                at mx.rpc::Responder/fault()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]

                at mx.rpc::AsyncRequest/fault()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]

                at NetConnectionMessageResponder/statusHandler()[E:\dev\4.y\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:609]

                at mx.messaging::MessageResponder/status()[E:\dev\4.y\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:264]ì'

       

      There are no errors server side

      Here is the structure of my ear:

       

      myTest.ear

           lib

           META-INF

           - myTestBlazeDS.war <-- blaze ds war

           - myTest.jar <-- the only jar, contains remote object and ejb classes

       

      The remote invocation works fine from a Java client.

       

      The same application (flex code + ear) works without problem in JBoss AS 6.0.0.

       

      Thanks in advance,

       

      Marco