注册

Cause: dm.jdbc.driver.DMException: Connection has been switched

2026/05/21 50 1

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:05-20 15:10:30.131 -- ERROR [http-nio-9980-exec-9] ele-archives [com.baiwang.archives.config.DefaultExceptionHandler ?] - [NONE][NONE][0][xWop1209154800779788288] [eleSelectDossierDto_logId:"8d763967-58f0-4f83-82de-5823f8f759ca"] 运行时异常: org.springframework.jdbc.UncategorizedSQLException: Error updating database. Cause: dm.jdbc.driver.DMException: Connection has been switched The error may exist in class path resource [mapper/oracle/EleFileManagementMapper.xml] The error may involve defaultParameterMap The error occurred while setting parameters SQL: update ele_file_management set ARCHIVE_STATUS_PROGRESS=? where MANAGEMENT_ID in ( ? ) Cause: dm.jdbc.driver.DMException: Connection has been switched ; uncategorized SQLException; SQL state []; error code [20800]; Connection has been switched; nested exception is dm.jdbc.driver.DMException: Connection has been switched at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441) at com.sun.proxy.$Proxy223.update(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.update(SqlSessionTemplate.java:288) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:67) at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:141) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86) at com.sun.proxy.$Proxy267.updateArchivesStatusProgressByIdList(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:241) at com.sun.proxy.$Proxy268.updateArchivesStatusProgressByIdList(Unknown Source) at com.baiwang.archives.service.impl.ArchiveServiceImplWorkFlow.lambda$tickArchive$4(ArchiveServiceImplWorkFlow.java:216) at java.util.HashMap.forEach(HashMap.java:1298) at com.baiwang.archives.service.impl.ArchiveServiceImplWorkFlow.tickArchive(ArchiveServiceImplWorkFlow.java:204) at com.baiwang.archives.service.impl.ArchiveServiceImplWorkFlow.updateArchive(ArchiveServiceImplWorkFlow.java:105) at com.baiwang.archives.service.impl.ArchiveServiceImplWorkFlow$$FastClassBySpringCGLIB$$96038B58.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)

这什么原因哈,客户端执行很顺畅,代码报这个错误,怀疑druid配置问题,但是找不到原因,求大佬指教

回答 0
暂无回答
扫一扫
联系客服