Unable to Run XQuery in BPEL; Error: XPST0003 (Doc ID 976349.1)

Last updated on SEPTEMBER 07, 2013

Applies to:

Oracle SOA Suite - Version 11.1.1.1.0 and later
Information in this document applies to any platform.

Symptoms

An error occurs while trying to run a XQuery statement inside BPEL and the audit trail reports:

javax.xml.xpath.XPathExpressionException: oracle.xquery.XQException: XPST0003: It is a static error if an expression is not a valid instance of the grammar defined in A.1 EBNF.
Detail: Lexical error at line 7, column 60. Encountered: "$" (36), after : ""
at oracle.xml.xpath.JXPathExpression.evaluate(JXPathExpression.java:224)
at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:206)
at com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue(BPELWMPHelper.java:336)
at com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements(BPEL1AssignWMP.java:130)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:157)
...
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
]]
[2009-11-25T20:59:03.055+00:00] [soa_server1] [ERROR] [] [oracle.soa.bpel.engine.xml] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000IKh8wDW5i^YVLqbQ8A1B3POR00003Z,0:2] [WEBSERVICE_PORT.name: PS_VNDR_pt] [APP: soa-infra] [composite_name: PS_VNDR] [component_name: PS_VNDR] [component_instance_id: 30001] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: client] [J2EE_APP.name: soa-infra] [composite_instance_id: 30001] ORABPEL-09500[[
XPath expression failed to execute.
An error occurs while processing the XPath expression; the expression is ora:processXQuery('xsl/queryAddress.xq',bpws:getVariableData('inputVariable','payload','/client:PROCESS_VNDR/client:PS_VNDRREQUESTMESSAGE/client:MsgData/client:Transaction/client:VENDOR')).
The XPath expression failed to execute; the reason was: oracle.xquery.XQException: XPST0003: It is a static error if an expression is not a valid instance of the grammar defined in A.1 EBNF.
Detail: Lexical error at line 7, column 60. Encountered: "$" (36), after : "".
Check the detailed root cause described in the exception message text and verify that the XPath query is correct.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms