项目启动会如下错误。不知为何

发布于 2021-12-03 09:37:16 字数 15284 浏览 960 评论 11

2013-01-31 10:19:14 ERROR [com.alibaba.druid.stat.DruidDataSourceStatManager] - unregister mbean error

javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:415)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)

at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$6.run(WLSMBeanServerInterceptorBase.java:213)

at java.security.AccessController.doPrivileged(Native Method)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.unregisterMBean(WLSMBeanServerInterceptorBase.java:211)

at weblogic.management.mbeanservers.internal.JMXContextInterceptor.unregisterMBean(JMXContextInterceptor.java:464)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$6.run(WLSMBeanServerInterceptorBase.java:213)

at java.security.AccessController.doPrivileged(Native Method)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.unregisterMBean(WLSMBeanServerInterceptorBase.java:211)

at weblogic.management.mbeanservers.internal.SecurityInterceptor.unregisterMBean(SecurityInterceptor.java:322)

at weblogic.management.jmx.mbeanserver.WLSMBeanServer.unregisterMBean(WLSMBeanServer.java:210)

at com.alibaba.druid.stat.DruidDataSourceStatManager.removeDataSource(DruidDataSourceStatManager.java:202)

at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:965)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:300)

at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:226)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:498)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)

at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)

at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)

at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)

at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:556)

at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)

at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:482)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:200)

at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:3193)

at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:240)

at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:461)

at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:1539)

at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:511)

at weblogic.application.internal.flow.ModuleStateDriver$2.previous(ModuleStateDriver.java:387)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.flow.ModuleStateDriver.deactivate(ModuleStateDriver.java:141)

at weblogic.application.internal.flow.ScopedModuleDriver.deactivate(ScopedModuleDriver.java:206)

at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(ModuleListenerInvoker.java:261)

at weblogic.application.internal.flow.DeploymentCallbackFlow$2.previous(DeploymentCallbackFlow.java:537)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:182)

at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:174)

at weblogic.application.internal.BaseDeployment$2.previous(BaseDeployment.java:1279)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.BaseDeployment.deactivate(BaseDeployment.java:453)

at weblogic.application.internal.EarDeployment.deactivate(EarDeployment.java:58)

at weblogic.application.internal.DeploymentStateChecker.deactivate(DeploymentStateChecker.java:198)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.deactivate(AppContainerInvoker.java:98)

at weblogic.deploy.internal.targetserver.operations.DeactivateOperation.deactivate(DeactivateOperation.java:78)

at weblogic.deploy.internal.targetserver.operations.RemoveOperation.removeDeployment(RemoveOperation.java:306)

at weblogic.deploy.internal.targetserver.operations.RemoveOperation.doCommit(RemoveOperation.java:114)

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

2013-01-31 10:19:14 ERROR [com.alibaba.druid.stat.DruidStatService] - unregister mbean error

javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidStatService

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:415)

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)

at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$6.run(WLSMBeanServerInterceptorBase.java:213)

at java.security.AccessController.doPrivileged(Native Method)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.unregisterMBean(WLSMBeanServerInterceptorBase.java:211)

at weblogic.management.mbeanservers.internal.JMXContextInterceptor.unregisterMBean(JMXContextInterceptor.java:464)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$6.run(WLSMBeanServerInterceptorBase.java:213)

at java.security.AccessController.doPrivileged(Native Method)

at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.unregisterMBean(WLSMBeanServerInterceptorBase.java:211)

at weblogic.management.mbeanservers.internal.SecurityInterceptor.unregisterMBean(SecurityInterceptor.java:322)

at weblogic.management.jmx.mbeanserver.WLSMBeanServer.unregisterMBean(WLSMBeanServer.java:210)

at com.alibaba.druid.stat.DruidStatService.unregisterMBean(DruidStatService.java:326)

at com.alibaba.druid.stat.DruidDataSourceStatManager.removeDataSource(DruidDataSourceStatManager.java:207)

at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:965)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:300)

at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:226)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:498)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:474)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:442)

at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1066)

at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1040)

at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:988)

at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:556)

at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:142)

at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:482)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(EventsManager.java:200)

at weblogic.servlet.internal.WebAppServletContext.destroy(WebAppServletContext.java:3193)

at weblogic.servlet.internal.ServletContextManager.destroyContext(ServletContextManager.java:240)

at weblogic.servlet.internal.HttpServer.unloadWebApp(HttpServer.java:461)

at weblogic.servlet.internal.WebAppModule.destroyContexts(WebAppModule.java:1539)

at weblogic.servlet.internal.WebAppModule.deactivate(WebAppModule.java:511)

at weblogic.application.internal.flow.ModuleStateDriver$2.previous(ModuleStateDriver.java:387)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.flow.ModuleStateDriver.deactivate(ModuleStateDriver.java:141)

at weblogic.application.internal.flow.ScopedModuleDriver.deactivate(ScopedModuleDriver.java:206)

at weblogic.application.internal.flow.ModuleListenerInvoker.deactivate(ModuleListenerInvoker.java:261)

at weblogic.application.internal.flow.DeploymentCallbackFlow$2.previous(DeploymentCallbackFlow.java:537)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:182)

at weblogic.application.internal.flow.DeploymentCallbackFlow.deactivate(DeploymentCallbackFlow.java:174)

at weblogic.application.internal.BaseDeployment$2.previous(BaseDeployment.java:1279)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:167)

at weblogic.application.utils.StateMachineDriver.previousState(StateMachineDriver.java:159)

at weblogic.application.internal.BaseDeployment.deactivate(BaseDeployment.java:453)

at weblogic.application.internal.EarDeployment.deactivate(EarDeployment.java:58)

at weblogic.application.internal.DeploymentStateChecker.deactivate(DeploymentStateChecker.java:198)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.deactivate(AppContainerInvoker.java:98)

at weblogic.deploy.internal.targetserver.operations.DeactivateOperation.deactivate(DeactivateOperation.java:78)

at weblogic.deploy.internal.targetserver.operations.RemoveOperation.removeDeployment(RemoveOperation.java:306)

at weblogic.deploy.internal.targetserver.operations.RemoveOperation.doCommit(RemoveOperation.java:114)

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)

at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)

at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)

at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

落墨 2021-12-05 17:27:41

我也遇到了这个问题,而且我一个tomcat只部署了一个应用

彩扇题诗 2021-12-05 17:27:41

大神,这个问题解决了吗,我也遇到了!

因为看清所以看轻 2021-12-05 17:27:35

这个就是数据的表结构和实体类的属性不一致导致的,你可能使用的是 mybatis 和 mysql

这个错误只能对比数据库和实体类看看那些不一致,修改好之后就没问题了。

我就遇到了这个问题,就是这么解决的

谁的新欢旧爱 2021-12-05 17:27:09

我们也是部署了多个,影响使用啊,偶尔会直接让tomcat死掉

多情癖 2021-12-05 17:26:54

不影响使用

嘦怹 2021-12-05 17:26:46

你这个问题解决了吗?

甜柠檬 2021-12-05 17:25:34

是的 部署了两个项目 0.2.9和0.2.11 关键是偶尔报错 不是每次启动都报错

皇甫轩 2021-12-05 17:17:32

两个项目都换成0.2.11啦 有时候还是会报上面的错

初见你 2021-12-05 15:19:36

什么版本?是不是一个web server部署了多个web应用

睫毛上残留的泪 2021-12-05 14:19:52

您好, 碰到这个错误 请问这个参数, 具体加在哪里? 谢谢

坐在坟头思考人生 2021-12-04 05:42:32

如果部署了两个应用,加上JVM启动参数

-Ddruid.registerToSysProperty=true

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文