You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2009/03/03 13:36:57 UTC
[jira] Created: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
NullPointerException during ASSIGN of complex node returned from XQuery
-----------------------------------------------------------------------
Key: ODE-536
URL: https://issues.apache.org/jira/browse/ODE-536
Project: ODE
Issue Type: Bug
Components: JBI Integration
Affects Versions: 1.3
Environment: ServiceMix 3.3
Reporter: Rafal Rusin
Fix For: 1.3
I did a following xquery assign:
<assign name="assign1">
<copy>
<from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
<![CDATA[
for $loopOnce in (1)
return
<test:test1>
<test:test2>abc</test:test2>
</test:test1>
]]>
</from>
<to variable="myVar" part="TestPart"/>
</copy>
</assign>
and run it in servicemix.
I got:
13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
java.lang.RuntimeException: java.lang.NullPointerException
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:847)
at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
... 17 more
I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681293#action_12681293 ]
Rafal Rusin commented on ODE-536:
---------------------------------
I rebuilt current revision (749939) and it's OK here.
Thanks
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, ode-536-namespace.patch, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-536:
----------------------------
Attachment: xqueryComplexAssign.zip
Here is a test SA and a test request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unit="http://ode/bpel/unit-test.wsdl">
<soapenv:Header/>
<soapenv:Body>
<unit:HelloXQuery>
<TestPart>
asdgasdg
</TestPart>
</unit:HelloXQuery>
</soapenv:Body>
</soapenv:Envelope>
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Boisvert reassigned ODE-536:
---------------------------------
Assignee: Karthick Sankarachary
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678491#action_12678491 ]
Karthick Sankarachary commented on ODE-536:
-------------------------------------------
You typically run into this type of problem if you're dealing with (a) multiple parser implementations and (b) the node being imported or cloned does not have a owner document or parent. This is precisely why I took matters into my own hand and wrote a fool-proof method (see DomUtils.cloneNode) specifically for the purpose of cloning nodes across different implementations.
I believe the right way to resolve this issue is to use the aforementioned method in the ASSIGN activity (please see revision 749796) . Can you please give it a shot and let me know if it works in the context of JBI?
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary closed ODE-536.
-------------------------------------
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3.1
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3.1
>
> Attachments: assignmentForXQuery.diff, ode-536-namespace.patch, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678310#action_12678310 ]
Rafal Rusin commented on ODE-536:
---------------------------------
Here's evaluation result from ODE tests (working):
03-03@14:15:14 DEBUG (XQuery10ExpressionRuntime.java:408) - Expression {OXPath10Expression null} generated result [[test:test1: null]] - type=java.util.ArrayList
And here's from Servicemix (not working):
14:04:30,594 | DEBUG | pool-4-thread-1 | Query10ExpressionRuntime | time.XQuery10ExpressionRuntime 401 | Expression {OXPath10Expression null} generated result [net.sf.saxon.dom.ElementOverNodeInfo@eaa827] - type=java.util.ArrayList
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678822#action_12678822 ]
Karthick Sankarachary commented on ODE-536:
-------------------------------------------
Ciaran,
Can you attach a test case, if at all possible?
Regards,
Karthick
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-536:
----------------------------
Attachment: assignmentForXQuery.diff
Here is a workaround.
It does a Saxon DOM -> String -> Xerces DOM conversion.
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-536:
----------------------------
Attachment: assignmentForXQuery2.diff
It looks like it's enough to set
configuration.setTreeModel(net.sf.saxon.event.Builder.STANDARD_TREE);
istead of using default TINY_TREE to enable correct Xerces DOM importing.
I attached a patch.
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, assignmentForXQuery2.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary resolved ODE-536.
---------------------------------------
Resolution: Fixed
Rafal, If the problem re-surfaces, please re-open this issue.
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, ode-536-namespace.patch, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary reopened ODE-536:
---------------------------------------
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678848#action_12678848 ]
Karthick Sankarachary commented on ODE-536:
-------------------------------------------
Okay, in that case, can you please check out revision 750103? It performs certain additional sanity checks that just might resolve your issue. In case it doesn't, can you attach snippets of the BPEL file(s) that you think might be involved?
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-536:
----------------------------
Comment: was deleted
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karthick Sankarachary resolved ODE-536.
---------------------------------------
Resolution: Fixed
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679724#action_12679724 ]
Karthick Sankarachary commented on ODE-536:
-------------------------------------------
Rafal,
On second thought, it probably wasn't prudent of me to change the ASSIGN activity to fix your original issue. Hence, I've rolled back my changes to the ASSIGN activity. If nothing else, that should address the issue that Ciaran brought up.
I've a sneaky suspicion that your original issue was due to the fact that your JBI environment did not have the latest and greatest ODE libraries. Can you please run your test again, after making sure that your JBI environment is on the same page as the latest ODE branch?
Regards,
Karthick
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, ode-536-namespace.patch, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Ciaran Jessup (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678686#action_12678686 ]
Ciaran Jessup commented on ODE-536:
-----------------------------------
These changes *appear* to have broken our BPEL flows :( We're now getting the following exceptions when the flow tries to assign the response of a web-service call to a variable in the workflow:
ERROR - GeronimoLog.error(108) | Error while executing transaction
org.apache.ode.bpel.iapi.Scheduler$JobProcessorException: java.lang.RuntimeException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or c
hange an object in a way which is incorrect with regard to namespaces.
at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:409)
at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:390)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect wit
h regard to namespaces.
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:868)
at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:441)
at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:399)
... 11 more
Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
at org.apache.xerces.dom.CoreDocumentImpl.checkDOMNSErr(Unknown Source)
at org.apache.xerces.dom.ElementNSImpl.setName(Unknown Source)
at org.apache.xerces.dom.ElementNSImpl.<init>(Unknown Source)
at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown Source)
at org.apache.ode.utils.DOMUtils.cloneNode(DOMUtils.java:1154)
at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:490)
at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
... 15 more
Any ideas?
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Ciaran Jessup (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678845#action_12678845 ]
Ciaran Jessup commented on ODE-536:
-----------------------------------
Not easily, our processes are quite complex/large, but they did work ( well to an extent, but didn't fall over in this way) prior to the DomUtils.clone changes, and they work in other BPEL containers. If I can get a test case together I'll submit one, but I don't hold out a lot of hope I'm flat out on too many things at once at the moment :(
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Ciaran Jessup (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678852#action_12678852 ]
Ciaran Jessup commented on ODE-536:
-----------------------------------
Unfortunately I won't be able to do this until tomorrow morning (GMT), but yes no problem. The bpel that is now failing is trivial, it is assigning a BPEL variable to the WSDL message that is returned from the ODE instance, there is very little to go wrong, it looks as though that assign is attempting to add in a new default namespace during the clone (the elements being added are geting an xmlns: prefix (which looked odd to me naive eyes!)
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678632#action_12678632 ]
Rafal Rusin commented on ODE-536:
---------------------------------
Thanks, it works in JBI.
You are right, a cause for this was that there was no owner document for evaluated expression nodes. So Xerces' import method did not work.
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Colin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colin updated ODE-536:
----------------------
Attachment: ode-536-namespace.patch
The last change to this class seems to have allowed non NS Elements to be created despite a namespace being found. Is the behaviour intended?
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Assignee: Karthick Sankarachary
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, ode-536-namespace.patch, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-536) NullPointerException during ASSIGN of
complex node returned from XQuery
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin updated ODE-536:
----------------------------
Attachment: (was: assignmentForXQuery2.diff)
> NullPointerException during ASSIGN of complex node returned from XQuery
> -----------------------------------------------------------------------
>
> Key: ODE-536
> URL: https://issues.apache.org/jira/browse/ODE-536
> Project: ODE
> Issue Type: Bug
> Components: JBI Integration
> Affects Versions: 1.3
> Environment: ServiceMix 3.3
> Reporter: Rafal Rusin
> Fix For: 1.3
>
> Attachments: assignmentForXQuery.diff, xqueryComplexAssign.zip
>
>
> I did a following xquery assign:
> <assign name="assign1">
> <copy>
> <from expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0">
> <![CDATA[
> for $loopOnce in (1)
> return
> <test:test1>
> <test:test2>abc</test:test2>
> </test:test1>
> ]]>
> </from>
> <to variable="myVar" part="TestPart"/>
> </copy>
> </assign>
> and run it in servicemix.
> I got:
> 13:26:57,703 | ERROR | pool-4-thread-1 | BpelEngineImpl | ode.bpel.engine.BpelEngineImpl 433 | Scheduled job failed; jobDetail={type=INVOKE_INTERNAL, mexid=65536, pid={http://ode/bpel/unit-test}HelloXQueryWorld-1}
> java.lang.RuntimeException: java.lang.NullPointerException
> 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:847)
> at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:206)
> at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:215)
> at org.apache.ode.bpel.engine.BpelProcess.handleWorkEvent(BpelProcess.java:402)
> at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:424)
> at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:377)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:386)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:380)
> at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:208)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:379)
> at org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:376)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
> at org.apache.ode.bpel.runtime.ASSIGN.replaceElement(ASSIGN.java:489)
> at org.apache.ode.bpel.runtime.ASSIGN.copy(ASSIGN.java:416)
> at org.apache.ode.bpel.runtime.ASSIGN.run(ASSIGN.java:81)
> at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451)
> ... 17 more
> I noticed that this example run successfully in ODE tests. I saw that a difference is that evaluated node list is of Xerces DOM impl in ODE tests, and Saxon DOM impl in Servicemix.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.