解决Hander dispatch failed;nested exception is java .lang. AbstractMethodError:Method com/mchange/v2/c

本文详细介绍了如何解决在项目中遇到的Handerdispatchfailed错误,涉及c3p0库的AbstractMethodError,推荐升级到0.9.5.5版本,并指导如何清除Tomcat缓存以避免jar包冲突,确保项目顺利运行。

解决Hander dispatch failed;nested exception is java .lang. AbstractMethodError:Method com/mchange/v2/c3p0/impl/NewProxyResultSet.isClosed() is abstract错误

这个是报错的一张截图:(确认一下报错信息有利于精准的找到错误)
在这里插入图片描述
原因分析:(可能有多种原因)

第一种:是你使用的c3p0的版本信息是0.9.1.2。导致版本不够,建议使用0.9.5.5版本的,配置信息如下:

<dependency>
            <groupId>com.mchange</groupId>
            <artifactId>c3p0</artifactId>
            <version>0.9.5.5</version>
        </dependency>

第二种:你在之前运行项目时,由于在target 文件夹中生成了 jar包,新启动时Tomcat加载时存有之前的代码缓存,导致 jar包冲突。
(这种情况下的解决方法很简单,清除缓存,重新运行项目即可)

操作步骤:
在图片中找到Maven中的Lifecycle下的clean,双击clean;之后在双击compile。这样就可以清除项目中的缓存

在这里插入图片描述
之后只需要重新运行项目,问题应该就可以解决了

这种情况下可以合并了吗? git status On branch lqn/feat/aio-v1.0-device All conflicts fixed but you are still merging. (use "git commit" to conclude merge) Changes to be committed: modified: ../../../../../.env modified: ../../../../../omada-central-env.config.js modified: ../../../../../package.json modified: ../../../../../pnpm-lock.yaml modified: ../../../../../rsbuild.config.ts modified: ../../../../api/auth.ts modified: ../../../../api/video.ts modified: ../../../../assets/icons/package-near-expire.svg modified: ../../../../components/AppAiFreeTrial.vue modified: ../../../../components/eptz/Index.vue modified: ../../../../components/live/PreviewPlayer.vue modified: ../../../../components/live/use-live-tool.ts modified: ../../../../components/navigator/Index.vue new file: ../../../../config-env/common-util.ts modified: ../../../../config-env/index.ts new file: ../../../../config-env/log/index.ts new file: ../../../../config-env/nav/index.ts modified: ../../../../config-env/system-settings/index.ts modified: ../../../../config-env/user/index.ts modified: ../../../../config-env/video/index.ts modified: ../../../../constants/custom-role.ts new file: ../../../../constants/errors/device.ts new file: ../../../../constants/errors/index.ts new file: ../../../../constants/errors/player.ts modified: ../../../../constants/navigator.ts modified: ../../../../hooks/use-preview.ts modified: ../../../../i18n/locales/en_US.json modified: ../../../../index.ts modified: ../../../../player/interface.ts modified: ../../../../player/media-player.ts modified: ../../../../player/plugins/instances/timeline/TimeSpanSlider.vue modified: ../../../../player/preview/preview-player.ts new file: ../../../../player/stream/base.ts new file: ../../../../player/stream/direct-stream.ts new file: ../../../../player/stream/https-relay-stream.ts new file: ../../../../player/stream/index.ts new file: ../../../../player/stream/local-media-stream.ts new file: ../../../../player/stream/multipart-conversion.ts new file: ../../../../player/stream/p2p-stream.ts new file: ../../../../player/stream/racing-stream.ts new file: ../../../../player/stream/relay-stream-base.ts new file: ../../../../player/stream/relay-stream.ts modified: ../../../../store/modules/auth.ts modified: ../../../../styles/application/var.less modified: ../../../../utils/device-pre-connect.ts modified: ../../../../utils/rsa-encode.ts modified: ../../../../utils/video.ts modified: ../../../account-settings/uid-account/Index.vue modified: ../../../auth/login-redirect/uid-cloud-redirect/Index.vue modified: ../../Index.vue modified: ../../ai-search/face/hooks/use-face.ts modified: ../../ai-search/hooks/use-first-empty-guide.ts modified: ../../ai-search/hooks/utils.ts modified: ../../ai-search/human/const.ts modified: ../../ai-search/human/hooks/use-human.ts modified: ../../ai-search/vehicle/hooks/use-vehicle.ts modified: ../../alarm/events/components/event-menu/Recipients.vue modified: ../../alarm/events/custom-alerts/custom-alerts-content/Index.vue modified: ../../alarm/events/device-event/Index.vue modified: ../../billing-account/order-history/Index.vue modified: ../../billing-account/order-history/hooks/use-order.ts modified: ../../components/video-batch-select/Index.vue modified: ../../dashboard/line-chart/hooks/use-line.ts modified: ../components/delete-device-modal/delete-aio-device/Index.vue modified: ../components/delete-device-modal/delete-device-ability.ts modified: ../components/device.less modified: ../components/edit-device-nvr/Index.vue modified: ../components/edit-device-nvr/alarm-info/hotzone-detection/use-device.ts modified: ../components/edit-device-nvr/alarm-info/pet-detection/Index.vue modified: ../components/edit-device-nvr/alarm-info/pet-detection/use-pet-detection.ts modified: ../components/edit-device-nvr/camera-info/device-access/use-table.ts modified: ../components/edit-device-nvr/storage-info/array-management/AddHarddriveModal.vue modified: ../components/edit-device-nvr/storage-info/array-management/CreateRAIDModal.vue modified: ../components/edit-device-nvr/storage-info/array-management/CreateRAIDOnceModal.vue modified: ../components/edit-device-nvr/storage-info/array-management/EditRAIDModal.vue modified: ../components/edit-device-nvr/storage-info/array-management/Index.vue modified: ../components/edit-device-nvr/storage-info/recording-manager/hooks/constants.ts modified: ../components/edit-device-nvr/storage-info/recording-manager/hooks/use-columns.tsx modified: ../components/edit-device-nvr/storage-info/storage-manager/components/storage-status/Index.vue modified: ../components/edit-device-nvr/storage-info/storage-manager/components/storage-status/hooks/use-storage-status.ts modified: ../components/edit-device/Index.vue modified: ../components/edit-device/cloud-storage/Index.vue modified: ../components/edit-device/network-settings/ddns/Index.vue modified: ../components/edit-device/network-settings/ddns/hooks/useAction.ts modified: ../components/edit-device/smart-analysis/people-counting/use-device.ts modified: ../components/edit-device/smart-event/pet-detection/Index.vue modified: ../components/edit-device/smart-event/pet-detection/use-pet-detection.ts modified: ../components/edit-device/smart-event/queue-detection/use-queue-detection.ts modified: ../components/edit-device/system-manager/capture-management/Index.vue modified: ../components/edit-device/system-manager/certificate-management/Index.vue modified: ../components/edit-solar-drawer/Index.vue modified: ../components/information-display/components/IpcInformation.vue modified: ../components/local-upgrade/Index.vue modified: Index.vue modified: components/TableFilter.vue modified: ../hooks/use-columns-cloud.tsx modified: ../hooks/use-columns-local.tsx modified: ../../license/license-manage/Index.vue modified: ../../log/components/SystemTable.vue modified: ../../log/hooks/system-table/use-log.ts modified: ../../map/device-map/components/LiveViewList.vue modified: ../../organization/hooks/index.ts deleted: ../../organization/hooks/use-actions.ts modified: ../../passenger-flow/components/passenger-flow-quick-settings/components/SingleLiveView.vue modified: ../../plan/Index.vue modified: ../../rules/event-rules/Index.vue modified: ../../rules/event-rules/hooks/use-actions.tsx modified: ../../rules/event-rules/hooks/use-event-rule.tsx modified: ../../system-setting/Index.vue modified: ../../user/ReinviteIcon.vue modified: ../../video/video-common/VideoToolTip.vue modified: ../../video/video-common/use-get-videoInfo.ts modified: ../../video/video-surveillance/component/time-span/Index.vue modified: ../../video/video-surveillance/hooks/utils.ts modified: ../../video/video-surveillance/live-view/Index.vue modified: ../../video/video-surveillance/live-view/hooks/preview-port.ts modified: ../../video/video-surveillance/live-view/plugins/ratio.vue modified: ../../video/video-surveillance/playback/Playback.vue modified: ../../video/video-surveillance/playback/event/hook/use-image-cloud.ts modified: ../../video/video-surveillance/playback/main/const/playback-player.ts new file: ../../video/video-surveillance/playback/main/const/retry-white-list.ts modified: ../../video/video-surveillance/playback/main/error-hander/use-playback-error.ts modified: ../../video/video-surveillance/playback/main/playback-manage.ts modified: ../../video/video-surveillance/playback/main/playback-player/device-player.ts modified: ../../video/video-surveillance/playback/main/playback-player/hooks/use-decryption.ts Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: ../components/add-device-modal/transfer/transfer.d.ts Untracked files: (use "git add <file>..." to include in what will be committed) ../../../../../dist.7z
最新发布
11-29
2025-09-17 10:15:19 [com.xxl.job.core.thread.JobThread#run]-[204]-[xxl-job, JobThread-19531-1758075106691] ----------- JobThread Exception:java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.xxl.job.core.handler.impl.MethodJobHandler.execute(MethodJobHandler.java:31) at com.xxl.job.core.thread.JobThread.run(JobThread.java:166) Caused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator(JdbcAccessor.java:125) at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1587) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:672) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:965) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:986) at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.update(NamedParameterJdbcTemplate.java:337) at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.update(NamedParameterJdbcTemplate.java:342) at com.qctc.eboss.service.rec.service.impl.DaqMeterServiceImpl.deleteData1440ByIdAndDay(DaqMeterServiceImpl.java:5292) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:380) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728) at com.qctc.eboss.service.rec.service.impl.DaqMeterServiceImpl$$SpringCGLIB$$1.deleteData1440ByIdAndDay(<generated>) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:281) at org.springframework.cloud.context.scope.GenericScope$LockedScopedProxyFactoryBean.invoke(GenericScope.java:482) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728) at com.qctc.eboss.service.rec.service.impl.DaqMeterServiceImpl$$SpringCGLIB$$0.deleteData1440ByIdAndDay(<generated>) at com.qctc.eboss.service.rec.job.CountDer1440Hander.execute(CountDer1440Hander.java:93) ... 6 more Caused by: java.lang.ClassNotFoundException: org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator ... 36 more 什么问题
09-18
怎么解决:Traceback(most recent call last): File "/home/yxx/simplerEnv/simpler env/main inference.py", line 10, in <module>from simpler env.policies.octo.octo model import OctoInference File "/home/yxx/simplerEnv/simpler env/policies/octo/octo model.py", line 8, in <module> from octo.model octo model import OctoModel File "/home/yxx/simplerEnv/octo/octo/model/octo model.py", line 8, in <module> from flax.training import orbax utils File "/home/yxx/miniconda3/envs/simpler ori/lib/python3.10/site-packages/flax/training/orbax utils.py", line 24, in <module> import orbax.checkpoint as ocpFile "/home/yxx/miniconda3/envs/simpler ori/lib/python3.10/site-packages/orbax/checkpoint/init.py", line 23, in <module>from orbax.checkpoint import args File "/home/yxx/miniconda3/envs/simpler ori/lib/python3 .10/site-packages/orbax/checkpoint/args.py", line 22, in <module>from orbax.checkpoint,array checkpoint handler import ArravRestoreArgs as ArravRestoreFile "/home/vxx!miniconda3/envs/simpler ori/lib/python3,10/site-packaees/orbax/checkpoint/array checkpoint hander.py", line 28, in <module> from orbax.checkpoint import type handlers File "/home/yxx/miniconda3/envs/simpler ori/lib/python3.10/site-packages/orbax/checkpoint/type handlers.py", line 31, in <module>fromjax.experimental.array serialization import serialization File "/home/yxx/miniconda3/envs/simpler ori/lib/python3.18/site-packages/jax/experimental/array serialization/serialization.py", line 37, in <module>import tensorstore as tsFile "/home/yxx/miniconda3/envs/simpler ori/lib/python3.10/site-packages/tensorstore/ init .py", line 21, in <module>from .tensorstore import *ImportError:initialization failed
06-30
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值