0
我正在使用WAS 8.5.9版本,看起来像一些数据源连接问题,但是当我点击测试连接按钮,在WAS控制台则显示连接fine.But当我运行我的应用程序则抛出错误,并在错误日志它显示以下错误WAS 8.5.9数据源失败...... DSRA0010E:SQL状态= 42601,错误代码= -104在应用程序中获取错误代码
[financing_tools_docgen] [DBConnection] [04/27 14:18:45.759] [ERROR] [Severity 2] [[[email protected]][145681]] getConnection() : Got SQLException :com.ibm.websphere.ce.cm.StaleConnectionException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=SNAPSHOT;MODE, DRIVER=3.57.82 DSRA0010E: SQL State = 42601, Error Code = -104
在应用程序日志中得到以下错误
[financing_tools_docgen] [DBConnection] [04/27 14:18:43.723] [DEBUG] [Severity 4] [[[email protected]][145681]] Trying to get connection object with ICFS DS=ICFS_IR1T , JNDI value=jdbc/financing_tools_docgen_txtmgr
[financing_tools_docgen] [DBConnection] [04/27 14:18:45.759] [ERROR] [Severity 2] [[[email protected]][145681]] getConnection() : Got SQLException :com.ibm.websphere.ce.cm.StaleConnectionException: DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=SNAPSHOT;MODE, DRIVER=3.57.82 DSRA0010E: SQL State = 42601, Error Code = -104
这个问题看起来与您所看到的问题有关:https://developer.ibm.com/answers/questions/182641/websphere-adapter-for-jdbc-receives-db2-sql-error.html –