Tuesday, January 25, 2011

com.oracle.bpel.client.BPELFault selectionFailure

the entire error message was:

25-Jan-2011 18:54:26 o'clock WET Error oracle.soa.bpel.engine.xml BEA-000000
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/200
3/03/business-process/}selectionFailure}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
at com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue(BPELWMPHelper.java:368)
at com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements(BPEL1AssignWMP.java:137)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:158)




going in the BPEL Instance flow trace, the actual error is traced:

Error in evaluate from expression at line "151". The result contains 5 nodes for the XPath expression : "/ns7:Root-Element/ns7:Books/ns7:BOOK_NO".


basically I had to specify an index in the XPath to return only 1 element....

If you don't provide a fault handler, the actual cause is not logged in the logs...

No comments: