0 Replies Latest reply: Feb 4, 2013 4:47 AM by user366389 RSS

    DB Stored procedure invocation from Composite/BPEL.

    user366389
      Hi ,
      I am trying to call a stored procedure in MS SQL Server. I created a XA Data source with drivers 4.0 version 7 and above.
      I was able to test my data source. But when i am calling it from my composite at run time i am getting an error.

      <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
      <env:Header/>
      <env:Body>
      <env:Fault>
      <faultcode>env:Server</faultcode>
      <faultstring>Exception occured when binding was invoked.
      Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'IDMService' failed due to: Stored procedure invocation error.
      Error while trying to prepare and execute the ACS.dbo.usp_INT_UpdateVoucherUsage API.
      An error occurred while preparing and executing the ACS.dbo.usp_INT_UpdateVoucherUsage API. Cause: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.
      Check to ensure that the API is defined in the database and that the parameters match the signature of the API. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-8525" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers.
      ".
      The invoked JCA adapter raised a resource exception.
      Please examine the above error message carefully to determine a resolution.</faultstring>
      <faultactor/>
      <detail>
      <exception>[FMWGEN][SQLServer JDBC Driver][SQLServer]Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction.</exception>
      </detail>
      </env:Fault>
      </env:Body>
      </env:Envelope>



      Or please suggest me if i need to connect using a NOn XA DS with a two phase commit.


      Thanks,
      Venu Raja