为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM8
【操作系统】:麒麟v10
【CPU】:ARM
【问题描述】*:
[main] com.zaxxer.hikari.pool.ProxyConnection [] -| HikariPool-2 - Connection dm.jdbc.driver.DmdbConnection@a6f34f5 marked as broken because of SQLSTATE(08S01), ErrorCode(6001)
dm.jdbc.driver.DMException: 网络通信异常
at dm.jdbc.driver.DBError.throwException(DBError.java:759) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.a(DBAccess.java:235) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.b(DBAccess.java:908) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.a(DBAccess.java:779) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.driver.DmdbPreparedStatement.executeInner(DmdbPreparedStatement.java:378) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.driver.DmdbPreparedStatement.do_executeUpdate(DmdbPreparedStatement.java:498) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.driver.DmdbPreparedStatement.executeUpdate(DmdbPreparedStatement.java:1500) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) ~[HikariCP-3.4.5.jar:?]
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) ~[HikariCP-3.4.5.jar:?]
at org.springframework.jdbc.core.JdbcTemplate.lambda$update$0(JdbcTemplate.java:867) ~[spring-jdbc-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:617) ~[spring-jdbc-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:862) ~[spring-jdbc-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:917) ~[spring-jdbc-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) [spring-core-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) [spring-tx-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) [spring-aop-5.2.21.RELEASE.jar:5.2.21.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.running(SpringApplicationRunListeners.java:77) [spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:330) [spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.13.RELEASE.jar:2.2.13.RELEASE]
at
Caused by: java.io.EOFException
at dm.jdbc.b.a.c.a(ByteArrayNode.java:132) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.a.a(Buffer.java:365) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.e(DBAccess.java:315) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
at dm.jdbc.b.a.a(DBAccess.java:225) ~[DmJdbcDriver18-8.1.2.128.jar:- 8.1.2.128 - Production]
... 33 more
结帖!
驱动包版本跟数据库版本不一致导致的
<groupId>com.dameng</groupId> <artifactId>DmJdbcDriver18</artifactId>
<version>8.1.2.128</version>
升级到
<version>8.1.2.128</version>
DM 数据库版本为
您好,可以参考此链接的方法进行排查处理:
https://eco.dameng.com/document/dm/zh-cn/faq/faq-dm-databse.html