3 Replies Latest reply on Sep 1, 2011 12:03 AM by Hector Mendoza

    ESB to jbpm - passing User object

    passiabhijit Newbie

      hi

       

      I am trying to send an ArrayList of user object from ESB to jbpm. It throws error on passing data to jbpm.

      The exception says ClassNotFoundException : com.syncUser.vo.User not found. The class is available in both ESB and JBPM project.

       

      Attached the stacktrace as well.

       

      Thanks in advance

        • 1. Re: ESB to jbpm - passing User object
          passiabhijit Newbie

          The exception stack trace is

          2011-01-06 11:33:46,693 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] (WorkManager(2)-6) Unexpected error delivering message delegator->JBossMessage[5301427513786369]:PERSISTENT, deliveryId=0
          org.jboss.internal.soa.esb.message.format.DeferredDeserialisationException: Error constructing object value
          at org.jboss.internal.soa.esb.message.format.xml.marshal.MarshalValueImpl.getValue(MarshalValueImpl.java:89)
          at org.jboss.internal.soa.esb.message.format.xml.BodyImpl.unwrap(BodyImpl.java:281)
          at org.jboss.internal.soa.esb.message.format.xml.BodyImpl.get(BodyImpl.java:98)
          at org.jboss.soa.esb.message.MessagePayloadProxy.getPayload(MessagePayloadProxy.java:161)
          at org.jboss.soa.esb.message.mapping.ObjectMapper.getObjectFromMessage(ObjectMapper.java:228)
          at org.jboss.soa.esb.services.jbpm.JBpmObjectMapper.getObjectFromMessage(JBpmObjectMapper.java:291)
          at org.jboss.soa.esb.services.jbpm.JBpmObjectMapper.mapFromEsbMessageToJBpmMapping(JBpmObjectMapper.java:251)
          at org.jboss.soa.esb.services.jbpm.JBpmObjectMapper.mapFromEsbMessageToJBpmMapping(JBpmObjectMapper.java:230)
          at org.jboss.soa.esb.services.jbpm.cmd.CallbackCommand.getVariablesMapFromMessage(CallbackCommand.java:211)
          at org.jboss.soa.esb.services.jbpm.cmd.CallbackCommand.execute(CallbackCommand.java:153)
          at org.jbpm.command.impl.CommandServiceImpl.execute(CommandServiceImpl.java:68)
          at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor.executeJbpmCommand(CommandExecutor.java:279)
          at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor.access$100(CommandExecutor.java:51)
          at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor$3.execute(CommandExecutor.java:136)
          at org.jboss.soa.esb.services.jbpm.actions.JBpmCallback.process(JBpmCallback.java:68)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102)
          at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74)
          at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:635)
          at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:589)
          at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:419)
          at org.jboss.soa.esb.listeners.jca.JcaMessageAwareListener.process(JcaMessageAwareListener.java:163)
          at org.jboss.soa.esb.listeners.jca.JcaJMSInflowMessageProcessorAdapter.onMessage(JcaJMSInflowMessageProcessorAdapter.java:44)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.soa.esb.listeners.jca.BaseJcaInflow$1.invoke(BaseJcaInflow.java:205)
          at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:258)
          at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150)
          at $Proxy227.onMessage(Unknown Source)
          at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:179)
          at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160)
          at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831)
          at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_19902563.invoke(SessionAspect_z_handleRun_19902563.java)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
          at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
          at org.jboss.jms.client.delegate.ClientSessionDelegate.run(ClientSessionDelegate.java)
          at org.jboss.jms.client.JBossSession.run(JBossSession.java:199)
          at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:236)
          at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
          at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: org.jboss.soa.esb.UnmarshalException: java.lang.ClassNotFoundException: com.syncUser.vo.User
          at org.jboss.internal.soa.esb.message.format.xml.marshal.SerializedMarshalUnmarshalPlugin.unmarshal(SerializedMarshalUnmarshalPlugin.java:114)
          at org.jboss.internal.soa.esb.message.format.xml.marshal.MarshalValueImpl.getValue(MarshalValueImpl.java:85)
          ... 49 more
          Caused by: java.lang.ClassNotFoundException: com.syncUser.vo.User
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:93)
          at org.jboss.soa.esb.util.ContextObjectInputStream.resolveClass(ContextObjectInputStream.java:70)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at java.util.ArrayList.readObject(ArrayList.java:593)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
          at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at org.jboss.internal.soa.esb.util.Encoding.decodeToObject(Encoding.java:77)
          at org.jboss.internal.soa.esb.message.format.xml.marshal.SerializedMarshalUnmarshalPlugin.unmarshal(SerializedMarshalUnmarshalPlugin.java:110)
          ... 50 more

          • 2. Re: ESB to jbpm - passing User object
            passiabhijit Newbie

            Found a work around for it by putting jar file of com.syncUser.vo.User in location where jbossesb-rosetta.jar is placed or inside jbossesb.esb.

            I don't know if it is the correct solution but it is working.

            Let me know if anyone knows a better sollution.

            • 3. Re: ESB to jbpm - passing User object
              Hector Mendoza Newbie

              I have the sme issue, i use a Seam+JBPM+ESB Services but when i send from a jbpm action handler to the esb throw the exception, what did you do for this work out?