Community

error on serialization object

created by r ana in jBPM - View the full discussion

hello,

 

i new to jbpm and i have a little (but for me is big and urgent problem)

 

i have 2 web service - one is for "core"(WScomponents) and the second one is for creating a JBPM workflow(WSprincipal) that manage an application

 

in WS principal i appeal one method from WScomponents that return a list of a custom object named "folder" (=> List<folder>), this list i've tried to put this in a jbpm variable like this:

 

<java g="270,290,92,52" method="getAllFolders" name="getAllFolders" var="folders">
      <arg><object expr="#{pathID}"/></arg>
      <arg><object expr="#{username}"/></arg>
      <transition g="-62,-35" name="to preluareVar" to="preluareVar"/>
</java>

 

but in the method getAllFolders i've get an error like this:

 

org.jbpm.pvm.internal.wire.WireException: couldn't invoke method getAllFolders: couldn't serialize '[wscomponents.Folder@129e910]'
        at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:97)
        at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
        at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
        at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
        at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201)
        at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
        at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
        at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
        at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
        at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
        at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
        at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:78)
        at workflow.PrincipalProcess.start(PrincipalProcess.java:57)
        at workflow.principalWS.launch(principalWS.java:22)  .....and more

 

 

any help/suggestion is appreciated!!

10x,

a.

Reply to this message by going to Community

Start a new discussion in jBPM at Community