JAVA XML DOM4J: Invalid XPath expression

Hi everybody,
I am not sure why I am getting an exception for this expression:
Number count= document.numberValueOf("/NODE/SUBNODE/count(*)");
Exception is:
org.dom4j.InvalidXPathException: Invalid XPath expression:
Thanks regards
Mario

Hello
what about
"count (/NODE/SUBNODE)" as xpath expression
regards franz
reward points if useful

Similar Messages

  • JAVAMapping dom4j: Invalid XPath expression:

    Hi ervybody,
    I am not sure why I am getting an exception for this expression:
    Number count= document.numberValueOf("/NODE/SUBNODE/count(*)");
    Exception is:
    org.dom4j.InvalidXPathException: Invalid XPath expression:
    Thanks regards
    Mario

    The problem is
    You don't have the correct version of jaxen or one of its dependencies on the classpath.
    Please update your DOM Parser beta12.
    Please visit the link.
    http://jira.codehaus.org/browse/JAXEN-175

  • Getting Invalid XPath expression

    Hi,
    I am parsing a XML document and reading a node with <xtags:valueOf .. select="product_name"/>. The value of product_name is :
    <product_name>SJE6 2004Q1, 1 RTU ESD, All platforms, 1 Year</product_name> , but I am getting the following exception :
    org.dom4j.InvalidXPathException: Invalid XPath expression: SJE6 2004Q1, 1 RTU ESD, All platforms, 1 Year Unexpected '2004'
    at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:316)
    at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:63)
    at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:182)
    at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:198)
    at org.apache.taglibs.xtags.xpath.AbstractTag.createXPath(AbstractTag.java:195)
    at org.apache.taglibs.xtags.xpath.VariableTag.setSelect(VariableTag.java:143)
    I tried with <xtags:copyOf select=.../node() and text()/> but still getting the same exception. Not sure why its failing on 2004? Help!
    Thanks,
    -Ashish

    The problem was not in the <xtags:valueOf> but in the following expression :
    <xtags:variable id="lName" select="<%= product_name %>"/>
    where I wasassigning the value of <product_name> to a String (java) variable defined. But this will be another question : why is <xtags:variable> failing?

  • [Error ORABPEL-10039]: invalid xpath expression  - array processing

    hi,
    I am trying to process multiple xml elements
    <assign name="setinsideattributes">
    <copy>
    <from expression="ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')"/>
    <to variable="ssn"/>
    </copy>
    </assign>
    where iterator is a index variable .
    I am getting into this error .
    Error(48):
    [Error ORABPEL-10039]: invalid xpath expression
    [Description]: in line 48 of "D:\OraBPELPM_1\integration\jdev\jdev\mywork\may10-workspace\multixm-catch\multixm-catch.bpel", xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" specified in <from> is not valid, because XPath query syntax error.
    Syntax error while parsing xpath expression "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')", at position "77" the exception is Expected: ).
    Please verify the xpath query "ora:getElement('Receive_1_Read_InputVariable','BILL','/ns2:BILL/ns2:CMS1500['bpws:getVariableData('iterator')']/ns2:HEADER/ns2:SSN')" which is defined in BPEL process.
    [Potential fix]: Please make sure the expression is valid.
    any information on how to fix this .
    thanks in advance

    check out this note here
    http://clemensblog.blogspot.com/2006/03/bpel-looping-over-arrays-collections.html
    hth clemens

  • ORA-31013: Invalid XPATH expression -  Oracle9i

    Hello, I have to write a secure website call and below is the code snippet. I am getting following error
    ORA-31013: Invalid XPATH expression
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 104
    This is on Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    Code snippet
    soap_request :=
    '<?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <NewOrder xmlns="urn:ws.xtech.net/xtechGateway">
    <newOrderRequest xsi:type="ns1:NewOrderRequestElement" xmlns:ns1="urn:ws.xtech.net/xtechGateway" xmlns="">
    <ns1:xConnectionUsername>'
    || 'XXXXXXXX'
    || '</ns1:xConnectionUsername>';
    UTL_HTTP.SET_WALLET ( 'file:/devdb/9.2.0/appsutil/wallet', 'password' );
    http_req :=
    UTL_HTTP.begin_request
    ('https://wsvar.xtech.net/xtechGateway',
    'POST',
    'HTTP/1.1'
    UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
    UTL_HTTP.set_header (http_req, 'Content-Length', LENGTH (soap_request));
    utl_http.set_header(http_req, 'SOAPAction', '');
    UTL_HTTP.write_text (http_req, soap_request);
    http_resp := UTL_HTTP.get_response (http_req);
    UTL_HTTP.read_text (http_resp, soap_respond);
    UTL_HTTP.end_response (http_resp);
    *resp := XMLTYPE.createxml (soap_respond);
    resp :=
    resp.EXTRACT
    ('/soap:Envelope/soap:Body/child::node()',
    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"'
    v_resp :=
    resp.EXTRACT ('NewOrderResponse/return/text ()', '"approvalStatus"').getstringval
    Not sure where Am I doing wrong. Please help
    Thanks,
    R

    Okay, I have removed the "ApprovalStatus" and replaced with the xmlns. Also, based on the description of child:node(), I think, then it is required.
    Now I am getting following error
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    Below is the complete code and underneath code I am providing response XML structure
    I can't thank you enough for tracking this post for so long. Thank you so much, I really appreciate your diligence.
    Code_
    DECLARE
    soap_request CLOB;
    soap_respond CLOB;
    v_resp VARCHAR2 (100);
    v_order VARCHAR2 (100);
    v_line_number VARCHAR2 (100);
    http_req UTL_HTTP.req;
    http_resp UTL_HTTP.resp;
    resp XMLTYPE;
    BEGIN
    soap_request :=
    '<?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <NewOrder xmlns="urn:ws.xtech.net/xtechGateway">
    <newOrderRequest xsi:type="ns1:NewOrderRequestElement" xmlns:ns1="urn:ws.xtech.net/xtechGateway" xmlns="">
    <ns1:XConnectionUsername>'
    || 'xxxxxxx'
    || '</ns1:xalConnectionUsername>'
    || '<ns1:xalConnectionPassword>'
    || 'xxxxxxx'
    || '</ns1:xalConnectionPassword>'
    || '<ns1:industryType>'
    || 'EC'
    || '</ns1:industryType>'
    || '<ns1:transType>'
    || 'AC'
    || '</ns1:transType>'
    || '<ns1:bin>'
    || '000002'
    || '</ns1:bin>'
    || '<ns1:merchantID>'
    || 700000208789
    || '</ns1:merchantID>'
    || '<ns1:terminalID>'
    || 001
    || '</ns1:terminalID>'
    || '<ns1:ccAccountNum>'
    || '4x1xxxx11x11x1xx1'
    || '</ns1:ccAccountNum>'
    || '<ns1:ccExp>'
    || '122012'
    || '</ns1:ccExp>'
    || '<ns1:ccCardVerifyPresenceInd>'
    || 2
    || '</ns1:ccCardVerifyPresenceInd>'
    || '<ns1:avsZip>'
    || 'T2H 2K6'
    || '</ns1:avsZip>'
    || '<ns1:avsAddress1>'
    || '112-7015 MACLEOD TRAIL SW'
    || '</ns1:avsAddress1>'
    || '<ns1:avsAddress2>'
    || ''
    || '</ns1:avsAddress2>'
    || '<ns1:avsCity>'
    || 'CALGARY'
    || '</ns1:avsCity>'
    || '<ns1:avsState>'
    || ''
    || '</ns1:avsState>'
    || '<ns1:avsName>'
    || 'Testing'
    || '</ns1:avsName>'
    || '<ns1:avsCountryCode>'
    || 'CA'
    || '</ns1:avsCountryCode>'
    || '<ns1:orderID>'
    || '31103142361483'
    || '</ns1:orderID>'
    || '<ns1:amount>'
    || 100
    || '</ns1:amount>'
    || '<ns1:comments>'
    || 'This is a AE AVSCVV AuthCap'
    || '</ns1:comments>'
    || '</newOrderRequest>'
    || '</NewOrder>'
    || '</soapenv:Body>'
    || '</soapenv:Envelope>';
    UTL_HTTP.set_wallet ('file:/a01/oracle/devdb/9.2.0/appsutil/wallet',
    'p4ssword'
    http_req :=
    UTL_HTTP.begin_request
    ('https://wsvar.xtech.net/xtechGateway',
    'POST',
    'HTTP/1.1'
    UTL_HTTP.set_header (http_req, 'Content-Type', 'text/xml');
    UTL_HTTP.set_header (http_req, 'Content-Length', LENGTH (soap_request));
    UTL_HTTP.set_header (http_req, 'SOAPAction', 'xmlns="urn:ws.xtech.net/xtechGateway"');
    UTL_HTTP.write_text (http_req, soap_request);
    http_resp := UTL_HTTP.get_response (http_req);
    UTL_HTTP.read_text (http_resp, soap_respond);
    UTL_HTTP.end_response (http_resp);
    resp := XMLTYPE.createxml (soap_respond);
    resp :=
    resp.EXTRACT ('/soap:Envelope/soap:Body/child::node()',
    'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"'
    v_resp :=trunc(resp.EXTRACT ('/NewOrderResponse/return/text ()','xmlns:ns1="urn:ws.xtech.net/xtechGateway"').getstringval());
    DBMS_OUTPUT.put_line ('Response: ' || v_resp);
    END;
    XML Response Structure_
    <xml>
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:ws.xtech.net/xtechGateway">
    <SOAP-ENV:Body id="_0">
    <NewOrderResponse xmlns="urn:ws.xtech.net/xtechGateway" xsi:type="ns:NewOrderResponse">
    <return xsi:type="ns:NewOrderResponseElement">
    <industryType xsi:type="xsd:string">EC</industryType>
    <transType xsi:type="xsd:string">AC</transType>
    <bin xsi:type="xsd:string">000001</bin>
    <merchantID xsi:type="xsd:string">041756</merchantID>
    <terminalID xsi:type="xsd:string">001</terminalID>
    <cardBrand xsi:type="xsd:string">DI</cardBrand>
    <orderID xsi:type="xsd:string">31103142361483</orderID>
    <txRefNum xsi:type="xsd:string">41C09DBC1D0710F4635C1156509F3CCF491F545E</txRefNum>
    <txRefIdx xsi:type="xsd:string">1</txRefIdx>
    <respDateTime xsi:type="xsd:string">20041215152533</respDateTime>
    <procStatus xsi:type="xsd:string">0</procStatus>
    <approvalStatus xsi:type="xsd:string">1</approvalStatus>
    <respCode xsi:type="xsd:string">00</respCode>
    <avsRespCode xsi:type="xsd:string">B </avsRespCode>
    <cvvRespCode xsi:type="xsd:string">P</cvvRespCode>
    <authorizationCode xsi:type="xsd:string">tst993</authorizationCode>
    <mcRecurringAdvCode xsi:type="xsd:string"/>
    <visaVbVRespCode xsi:type="xsd:string"/>
    <procStatusMessage xsi:type="xsd:string">Approved</procStatusMessage>
    <hostRespCode xsi:type="xsd:string">100</hostRespCode>
    <hostAVSRespCode xsi:type="xsd:string">I3</hostAVSRespCode>
    <hostCVVRespCode xsi:type="xsd:string">P</hostCVVRespCode>
    <retryAttempCount xsi:type="xsd:string"/>
    <lastRetryDate xsi:type="xsd:string"/>
    <customerRefNum xsi:type="xsd:string"/>
    <customerName xsi:type="xsd:string"/>
    <profileProcStatus xsi:type="xsd:string"/>
    <profileProcStatusMsg xsi:type="xsd:string"/>
    </return>
    </NewOrderResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope> </xml>
    Edited by: user2913945 on Mar 8, 2010 10:42 AM

  • Invalid Xpath Expression

    Hi ,
    I have an XML content as below and i am sending that as a string input to other interface . Here i have hard coded Teller ID and account ID , but i want to send the input from payload like this : ><Teller><ID>bpws:getVariableData('TellerId')</ID></Teller> .
    But it is giving error as "Invalid xpath expression" . How can the below xml be sent with the teller id and account no. accepting inputs from payload?
    ora:getContentAsString('<?xml version="1.0" encoding="utf-8"?><Summit xmlns="http://summit.fiserv.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://summit.fiserv.com /cfg/CommandSchema/sisCommands.xsd"><Spectrum><CommandRq><RequestHeader><Teller><ID>T1P1</ID></Teller><Override>0</Override></RequestHeader><RQMS_RQSTRq><Account>123123</Account><Options>M</Options></RQMS_RQSTRq></CommandRq></Spectrum></Summit>')

    The other interface accepts only strings . If i do it using xml fragment , it is embedding white spaces and is not acceptable by the other interface.

  • ORA-31013: Invalid XPATH expression

    Hi,
    I am getting this error when i am trying to execute a sp which will do xml parsing.
    What all i did is i have Oracle database with 9.2.0.1.0 version. The i hav ugraded the database to 9.2.0.6.0 using the Oracle patch. After upgrading the Oracle db to 9.2.0.6.0 i got the below error:
    ORA-00600: internal error code,
    Then i ran the catpatch.sql to get rid off this error. After running the catpatch.sql the above error gone but i got another error
    ORA-31013: Invalid XPATH expression.
    What does this mean. The sp is working fine before upgrading the Oracle db to 9.2.0.6.0. Is the patch upgrade corrupted any of the XML libraries or the 9.2.0.6.0 doesn't support the xml parsing or do i need to apply any patch for this.
    Please suggest me ASAP since this error has been raised at cusotmer and i am in very much need of this.
    The statement which i am using for parsing the xml file is
    x.xml_data.extract('/x:recording/@x:ref').getStringVal() from xml_process;
    where xml_process is a table of xml_type.
    Thanks
    Rao

    Hello, There,
    Recently we have moved some project from 9ir2 to 10gr2, some code which worked fine before but now got error.
    any patch needed for this ? did anybody get the same issue before?
    here're my environment:
    1)9ir2:
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE 9.2.0.8.0 Production
    TNS for Solaris: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    2) 10gr2:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    3) below are my test code which works fine in 9ir2 but got problem of "ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in..."
    ---===================TEST CODE START========================================
    var xml_data clob;
    begin
    :xml_data:='<?xml version="1.0" encoding="UTF-8"?>
    <MCCI_MT000100.Message xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <!-- NOTE
    The OID values and other values used in this message are not intended to be meaningful
    -->
    <id root="2.16.840.1.113883.4.3.57.100000126" extension="58212040112"/>
    <creationTime value="20030620"/>
    <versionId>v3r1b3</versionId>
    <!--
    this should be the interaction ID for "Invoice Adjudication Request"
    -->
    <interactionId root="2.16.840.1.113883.4.3.57.100000126" extension="FICR_IN600201"/>
    <processingCode code="P"/>
    <processingModeCode code="T"/>
    <!-- always send an acknowledgement -->
    <acceptAckCode code="AL"/>
    <!-- always send an acknowledgement -->
    <applicationAckCode code="AL"/>
    <communicationFunctionRcv>
    <typeCode code="RCV"/>
    <deviceRcv classCode="DEV" determinerCode="INSTANCE">
    <id root="2.16.840.1.113883.4.3.57.100000126" extension="111111111"/>
    <name use="L">BCE</name>
    </deviceRcv>
    </communicationFunctionRcv>
    <communicationFunctionSnd>
    <typeCode code="SND"/>
    <deviceSnd>
    <!-- note the defaulted classCode and determinerCode ere -->
    <id root="2.16.840.1.113883.4.3.57.100000126" extension="100000126"/>
    <name use="L">SampleProvider</name>
    </deviceSnd>
    </communicationFunctionSnd>
    <controlActProcess>
    <!-- 111111112 is Trading Network ID -->
    <id root="2.16.840.1.113883.4.3.57.100000126" extension="111111112"/>
    <effectiveTime value="20030620"/>
    <subject>
    <!-- element for invoiceadjudicationResults -->
    <invoiceAdjudicationRequest>
    <id root="2.16.840.1.113883.4.3.57.100000126" extension="58712040112"/>
    <amt currency="CAD" value="200"/>
    <reasonOf>
    <!-- group invoice #: only one -->
    <justifiedInvoiceElementOrder>
    <id extension="162" root="2.16.840.1.113883.4.3.57.100000126"/>
    <code code="CP"/>
    <!-- CP: Clinical Product; CS: Clinical Service -->
    <netAmt currency="CAD" value="200"/>
    <component>
    <InvoiceElementDetail>
    <id extension="162.1" root="2.16.840.1.113883.4.3.57.100000126"/>
    <code code="240"/> <!-- service code -->
    <unitQuantity>
    <numerator value="4" unit="h"/>
    <denominator value="1" unit="each"/>
    </unitQuantity>
    <unitPriceAmt>
    <numerator value="25" currency="CAD"/>
    <denominator value="1" unit="1"/>
    </unitPriceAmt>
    <netAmt currency="CAD" value="100"/>
    <reasonOf>
    <justifiedAct>
    <billableClinicalService>
    <code code="240"/>
    <!-- service code again, duplicate -->
    <!-- date of service -->
    <effectiveTime value="20030620"/>
    <performer>
    <healthCareProvider id ="100000126"/>
    <!-- idb provider id as responsible provider -->
    </performer>
    <location>
    <participant>
    <COCT_MT240000.ServiceDeliveryLocation>
    <code code="12"/>
    <!-- facilityTypecode -->
    </COCT_MT240000.ServiceDeliveryLocation>
    </participant>
    </location>
    </billableClinicalService>
    </justifiedAct>
    </reasonOf>
    </InvoiceElementDetail>
    </component>
    <component>
    <InvoiceElementDetail>
    <id extension="162.2" root="2.16.840.1.113883.4.3.57.100000126"/>
    <code code="240"/> <!-- service code -->
    <unitQuantity>
    <numerator value="4" unit="h"/>
    <denominator value="1" unit="each"/>
    </unitQuantity>
    <unitPriceAmt>
    <numerator value="25" currency="CAD"/>
    <denominator value="1" unit="1"/>
    </unitPriceAmt>
    <netAmt currency="CAD" value="100"/>
    <reasonOf>
    <justifiedAct>
    <billableClinicalService>
    <code code="240"/>
    <!-- service code again, duplicate -->
    <!-- date of service -->
    <effectiveTime value="20030620"/>
    <performer>
    <healthCareProvider id ="100000126"/>
    <!-- idb provider id as responsible provider -->
    </performer>
    <location>
    <participant>
    <COCT_MT240000.ServiceDeliveryLocation>
    <code code="12"/>
    <!-- facilityTypecode -->
    </COCT_MT240000.ServiceDeliveryLocation>
    </participant>
    </location>
    </billableClinicalService>
    </justifiedAct>
    </reasonOf>
    </InvoiceElementDetail>
    </component>
    <coverage>
    <coveringCoverageEvent>
    <id extension="1" root="2.16.840.1.113883.4.3.57.100000126"/>
    <code code="event"/>
    <beneficiary>
    <coveredParty>
    <!-- claim # -->
    <id extension="00012345" root="2.16.840.1.113883.4.3.57.100000126"/>
    <code code ="spouse"/>
    <coveredParty>
    <CoveredPartyAsPatientPerson>
    <name>
    <family>Jackson</family>
    <given>Robyn</given>
    </name>
    <administrativeGenderCode code="F"/>
    <birthTime value="19490601" />
    <deceasedTime value="20030123" />
    <multipleBirthInd value="false" />
    <multipleBirthOrderNumber value="1" />
    <addr>
    <postalCode>L1W3V4</postalCode>
    </addr>
    </CoveredPartyAsPatientPerson>
    </coveredParty>
    </coveredParty>
    </beneficiary>
    <author>
    <underwriter>
    <!-- Insurer ID -->
    <id extension="10001" root="2.16.840.1.113883.4.3.57.100000126"/>
    </underwriter>
    </author>
    </coveringCoverageEvent>
    </coverage>
    </justifiedInvoiceElementOrder>
    </reasonOf>
    </invoiceAdjudicationRequest>
    </subject>
    </controlActProcess>
    <attentionLine type="AttentionLine" assoc="inboundRelationship">
    <keyWordText code="BENEFITGR">Physio</keyWordText>
    </attentionLine>
    <attentionLine type="AttentionLine" assoc="inboundRelationship">
    <keyWordText code="TPID">111111112</keyWordText>
    </attentionLine>
    </MCCI_MT000100.Message>
    end;
    select extract(xmltype(:xml_data),'/MCCI_MT000100.Message/communicationFunctionSnd/deviceSnd/id@extension','xmlns="urn:hl7-org:v3"').getStringVal() from dual;
    --=====================TEST CODE END=======================================
    in 9ir2 the result is:
    SQL> select extract(xmltype(:xml_data),'/MCCI_MT000100.Message/communicationFunctionSnd/deviceSnd/id@extension','xmlns="urn:hl7-org:v3"').getStringVal(
    ) from dual ;
    EXTRACT(XMLTYPE(:XML_DATA),'/MCCI_MT000100.MESSAGE/COMMUNICATIONFUNCTIONSND/DEVI
    100000126
    but in 10gr2, the error show as below:
    SQL>
    SQL> select extract(xmltype(:xml_data),'/MCCI_MT000100.Message/communicationFunctionSnd/deviceSnd/id@extension','xmlns="urn:hl7-org:v3"').getStringVal(
    ) from dual ;
    select extract(xmltype(:xml_data),'/MCCI_MT000100.Message/communicationFunctionSnd/deviceSnd/id@extension','xmlns="urn:hl7-org:v3"').getStringVal() fro
    m dual
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in:
    '/MCCI_MT000100.Message/communicationFunctionSnd/deviceSnd/id@extension'
    thanks in advance!
    richard

  • Can not construct xml from relative xpath expression: //FormVar

    In version 7.0, it was possible to access Form Variables with the (valid) XPath Expression "//FormVariable".
    In 7.2.2, using this XPath Expression leads to a stalled action, with message: "can not construct xml from relative xpath expression: //FormVar". (see full stack trace below)
    What's wrong? How can I fix this?
    Use of relative expression is very very useful during the development phase!
    Best Regards,
    com.adobe.workflow.WorkflowRuntimeException: can not construct xml from relative xpath expression: //FormVar
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.createNodesForXPathExpression(PATE xecutionContextImpl.java:854)
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:707)
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:429)
    at com.adobe.workflow.qpac.set_value.SetValueService.execute(SetValueService.java:72)
    at com.adobe.workflow.engine.PEUtil.executeAction(PEUtil.java:184)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2371)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMT Bean.java:512)
    at sun.reflect.GeneratedMethodAccessor709.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 44)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
    at $Proxy285.asyncInvokeProcessCommand(Unknown Source)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:127)
    at sun.reflect.GeneratedMethodAccessor641.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:458)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:62)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.jms.JMSCont

    Sorry, i just read my own message in the discussion forum and
    discovered all spaces for formating the XML tags where gone.
    It should look like this:
    [-----xml_type---]
    <doc>
    __<role>
    ____actor
    ____<first>
    ______john
    ____</first>
    ____<last>
    ______bond
    ____</last>
    __</role>
    __<role>
    ____actor
    ____<first>
    ______james
    ______</first>
    ____<last>
    ______smith
    ____</last>
    __</role>
    </doc>
    semantic:
    There are two actors: "john bond" and "james smith"
    Querying for "john bond" succeedes which is correct
    Querying for "james smith" succeedes which is correct
    Querying for "james bond" fails which is correct
    Querying for "john smith" succeedes which is an ERROR!
    contains(xdata, 'actor INPATH(//role[./first = "john" and ./last
    = "smith"])' (= 100 ---> ERROR!)
    bye,
    feri

  • ORABPEL-09503 Invalid xpath expression in a CASE expression

    Hi I have the following case statement in my BPEL process -
    <switch name="checkAuthenticateResult">
    <case condition="upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_RETURN_STATUS')))='S' AND upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')bpws:getVariableData('isAuthenticCaller'))) = 'T'">
    <bpelx:annotation>
    <bpelx:pattern>authenticatePass
    </bpelx:pattern>
    </bpelx:annotation>
    <assign name="assignTktOutput">
    <copy>
    <from expression="boolean(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')='T')"/>
    <to variable="outputVariable" part="payload" query="/client:WshSendTxnToOtmServiceProcessResponse/client:result/ns2:authenticated"/>
    </copy>
    </assign>
    </case>
    <otherwise>
    <throw name="throwAuthenticateFail" faultVariable="g_faultVariable" faultName="faultError"/>
    </otherwise>
    </switch>
    When I run my process in 10.1.2, it works fine, but when I run it in 10.1.3.1, it errors out with the following error -
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09503 Invalid xpath expression. Error while parsing xpath expression "upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_RETURN_STATUS')))='S' AND upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')bpws:getVariableData('isAuthenticCaller'))) = 'T'", the reason is Unknown expression at EOF: upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_RETURN_STATUS')))='S' AND upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')bpws:getVariableData('isAuthenticCaller'))) = 'T'..
    Please verify the xpath query "upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_RETURN_STATUS')))='S' AND upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')bpws:getVariableData('isAuthenticCaller'))) = 'T'" which is defined in BPEL process.
    </faultstring><faultactor></faultactor></env:Fault></env:Body></env:Envelope>
    Do you think there was a bug in the expression that has surfaced due to some additional validations in 10.1.3.1 or am I missing something here?
    Thanks a lot for your help.
    Thanks.
    RV

    AND upper-case(string(bpws:getVariableData('g_InvokeAuthenticateTicketOutput','OutputParameters','/ns13:OutputParameters/X_TKT_VALID')bpws:getVariableData('isAuthenticCaller'))) = 'T'"
    what is this bold part about? this looks wrong to me..
    /clemens

  • Concat Operation failing.[Error ORABPEL-10039]: invalid xpath expression

    Hi ,
    I am trying to concat two values which are as mentioned below
    concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber'))
    to /ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value (which is same as first parameter of concat operation)
    the error is [Error ORABPEL-10039]: invalid xpath expression
    [Description]: in line 681 of "C:\Users\varsha.tm\Desktop\InitiateMaintainContractRolesEmail\bpel\InitiateMaintainContractRolesEmail.bpel", xpath expression "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('Ac
    cumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber'))" specified in <from> is not valid, because XPath query syntax error.
    Syntax error while parsing xpath expression "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTyp
    eCount]/ns1:ContractNumber'))", at position "76" the exception is Expected: ).
    Please verify the xpath query "concat(bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value'),bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:Co.....
    I also tried converting both the variables of concat to string and then giving to concat operation. please let me know what could be the possible way to do this

    Hi,
    try storing the values of the below into a separate variables var1,var2 and then use concat(bpws:getVariableData('var1'),bpws:getVariableData(var2))....also try using the predicate[] without
    bpws:getVariableData for the below variables...for this in the assign activity create copy operation window....u see the xpath text box and u can mention the predicate values there...some
    thing like */ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value* , *ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType
    [$ContractInfoTypeCount]/ns1:ContractNumber* instead of the below values
    bpws:getVariableData('paramsVar','/ns7:parameters/ns7:item[ns7:name='ContractNumber']/ns7:value')
    bpws:getVariableData('AccumilateEmail','/ns1:AccumilatePLAContracts/ns1:AccumilatePLAType[$PLACount]/ns1:ContractInfoType[$ContractInfoTypeCount]/ns1:ContractNumber')

  • Java XML Parser v2 xpath problem

    I have a lot of trouble using the xpath functionality. I want to get the name of different elements. I'm using some xpath expressions which in my opinion should work (see http://www.w3.org/TR/xpath ), but they don't. I'm calling XMLNode.selectSingleNode.
    For example :
    /*/name()
    name(/*[1])
    name(/*)
    name()
    I've tried those with Saxon and they do work. Using the Oracle implementation an exception is thrown on most expressions. So what's wrong here?
    Bye,
    Jan

    Consider this example
    --- Test.java -----
    import java.io.*;
    import javax.xml.transform.sax.SAXSource;
    import net.sf.saxon.sxpath.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    import org.xml.sax.InputSource;
    public class Test
    public Test() {
    try {
    DOMParser domParser = new DOMParser();
    domParser.parse(new FileReader("test.xml"));
    XMLDocument document = domParser.getDocument();
    InputSource is = new InputSource(new File("test.xml").toURL().toString());
    SAXSource source = new SAXSource(is);
    testXPathOracle(document,"count(//*)");
    testXPathOracle(document,"name(/*)");
    testXPathOracle(document,"name(/root)");
    testXPathOracle(document,"/*/name()");
    testXPathSaxon(source,"count(//*)");
    testXPathSaxon(source,"name(/*)");
    testXPathSaxon(source,"name(/root)");
    testXPathSaxon(source,"/*/name()");
    } catch(Exception e) {
    System.out.println(e.getMessage());
    public void testXPathOracle(XMLNode context, String xpath) {
    try {
    Node node = context.selectSingleNode(xpath);
    System.out.println(node.getNodeValue());
    } catch(Exception e) {
    System.out.println(e.getMessage());
    public void testXPathSaxon(SAXSource source, String xpath) {
    try {
    XPathEvaluator xpe = new XPathEvaluator();
    XPathExpression exp = xpe.createExpression(xpath);
    Object object = exp.evaluateSingle(source);
    System.out.println(object);
    } catch(Exception e) {
    System.out.println(e.getMessage());
    public static void main(String[] args) {
    Test test = new Test();
    --- test.xml -----
    <root>
         <element/>
    </root>
    Result is on my computer:
    Unknown expression at EOF: (count(//*))[1].
    Unknown expression at EOF: (name(/*))[1].
    Unknown expression at EOF: (name(/root))[1].
    Error in expression: '(/*/name())[1]'.
    2
    root
    root
    root
    I think the xpath expressions are valid. So what's wrong?

  • Parsing XPath Expressions

    Is there a Java API that parses XPath expressions and produces the resultant XPath tree in memory?
    For example the xpath expression: /a/b[c/d]/e/f
    will produce a tree with "a" as the root node, "b" as a sub-node, "c" and "e" as subnodes of "b" and so on.
    I don't want one that is to be evaluate against and XML document. I just want the XPath Expression tree to be build in memory.
    Thanks

    hi,
    look at javacc, a compiler very popular, with many examples.
    Raymond

  • Using xpath expressions in Document-Builder

    Hi all
    we have re-designed our (existing) DDX-templates with the Document Builder in LC Workbench. The DDX templates are used to assemble PDFs with LC Assembler-Service.
    Now my question: Is it still possible to use XPath-expression in the DDX template? Please find our example below:
    The XPath expression works only if we copy&paste the DDX source code directly to the Assembler-Service property view (picture below). But referring the DDX-template doens't interpret the xpath path at run time (2nd picture below). Any help on that will be appreciated!
    Works (using DDX source code directly):
    Doesn't work (using DDX template):

    Hi,
    >
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    I think any XPath expressions which use [] are not supported in stand alone
    version, but as this is not documented I could be wrong.
    Regards
    Arek

  • XPath expressions in XmlCursor / XmlObjects

    Hi all,
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    A simple example of an xml
    <rules>
    <rule disabled="true">hello</rule>
    <rule>hello</rule>
    </rules>
    It should return one node, but actually it returns nothing. If I use another one:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE";
    Then I get two nodes (which is correct). It seems to me a bug or a partial support
    for XPath expressions. Or maybe I am using a bad syntax, anyone can help?
    Thanks in advance !

    Hi,
    >
    I tried to get a portion of an XML by using XPath Expressions as follows:
    String xPathExpression =
    "declare namespace xq='http://inti.notariado.org/indices' " +
    "$this/xq:RULES/xq:RULE[@disabled]";
    I think any XPath expressions which use [] are not supported in stand alone
    version, but as this is not documented I could be wrong.
    Regards
    Arek

  • Create xml document by xpath in java

    as i know, i can navigate existing xml document by xpath in java, i wonder if i can create a xml document framework by xpath in java?
    something like:
    Document doc = someobject.create(xpath expression);
    then i can use DOM to fill the framework?
    Thanks

    Please refer
    http://www.packtpub.com/article/xpath-support-in-oracle-jdeveloper-xdk-11g

Maybe you are looking for

  • Urgent : Doubt in SVM Model

    Hi , I ma using ODM10.2.3 version .I am running SVM model on a dataset , which contains roughly 50,000 records . But when i am running the model it is taking huge time , before it didn't happen to me , but now it is taking very huge time comparitivel

  • There s no sound when I connect my aux wire with my Bose dock

    There s no sound coming when I connect my Aux wire to my Bose dock.but my internal speakers are working perfectly , there's no output through aux

  • How to create a scenario in Oracle OLAP

    Hi, I am new to Oracle OLAP. I have a requirement where in we need two values 'Vs LY' and 'Vs Plan' which are scenarios to be placed in a dimension. According to the scenario selected measure values should change. For example: Vs LY and Vs Plan are v

  • Define XI timeframe

    Hi frendz, Can u help me to determine time required to configure edi connection between two sap systems and time required to configure web-services between sap and non-sap system.Pls assume scenario as if any web-service u want. Regards, Ameet

  • Problems sending email from aol since update 7.1

    Since installing IOS7.1 I have not been able to send any email messages through any of my email accounts from I pad 2 or I phone 4S.. I can still receive emails ok.  Has anyone had same problem?