0 Replies Latest reply: Oct 31, 2013 6:44 AM by BharathiLC RSS

    Fin-BPEL-Fout fails when trying to transform

    BharathiLC

      Hello All,

      I am trying to read a file as attachment then once read try to get the contents of href.

      implementation pattern as follow:

       

      1. Read a 10mb xml file using file adapter.

      2. Read as attachment is enabled in file adapter.

      3. BPEL 2.0 with receive activity

      4. I have below expression and it fails :

       

      <assign name="Assign2">

            <copy>

              <from>ora:getAttachmentContent($Receive1_Read_InputVariable.attach)</from>

              <to>$dataVariable</to>

            </copy>

          </assign>

      Note: $dataVariable is of type String.

       

      Error:

      <bpelFault>

      <faultType>0</faultType>

      <subLanguageExecutionFault>

      <part  name="summary">

      <summary>An error occurs while processing the XPath expression; the expression is ora:getAttachmentContent($Receive1_Read_InputVariable.attach).</summary>

      </part>

      <part  name="detail">

      <detail>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:getAttachmentContent($Receive1_Read_InputVariable.attach). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLElement cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </detail>

      </part>

      <part  name="code">

      <code>XPath expression failed to execute</code>

      </part>

      </subLanguageExecutionFault>

      </bpelFault>

       

       

      All i need to know is how can i get this href contents? Is my usage correct with ora function ?

       

      Let me know if need more details. I am using  this function  ora:getAttachmentContent for the first time.