ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dariusz Dziadek <d...@softwaremind.pl>
Subject [Fwd: [Fwd: Re: Error: null parent exception in bpel assignLink...]]
Date Tue, 29 Jul 2008 15:22:42 GMT
Hi

I've migrated my sample to ServiceMix 3.3 (please see attachment) but 
still an error is occur:

(...)
16:43:23,953 | DEBUG | pool-4-thread-1 | BpelProcess | 
he.ode.bpel.engine.BpelProcess 399 | InvokeResponse event for iid 1651
16:43:23,953 | DEBUG | pool-4-thread-1 | BpelRuntimeContextImpl | 
.engine.BpelRuntimeContextImpl 957 | Invoking message response for mexid 
hqejbhcnphr3gwo9rxbbsr and channel 20
16:43:23,953 | DEBUG | pool-4-thread-1 | JacobVPU | 
.apache.ode.jacob.vpu.JacobVPU 215 | injecting (...)
16:43:23,953 | DEBUG | pool-4-thread-1 | BpelRuntimeContextImpl | 
.engine.BpelRuntimeContextImpl 976 | Triggering response
16:43:23,968 | DEBUG | pool-4-thread-1 | sql | 
utils.LoggingDataSourceWrapper 77 | getConnection (tx=2)
16:43:23,968 | DEBUG | pool-4-thread-1 | sql | 
utils.LoggingConnectionWrapper 215 | prepareStmt: SELECT t0.CALLEE, 
t0.CHANNEL, t0.CORRELATION_ID, t0.CORRELATION_KEYS, 
t0.CORRELATION_STATUS, t0.CORR_ID, t0.CREATE_TIME, t0.DIRECTION, t0.EPR, 
t0.FAULT, t0.FAULT_EXPLANATION, t0.OPERATION, t0.PARTNER_LINK_ID, 
t0.PARTNER_LINK_MODEL_ID, t0.PATTERN, t0.PIPED_ID, t0.PORT_TYPE, 
t0.PROCESS_ID, t0.PROCESS_INSTANCE_ID, t0.PROPAGATE_TRANS, 
t0.REQUEST_MESSAGE_ID, t0.RESPONSE_MESSAGE_ID, t0.STATUS, t1.MEX_ID, 
t1.ID, t1.PROP_KEY, t1.PROP_VALUE FROM ODE_MESSAGE_EXCHANGE t0 LEFT 
OUTER JOIN ODE_MEX_PROP t1 ON t0.MESSAGE_EXCHANGE_ID = t1.MEX_ID WHERE 
t0.MESSAGE_EXCHANGE_ID = ? ORDER BY t1.MEX_ID ASC
16:43:23,968 | DEBUG | pool-4-thread-1 | SQL | 
log.Log4JLogFactory$LogAdapter 72 | <t 21883913, conn 9842085> executing 
prepstmnt 31105366 SELECT t0.CALLEE, t0.CHANNEL, t0.CORRELATION_ID, 
t0.CORRELATION_KEYS, t0.CORRELATION_STATUS, t0.CORR_ID, t0.CREATE_TIME, 
t0.DIRECTION, t0.EPR, t0.FAULT, t0.FAULT_EXPLANATION, t0.OPERATION, 
t0.PARTNER_LINK_ID, t0.PARTNER_LINK_MODEL_ID, t0.PATTERN, t0.PIPED_ID, 
t0.PORT_TYPE, t0.PROCESS_ID, t0.PROCESS_INSTANCE_ID, t0.PROPAGATE_TRANS, 
t0.REQUEST_MESSAGE_ID, t0.RESPONSE_MESSAGE_ID, t0.STATUS, t1.MEX_ID, 
t1.ID, t1.PROP_KEY, t1.PROP_VALUE FROM ODE_MESSAGE_EXCHANGE t0 LEFT 
OUTER JOIN ODE_MEX_PROP t1 ON t0.MESSAGE_EXCHANGE_ID = t1.MEX_ID WHERE 
t0.MESSAGE_EXCHANGE_ID = ? ORDER BY t1.MEX_ID ASC [params=(String) 
hqejbhcnphr3gwo9rxbbsr]
16:43:23,984 | DEBUG | pool-4-thread-1 | sql | 
.utils.LoggingStatementWrapper 756 | bound (1,hqejbhcnphr3gwo9rxbbsr)
16:43:23,984 | DEBUG | pool-4-thread-1 | SQL | 
log.Log4JLogFactory$LogAdapter 72 | <t 21883913, conn 9842085> [0 ms] spent
16:43:24,000 | DEBUG | pool-4-thread-1 | sql | 
utils.LoggingConnectionWrapper 215 | close
16:43:24,000 | DEBUG | pool-4-thread-1 | JDBC | 
log.Log4JLogFactory$LogAdapter 72 | <t 21883913, conn 9842085> [0 ms] close
16:43:24,000 | ERROR | pool-4-thread-1 | BpelRuntimeContextImpl | 
.engine.BpelRuntimeContextImpl 1000 | Invalid response state for mex 
hqejbhcnphr3gwo9rxbbsr: ASYNC
16:43:24,000 | DEBUG | pool-4-thread-1 | BpelEventListener | 
mon.evt.DebugBpelEventListener 50 |
ProcessMessageExchangeEvent:
Operation = readGraph
PortType = {http://www.softwaremind.pl/WKI/KB}KBServicePortType
MessageExchangeId = hqejbhcnphr3gwo9rxbbsr
Aspect = 0
Type = instanceLifecycle
ProcessInstanceId = 1651
ProcessId = {urn:/TestScenario1.bpel}TestScenari o1BPEL-5
ProcessName = {urn:/TestScenario1.bpel}TestScenario1BPEL
Timestamp = Tue Jul 29 16:43:24 CEST 2008
LineNo = -1
Class = class org.apache.ode.bpel.evt.ProcessMessageExchangeEvent
16:43:24,046 | DEBUG | pool-4-thread-1 | BpelRuntimeContextImpl | 
.engine.BpelRuntimeContextImpl 839 | Setting execution state on instance 
1651
(...)

Have you got any ideas? Any help is appreciated.

Thanks and best regards,

Darek



-------- Wiadomos'c' oryginalna --------
Temat: 	[Fwd: Re: Error: null parent exception in bpel assignLink...]
Data: 	Thu, 24 Jul 2008 15:01:50 +0200
Nadawca: 	Dariusz Dziadek <dadz@softwaremind.pl>
Odpowiedz'-Do: 	user@ode.apache.org
Adresat: 	user@ode.apache.org



By the way, shouldn't ReadGraphOut value look like below?

ReadGraphOut init value:
<?xml version="1.0" encoding="UTF-8"?>
<ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">
    <graphRdOut xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">READ_test123</graphRdOut>
</ReadGraphResponse>

or like this:

<?xml version="1.0" encoding="UTF-8"?>
<ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB">
  <ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">
    <graphRdOut xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">READ_test123</graphRdOut>
  </ReadGraphResponse>
</ReadGraphResponse>

or like this:

<?xml version="1.0" encoding="UTF-8"?>
<ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB">
  <ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">
    <graphRdOut>READ_test123</graphRdOut>
  </ReadGraphResponse>
</ReadGraphResponse>


Darek


-------- Wiadomos'c' oryginalna --------
Temat: 	Re: Error: null parent exception in bpel assignLink...
Data: 	Thu, 24 Jul 2008 14:43:42 +0200
Nadawca: 	Dariusz Dziadek <dadz@softwaremind.pl>
Adresat: 	user@ode.apache.org
Odniesienia: 	<48873BF2.4060102@softwaremind.pl> 
<fbdc6a970807230825u10dd6872vdbc0640ba1129e9f@mail.gmail.com>



Hi,

Below are the states of viariables at the moment when error occured (see 
attached servicemix.log):

DoAnalyzeIn value is correct:
<?xml version="1.0" encoding="UTF-8"?>
<message>
<payload>
  <typens:AnalyzeGraph 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:typens="http://www.softwaremind.pl/WKI/WP4-test/TestScenario1/types">
          <typens:graphIdIn>test123</typens:graphIdIn>
    </typens:AnalyzeGraph>
</payload>
</message>

ReadGraphIn value is correct:
<?xml version="1.0" encoding="UTF-8"?>
<message>
<payload>
  <ReadGraph xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">
    <graphIdRdIn>test123</graphIdRdIn>
  </ReadGraph>
</payload>
</message>

Invoking ReadGraph operation at endpoint:
<?xml version="1.0" encoding="UTF-8"?>
<service-ref>
  <jbi:end-point-reference jbi:end-point-name="KBPort"
    jbi:service-name="sns:KBService" 
xmlns:sns="http://www.softwaremind.pl/WKI/WP4-test/KB"/>
</service-ref>
with parameter value:
<?xml version="1.0" encoding="UTF-8"?>
<ReadGraph>
  <graphIdRdIn>test123</graphIdRdIn>
</ReadGraph>
and the result message is correct:
<?xml version="1.0" encoding="UTF-8"?>
<ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB">
  <graphRdOut 
xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">READ_test123</graphRdOut>
</ReadGraphResponse>

ReadGraphOut init value is CORRECT(!!!):
<?xml version="1.0" encoding="UTF-8"?>
<ReadGraphResponse xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB">
  <graphRdOut 
xmlns="http://www.softwaremind.pl/WKI/WP4-test/KB/types">READ_test123</graphRdOut>
</ReadGraphResponse>

AnalyzeGraphIn value is correct:
<?xml version="1.0" encoding="UTF-8"?>
<message>
  <payload>
    <AnalyzeGraph 
xmlns="http://www.softwaremind.pl/WKI/WP4-test/GraphAnalyzer/types">
      <graphIdIn>test123</graphIdIn>
      <ns5:graphIn 
xmlns:ns5="http://www.softwaremind.pl/WKI/WP4-test/GraphAnalyzer/types"/>
    </AnalyzeGraph>
  </payload>
</message>

But ODE can't read ReadGraphOut variable by 
$ReadGraphOut.payload/ns3:graphRdOut selection :(
Any idea why?

Darek


Matthieu Riou pisze:
> 2008/7/23 Dariusz Dziadek <dadz@softwaremind.pl>:
>
>   
>> *Hi!
>>
>> I'm using Apache ODE 1.2 with ServiceMix 3.2.1. I got an error during
>> accessing output variable (after invoking WS in BPEL process):*
>>
>>     
>
>
> That's fairly strange, it looks like a DOM level error where the node
> structure is not correct. It's raised in the following assignment (when ODE
> reads the content of the incoming message variable):
>
>             <copy>
>                 <from>$ReadGraphOut.payload/ns3:graphRdOut</from>
>                 <to>$AnalyzeGraphIn.payload/ns5:graphIn</to>
>             </copy>
>
> Also is your process persistent or in memory?
>
> Thanks,
> Matthieu
>
>
>   
>> 15:43:26,567 | DEBUG | pool-4-thread-35 | BpelEventListener        |
>> mon.evt.DebugBpelEventListener   50 |
>> VariableReadEvent:
>>   Type = dataHandling
>>   VarName = ReadGraphOut
>>   ScopeId = 2401
>>   ScopeDeclarationId = 3
>>   ScopeName = __PROCESS_SCOPE:TestScenario1BPEL
>>   ParentScopesNames = [__PROCESS_SCOPE:TestScenario1BPEL]
>>   ProcessInstanceId = 2351
>>   ProcessId = {urn:/TestScenario1.bpel}TestScenario1BPEL-6
>>   ProcessName = {urn:/TestScenario1.bpel}TestScenario1BPEL
>>   Timestamp = Wed Jul 23 15:43:26 CEST 2008
>>   LineNo = 15
>>   Class = class org.apache.ode.bpel.evt.VariableReadEvent
>> 15:43:26,567 | ERROR | pool-4-thread-35 | JacobVPU                 |
>> b.vpu.JacobVPU$JacobThreadImpl  463 | Method "run" in class
>> "org.apache.ode.bpel.runtime.ASSIGN" threw an unexpected exception.
>> java.lang.IllegalArgumentException: null parent
>>   at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:745)
>>   at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:740)
>>   at
>> org.apache.ode.bpel.runtime.ScopeFrame.getPartData(ScopeFrame.java:275)
>>   at
>> org.apache.ode.bpel.runtime.ScopeFrame.fetchVariableData(ScopeFrame.java:215)
>>   at
>> org.apache.ode.bpel.runtime.ExprEvaluationContextImpl.readVariable(ExprEvaluationContextImpl.java:92)
>>   at
>> org.apache.ode.bpel.elang.xpath10.runtime.JaxenContexts.getVariableValue(JaxenContexts.java:173)
>>   at org.jaxen.ContextSupport.getVariableValue(ContextSupport.java:217)
>>   at org.jaxen.Context.getVariableValue(Context.java:178)
>>   at
>> org.jaxen.expr.DefaultVariableReferenceExpr.evaluate(DefaultVariableReferenceExpr.java:107)
>>   at org.jaxen.expr.DefaultPathExpr.evaluate(DefaultPathExpr.java:139)
>>   at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
>>   at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:680)
>>   at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:219)
>>   at
>> org.apache.ode.bpel.elang.xpath10.runtime.XPath10ExpressionRuntime.evaluate(XPath10ExpressionRuntime.java:103)
>>   at
>> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluate(ExpressionLanguageRuntimeRegistry.java:80)
>>   at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:196)
>>   at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:348)
>>   at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
>>   at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
>>   at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>   at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>>   at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>>   at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:835)
>>   at
>> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
>>   at
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:326)
>>   at
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:337)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:336)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:174)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:335)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:332)
>>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>   at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>   at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>   at java.lang.Thread.run(Thread.java:619)
>> 15:43:26,567 | ERROR | pool-4-thread-35 | BpelEngineImpl           |
>> ode.bpel.engine.BpelEngineImpl  335 | Scheduled job failed;
>> jobDetail={mexid=hqejbhcnphr3gdiohpk3re, iid=2351, type=INVOKE_RESPONSE,
>> channel=20}
>> java.lang.RuntimeException: java.lang.IllegalArgumentException: null parent
>>   at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:464)
>>   at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
>>   at
>> org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:835)
>>   at
>> org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
>>   at
>> org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:326)
>>   at
>> org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:337)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:336)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:174)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:335)
>>   at
>> org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:332)
>>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>>   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>>   at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>   at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>   at java.lang.Thread.run(Thread.java:619)
>> Caused by: java.lang.IllegalArgumentException: null parent
>>   at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:745)
>>   at org.apache.ode.utils.DOMUtils.findChildByName(DOMUtils.java:740)
>>   at
>> org.apache.ode.bpel.runtime.ScopeFrame.getPartData(ScopeFrame.java:275)
>>   at
>> org.apache.ode.bpel.runtime.ScopeFrame.fetchVariableData(ScopeFrame.java:215)
>>   at
>> org.apache.ode.bpel.runtime.ExprEvaluationContextImpl.readVariable(ExprEvaluationContextImpl.java:92)
>>   at
>> org.apache.ode.bpel.elang.xpath10.runtime.JaxenContexts.getVariableValue(JaxenContexts.java:173)
>>   at org.jaxen.ContextSupport.getVariableValue(ContextSupport.java:217)
>>   at org.jaxen.Context.getVariableValue(Context.java:178)
>>   at
>> org.jaxen.expr.DefaultVariableReferenceExpr.evaluate(DefaultVariableReferenceExpr.java:107)
>>   at org.jaxen.expr.DefaultPathExpr.evaluate(DefaultPathExpr.java:139)
>>   at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:102)
>>   at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:680)
>>   at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:219)
>>   at
>> org.apache.ode.bpel.elang.xpath10.runtime.XPath10ExpressionRuntime.evaluate(XPath10ExpressionRuntime.java:103)
>>   at
>> org.apache.ode.bpel.runtime.ExpressionLanguageRuntimeRegistry.evaluate(ExpressionLanguageRuntimeRegistry.java:80)
>>   at org.apache.ode.bpel.runtime.ASSIGN.evalRValue(ASSIGN.java:196)
>>   at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:348)
>>   at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
>>   at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
>>   at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>   at
>> org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
>>   ... 15 more
>>
>>
>> *For more clues please refer to attachment that includes servicemix.log
>> file (DEBUG mode) and my test ServiceUnit (with WSDL and BPEL files).
>> (logs are starting when I'm sending SOAP message with test123 value by HTTP
>> BC component)
>>
>> Have you got any ideas? Any help is appreciated.
>>
>> Thanks and best regards,
>>
>> Darek
>> *
>>
>>     
>
>   





Mime
View raw message