Oracle SOA BPEL调用MySQL过程 - 参数号2不是out参数

时间:2017-11-21 07:08:59

标签: mysql oracle soa procedure bpel

目前我有一个用例,我需要通过Oracle BPEL调用Mysql过程。适配器配置很好,并在配置期间向我显示可用的In / Out参数,并成功部署了组合。但是,在Web服务调用期间调用失败。 对SOA中的问题有任何想法。 weblogic版本是12c&我正在使用jDev 11g进行复合开发。  以下是在Web服务调用期间收到的错误消息 -

The selected operation process could not be invoked.
A fault occurred while invoking the webservice operation. The fault is : <env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>env:Server</faultcode>
<faultstring>Exception occurred when binding was invoked.
Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'getUserFirstName' failed due to: Register out parameter error.
Error registering parameter First_Name as an out parameter.
An error occurred when registering parameter First_Name as an out parameter of the getUserName API. Cause: java.sql.SQLException: Parameter number 2 is not an OUT parameter
Check to ensure that the parameter is a valid IN/OUT or OUT parameter of the API. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" 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>Parameter number 2 is not an OUT parameter</exception>
</detail>
</env:Fault>
oracle.sysman.emInternalSDK.webservices.util.SoapTestException: Client received SOAP Fault from server : Exception occurred when binding was invoked.
Exception occurred during invocation of JCA binding: "JCA Binding execute of Reference operation 'getUserFirstName' failed due to: Register out parameter error.
Error registering parameter First_Name as an out parameter.
An error occurred when registering parameter First_Name as an out parameter of the getUserName API. Cause: java.sql.SQLException: Parameter number 2 is not an OUT parameter
Check to ensure that the parameter is a valid IN/OUT or OUT parameter of the API. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "0" 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.

逐步数据库适配器配置在这里 -

https://drive.google.com/open?id=1cei0OFje1dmefDn7PfBIjxW4vb81Ngez

1 个答案:

答案 0 :(得分:0)

我认为在选择输入和输出参数时你犯了一个错误,可能你添加了比数据库预期更多的变量。请查看以下内容,如果可能,请发送更多详细信息,例如数据库适配器配置和数据库表的屏幕截图

java.sql.SQLException: Parameter number 2 is not an OUT parameter