0
Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join ES_STMT_TRANSACTIONS
b on a.stmt_id = b.stmt_id
where a.stmt_cc_number = #cc_number AND (stmt_date >= CONVERT(DATETIME, #dateFrom , 
101)) AND (stmt_date < CONVERT(DATETIME, #dateTo , 101)) order by b.txn_date desc

我在 Jdeveloper DB-adapter 中编写了此查询并在 OSB11g 中构建了业务服务,当我部署项目并运行业务服务器并插入 INPUT PARAMETERS 时,我收到以下错误:

The invocation resulted in an error: Invoke JCA outbound service failed with 
application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: 
oracle.tip.adapter.sa.api.JCABindingException: 
oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: 
servicebus:/WSDL/OSB%20DB%20Adapter/adapter/Jdev_OSB_DBAdapter/test_es_cc_STMT_new [   test_es_cc_STMT_new_ptt::test_es_cc_STMT_new(test_es_cc_STMT_newInput_msg,test_es_cc_STMT_n
ewOutputCollection) ] - WSIF JCA Execute of operation 'test_es_cc_STMT_new' failed due 
to: Pure SQL Exception.

Pure SQL Execute of Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join 
ES_STMT_TRANSACTIONS b on a.stmt_id = b.stmt_id where a.stmt_cc_number = ? AND 
(a.stmt_date >= CONVERT(DATETIME, ? , 101)) AND (a.stmt_date < CONVERT(DATETIME, ? , 
101)) order by b.txn_date desc failed.

Caused by com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 
'txn_date'..
; nested exception is:
BINDING.JCA-11633
Pure SQL Exception.
Pure SQL Execute of Select a.stmt_date,a.*,b.* from ES_CC_STATEMENTS a left outer join 
ES_STMT_TRANSACTIONS b on a.stmt_id = b.stmt_id where a.stmt_cc_number = ? AND 
(a.stmt_date >= CONVERT(DATETIME, ? , 101)) AND (a.stmt_date < CONVERT(DATETIME, ? , 
101)) order by b.txn_date desc failed.

Caused by com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 
'txn_date'..
The Pure SQL option is for border use cases only and provides simple yet minimal 
functionality. Possibly try the "Perform an operation on a table" option instead. This 
exception is considered not retriable, likely due to a modelling mistake. To classify 
it as retriable instead add property nonRetriableErrorCodes with value "-207" 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.
4

1 回答 1

0

看起来 columntxn_date在 table 中不存在ES_STMT_TRANSACTIONS

如果您提供您的架构,将更容易看出问题所在。

于 2014-01-17T14:21:59.430 回答