首页新闻找找看学习计划

Unable to register MBean org.mongodb.driver javax.management.InstanceNotFoundException:

0
悬赏园豆:80 [待解决问题]

在Linux部署java应用,该应用连接的数据库有MySQL和MongoDB。启动时没什么问题,但是运行某段时间后 输出 MongoDB 注册异常,然后进程就消失了,异常信息如下:

复制代码
Dec 11, 2017 5:23:29 PM com.mongodb.util.management.jmx.JMXMBeanServer unregisterMBean
WARNING: Unable to register MBean org.mongodb.driver:type=ConnectionPool,clusterId=1,host=127.0.0.1,port=27017
javax.management.InstanceNotFoundException: org.mongodb.driver:type=ConnectionPool,clusterId=1,host=127.0.0.1,port=27017 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) at com.mongodb.util.management.jmx.JMXMBeanServer.unregisterMBean(JMXMBeanServer.java:52) at com.mongodb.JMXConnectionPoolListener.connectionPoolClosed(JMXConnectionPoolListener.java:68) at com.mongodb.PooledConnectionProvider.close(PooledConnectionProvider.java:107) at com.mongodb.DefaultServer.close(DefaultServer.java:85) at com.mongodb.MultiServerCluster.close(MultiServerCluster.java:93) at com.mongodb.DBTCPConnector.close(DBTCPConnector.java:605) at com.mongodb.Mongo.close(Mongo.java:488) at org.springframework.data.mongodb.core.MongoFactoryBean.destroy(MongoFactoryBean.java:190) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:238) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:740) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010) at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559) at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4249) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4890) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:939) at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1359) at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1330) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:326) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1101) at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1113) at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:468) at org.apache.catalina.core.StandardService.stop(StandardService.java:604) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:793) at org.apache.catalina.startup.Catalina.stop(Catalina.java:662) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:706)
复制代码

求各位大佬们指教,为大白指点迷津

骚年,你渴望力量吗的主页 骚年,你渴望力量吗 | 初学一级 | 园豆:45
提问于:2018-01-24 14:18
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册