Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 4.67 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to assign an invoke response value to an output variable of a bpel process in wso2
  2. <bpel:copy>
  3.          <bpel:from>
  4.     <bpel:literal xml:space="preserve"><tns:LVMathProxyResponse xmlns:tns="http://lvmathproxy.bpel.bps" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <tns:Mathresult></tns:Mathresult>
  6. </tns:LVMathProxyResponse>
  7.  </bpel:literal>
  8.             </bpel:from>
  9.             <bpel:to variable="output" part="payload"></bpel:to>
  10.         </bpel:copy>
  11.         <bpel:copy>
  12.             <bpel:from part="payload" variable="LVSProxyPLResponse">
  13.                 <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  14.                     <![CDATA[result]]>
  15.                 </bpel:query>
  16.             </bpel:from>
  17.             <bpel:to part="payload" variable="output">
  18.                 <bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">
  19.                     <![CDATA[tns:Mathresult]]>
  20.                 </bpel:query>
  21.             </bpel:to>
  22.         </bpel:copy>            
  23.     </bpel:assign>
  24.        
  25. [2012-03-29 20:27:39,380]  INFO - AxisService - The system is attempting to engage a module that is already engaged: ServerAdminModule
  26. [2012-03-29 20:27:39,511] ERROR - BpelEngineImpl - Scheduled job failed; jobDetail=JobDetails( instanceId: null mexId: hqejbhcnphr75sbpnvnci6 processId: {http://lvmathproxy.bpel.bps}LVMathProxy-58 type: INVOKE_INTERNAL channel: null correlatorId: null correlationKeySet: null retryCount: null inMem: false detailsExt: {enqueue=false})
  27. java.lang.IllegalArgumentException: null parent
  28.       at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:776)
  29.       at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:771)
  30.       at org.apache.ode.bpel.runtime.ASSIGN.evalQuery(ASSIGN.java:658)
  31.       at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:207)
  32.       at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:386)
  33.       at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:89)
  34.       at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
  35.       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  36.       at java.lang.reflect.Method.invoke(Method.java:597)
  37.       at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
  38.       at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
  39.       at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:879)
  40.       at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:205)
  41.       at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:309)
  42.       at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:250)
  43.       at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:305)
  44.       at org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:458)
  45.       at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:553)
  46.       at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:445)
  47.       at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:537)
  48.       at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:531)
  49.       at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:284)
  50.       at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:239)
  51.       at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:531)
  52.       at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:515)
  53.       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
  54.       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
  55.       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  56.       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  57.       at java.lang.Thread.run(Thread.java:662)
  58.        
  59. 2012-03-30 20:21:09,062] ERROR - BPELProcessProxy - Timeout or execution error     when  waiting for response to MEX {MyRoleMex#hqejbhcnphr75w46k8n8wm [Client hqejbhcnphr75w46k8n8wl] calling {http://lvmathprocess.bpel.bps}LVMService.process(...)} java.util.concurrent.TimeoutException: Message exchange        org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@1d1339b timed out(120000 ms) when waiting for a response!
  60.    java.util.concurrent.TimeoutException: Message exchange org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@1d1339b timed out(120000 ms) when waiting for a response!    at org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:250)