开发者社区> 问答> 正文

JFinal在运行时Druid报连接错误?报错

@JFinal 你好

我的JFinal项目运行在Tomcat的环境下,启动时Druid并未报错,但是在运行时出现了以下错误

[com.alibaba.druid.stat.DruidStatService.unregisterMBean()]: unregister mbean error
javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidStatService
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:536)
at com.alibaba.druid.stat.DruidStatService.unregisterMBean(DruidStatService.java:366)
at com.alibaba.druid.stat.DruidDataSourceStatManager.removeDataSource(DruidDataSourceStatManager.java:205)
at com.alibaba.druid.pool.DruidDataSource$2.run(DruidDataSource.java:1413)
at java.security.AccessController.doPrivileged(Native Method)
at com.alibaba.druid.pool.DruidDataSource.unregisterMbean(DruidDataSource.java:1409)
at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1368)
at com.jfinal.plugin.druid.DruidPlugin.stop(DruidPlugin.java:180)
at com.jfinal.core.JFinal.stopPlugins(JFinal.java:113)
at com.jfinal.core.JFinalFilter.destroy(JFinalFilter.java:87)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:313)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4951)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5778)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1590)
at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1579)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)


展开
收起
爱吃鱼的程序员 2020-06-10 15:13:18 672 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个是druid本身的bug,可以参见此文:

    http://blog.csdn.net/lanmo555/article/details/41248763

    2020-06-10 15:13:35
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Java Spring Boot开发实战系列课程【第15讲】:Spring Boot 2.0 API与Spring REST Docs实战 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载