开发者社区 > 云原生 > 中间件 > 正文

Spring Cloud Alibaba报这个错误的,是什么配置导致的?

Spring Cloud Alibaba报这个错误的,是什么配置导致的?
ERROR com.alibaba.druid.pool.DruidDataSource:1989 - {conn-10070} discard
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet successfully received from the server was 10,006 milliseconds ago. The last packet sent successfully to the server was 10,006 milliseconds ago.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
at com.mysql.cj.jdbc.ConnectionImpl.commit(ConnectionImpl.java:807)
at com.alibaba.druid.filter.FilterChainImpl.connection_commit(FilterChainImpl.java:161)
at com.alibaba.druid.filter.FilterAdapter.connection_commit(FilterAdapter.java:759)
at com.alibaba.druid.filter.logging.LogFilter.connection_commit(LogFilter.java:456)
at com.alibaba.druid.filter.FilterChainImpl.connection_commit(FilterChainImpl.java:156)
at com.alibaba.druid.filter.stat.StatFilter.connection_commit(StatFilter.java:281)
at com.alibaba.druid.filter.FilterChainImpl.connection_commit(FilterChainImpl.java:156)
at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.commit(ConnectionProxyImpl.java:109)
at com.alibaba.druid.pool.DruidPooledConnection.commit(DruidPooledConnection.java:774)
at org.springframework.jdbc.datasource.DataSourceTransactionManager.doCommit(DataSourceTransactionManager.java:333)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:743)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:711)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:654)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:407)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
at com.ecloud.module.system.system.service.impl.SysAnnouncementServiceImpl$$EnhancerBySpringCGLIB$$faa20ef3.saveAnnouncement()
at com.ecloud.module.system.message.service.impl.SysMessageServiceImpl.pushMessage(SysMessageServiceImpl.java:122)
at com.ecloud.module.system.message.service.impl.SysMessageServiceImpl$$FastClassBySpringCGLIB$$b4427b3b.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

展开
收起
三分钟热度的鱼 2024-07-17 22:59:12 25 0
0 条回答
写回答
取消 提交回答

为企业提供高效、稳定、易扩展的中间件产品。

相关电子书

更多
Spring Cloud 微服务核心组件集 mica 的设计思路 立即下载
workshop专场-微服务专场-开发者动手实践营-微服务-Spring Cloud Alibaba 微服务全家桶体验 立即下载
云栖社区特邀专家徐雷Java Spring Boot开发实战系列课程(第20讲):经典面试题与阿里等名企内部招聘求职面试技巧 立即下载

相关实验场景

更多