/ 详情

druid 怎么配置连接AS400库?

Backlog
Opened this issue  
2020-12-13 20:46

大神,请问一下,druid 怎么配置连接as400数据库?maven 引入jt400.jar,配置完 url : jdbc:as400//XXXXX:446/test ,driverClassName: com.ibm.as400.access.AS400JDBCDriver 怎么也连不上,报错:
errorCode -99999, state 08001

java.sql.SQLException: The application requester cannot establish the connection. (Connection was dropped unexpectedly.)
at com.ibm.as400.access.JDError.createSQLExceptionSubClass(JDError.java:882)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:609)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:567)
at com.ibm.as400.access.AS400JDBCConnectionImpl.setProperties(AS400JDBCConnectionImpl.java:3522)
at com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:1426)
at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:1280)
at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:403)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:156)
at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:218)
at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:150)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1580)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1644)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2570)
Caused by: com.ibm.as400.access.ConnectionDroppedException: Connection was dropped unexpectedly.
at com.ibm.as400.access.DataStream.readAfterHeader(DataStream.java:259)
at com.ibm.as400.access.AS400XChgRandSeedReplyDS.read(AS400XChgRandSeedReplyDS.java:63)
at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:1409)
at com.ibm.as400.access.AS400ImplRemote.connect(AS400ImplRemote.java:498)
at com.ibm.as400.access.AS400.connectService(AS400.java:1416)
at com.ibm.as400.access.AS400JDBCConnectionImpl.setProperties(AS400JDBCConnectionImpl.java:3509)
... 9 common frames omitted

smile1

Comments (3)

38度6 created任务
38度6 set related repository to wenshao/druid
展开全部操作日志

兄弟是做保险或银行的吧,AS400 :laughing:

兄弟是做保险或银行的吧,AS400 :laughing:

@挖红薯 零售行业

大哥,连上了吗

Sign in to comment

状态
Assignees
Labels
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(3)
394279 zhouzonghui 1578922558 2266870 peiyawe 1578970282