[
https://issues.apache.org/jira/browse/ODE-663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867304#action_12867304
]
Rafal Rusin commented on ODE-663:
---------------------------------
After enabling org.apache.ode.bpel DEBUG logs (in
bpel-test/src/test/resources/log4j.properties), you can see this:
05...@14:53:34 DEBUG (DebugBpelEventListener.java:50) -
ActivityExecStartEvent:
Type = activityLifecycle
ActivityId = 20
ActivityName = throw-activity-line-165
ActivityType = OThrow
ActivityDeclarationId = 84
ScopeId = 25
ScopeDeclarationId = 10
ParentScopesNames = [__PROCESS_SCOPE:HelloXQueryWorld]
ScopeName = __PROCESS_SCOPE:HelloXQueryWorld
ProcessInstanceId = 22
ProcessId = {http://ode/bpel/unit-test}HelloXQueryWorld-1
ProcessName = {http://ode/bpel/unit-test}HelloXQueryWorld
Timestamp = Thu May 13 14:53:34 GMT-08:00 2010
LineNo = 165
Class = class org.apache.ode.bpel.evt.ActivityExecStartEvent
It means that in this file
src/test/resources/bpel/2.0/TestXQueryExpression/HelloXQueryWorld.bpel
following condition was evaluated to true:
<if>
<condition>not($tempVar/wsa:EndpointReference/wsa:Metadata/Service/@EndpointName
eq "MyEndpoint")</condition>
<throw faultName="selectionFailure"/>
</if>
This looks like somehow cloned tree from tempVar:
<sref:service-ref
xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref">
<wsa:EndpointReference xmlns:pp="http://some-namespace"
xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<wsa:Metadata>
<Service
EndpointName="MyEndpoint">pp:SomeProxy</Service>
</wsa:Metadata>
</wsa:EndpointReference>
</sref:service-ref>
fails at XPath evaluation (EndpointName attribute is not found).
You can try to extend unit test case to verify that xpath returns expected
value.
> DOMUtils.cloneNode results in invalid namespace declaration
> -----------------------------------------------------------
>
> Key: ODE-663
> URL: https://issues.apache.org/jira/browse/ODE-663
> Project: ODE
> Issue Type: Bug
> Components: BPEL Runtime
> Affects Versions: 1.3.3, 1.3.4
> Reporter: Mark Ford
> Assignee: Rafal Rusin
> Priority: Critical
> Fix For: 1.3.4
>
> Attachments: ode1.x-663-v1.txt, ode1.x-663-v2.txt, ode1.x-663-v3.txt,
> ode1.x-663-v4.txt
>
>
> The DOMUtils.cloneNode code doesn't handle default namespace declarations
> correctly when processing an XQuery result from Saxon.
> For example:
> <ns1:parent xmlns:ns1="abc">
> <ns1:child xmlns="def">
> <ns2:nestedChild xmlns:ns2="def"/>
> </ns1:child>
> </ns1:parent>
> results in:
> <ns1:parent xmlns:ns1="abc">
> <ns1:child xmlns:xmlns="def">
> <ns2:nestedChild xmlns:ns2="def"/>
> </ns1:child>
> </ns1:parent>
> Notice that the default namespace has been rewritten as xmlns:xmlns which is
> invalid.
> Granted the above example is a bit odd, but strange things can happen when
> passing nodes in and out of XSLT and XQuery with respect to namespace
> declarations.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.