关于sesion共享的问题

session共享实现(错误示范)

最近做项目遇到一个需求,需要把新的项目和之前的项目共享session,在网上也百度了很多实现方。例如:
具体在这里插入图片描述具体链接就不粘贴了,网上百度出来的大部分都是这种,刚开始实现的时候还没有问题,不过在随后的一个需求中问题就出现了,之后甲方要求更改tomcat的访问首页,之前的访问首页是一个ssm项目,新的项目是springboot项目,springboot项目中涉及到连接两个数据库,当更改完tomcat首页为springboot项目后,再启动tomcat会报错,错误如下。
Exclusions:

com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure

Unconditional classes:

org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration

com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration

org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration

org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration

ERROR 2020-08-04 12:42:52.951 18593 SpringApplication.java:858 - Application run failed

org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@465e6fbf] with key ‘statFilter’; nested exception is javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.jmx.export.MBeanExporter.lambda$registerBeans 2 ( M B e a n E x p o r t e r . j a v a : 551 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t j a v a . u t i l . H a s h M a p . f o r E a c h ( H a s h M a p . j a v a : 1289 )   [ ? : 1.8. 0 2 12 ] a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n s ( M B e a n E x p o r t e r . j a v a : 551 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . a f t e r S i n g l e t o n s I n s t a n t i a t e d ( M B e a n E x p o r t e r . j a v a : 434 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 866 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 877 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . r e f r e s h ( S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . j a v a : 142 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 775 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 397 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 316 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . r u n ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 157 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . c r e a t e R o o t A p p l i c a t i o n C o n t e x t ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 137 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . o n S t a r t u p ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 91 )   [ s p r i n g − b o o t − 2.1.4. R E L E A S E . j a r : 2.1.4. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . w e b . S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . o n S t a r t u p ( S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . j a v a : 171 )   [ s p r i n g − w e b − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5154 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e 2(MBeanExporter.java:551) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at java.util.HashMap.forEach(HashMap.java:1289) ~[?:1.8.0_212] at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) ~[spring-web-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) ~[catalina.jar:8.5.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[catalina.jar:8.5.45] at org.apache.catalina.core.ContainerBase 2(MBeanExporter.java:551) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atjava.util.HashMap.forEach(HashMap.java:1289) [?:1.8.0212]atorg.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) [springboot2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) [springweb5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) [catalina.jar:8.5.45]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.45]atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1412) ~[catalina.jar:8.5.45]
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1402 )   [ c a t a l i n a . j a r : 8.5.45 ] a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r StartChild.call(ContainerBase.java:1402) ~[catalina.jar:8.5.45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor StartChild.call(ContainerBase.java:1402) [catalina.jar:8.5.45]atjava.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
Caused by: javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) ~[?:1.8.0_212]
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) ~[?:1.8.0_212]
at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 23 more

DEBUG 2020-08-04 12:42:52.951 18593 AbstractApplicationContext.java:1002 - Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@bd9d404, started on Tue Aug 04 12:42:45 CST 2020
DEBUG 2020-08-04 12:42:52.953 18593 MBeanExporter.java:451 - Unregistering JMX-exposed beans on shutdown
INFO 2020-08-04 12:42:52.953 18593 ExecutorConfigurationSupport.java:208 - Shutting down ExecutorService ‘applicationTaskExecutor’
INFO 2020-08-04 12:42:52.959 18593 DynamicRoutingDataSource.java:182 - closing dynamicDatasource ing…
INFO 2020-08-04 12:42:52.965 18593 DruidDataSource.java:1825 - {dataSource-1} closed
INFO 2020-08-04 12:42:52.966 18593 DruidDataSource.java:1825 - {dataSource-2} closed
04-Aug-2020 12:42:52.967 SEVERE [Catalina-startStop-1] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:850)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1412 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase StartChild.call(ContainerBase.java:1412)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1402)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 624 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] . S t a n d a r d H o s t [ l o c a l h o s t ] . S t a n d a r d C o n t e x t [ / l e s s o n C l o u d ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) . . . 6 m o r e C a u s e d b y : o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . U n a b l e T o R e g i s t e r M B e a n E x c e p t i o n : U n a b l e t o r e g i s t e r M B e a n [ c o m . a l i b a b a . d r u i d . f i l t e r . s t a t . S t a t F i l t e r @ 465 e 6 f b f ] w i t h k e y ′ s t a t F i l t e r ′ ; n e s t e d e x c e p t i o n i s j a v a x . m a n a g e m e n t . I n s t a n c e A l r e a d y E x i s t s E x c e p t i o n : p r o j e c t 1 : n a m e = s t a t F i l t e r , t y p e = S t a t F i l t e r a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n N a m e O r I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 625 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . l a m b d a Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ... 6 more Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@465e6fbf] with key 'statFilter'; nested exception is javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625) at org.springframework.jmx.export.MBeanExporter.lambda Worker.run(ThreadPoolExecutor.java:624)atjava.lang.Thread.run(Thread.java:748)Causedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)...6moreCausedby:org.springframework.jmx.export.UnableToRegisterMBeanException:UnabletoregisterMBean[com.alibaba.druid.filter.stat.StatFilter@465e6fbf]withkeystatFilter;nestedexceptionisjavax.management.InstanceAlreadyExistsException:project1:name=statFilter,type=StatFilteratorg.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)atorg.springframework.jmx.export.MBeanExporter.lambdaregisterBeans 2 ( M B e a n E x p o r t e r . j a v a : 551 ) a t j a v a . u t i l . H a s h M a p . f o r E a c h ( H a s h M a p . j a v a : 1289 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n s ( M B e a n E x p o r t e r . j a v a : 551 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . a f t e r S i n g l e t o n s I n s t a n t i a t e d ( M B e a n E x p o r t e r . j a v a : 434 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 866 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 877 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . r e f r e s h ( S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . j a v a : 142 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 775 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 397 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 316 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . r u n ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 157 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . c r e a t e R o o t A p p l i c a t i o n C o n t e x t ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . o n S t a r t u p ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 91 ) a t o r g . s p r i n g f r a m e w o r k . w e b . S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . o n S t a r t u p ( S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . j a v a : 171 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5154 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 6 m o r e C a u s e d b y : j a v a x . m a n a g e m e n t . I n s t a n c e A l r e a d y E x i s t s E x c e p t i o n : p r o j e c t 1 : n a m e = s t a t F i l t e r , t y p e = S t a t F i l t e r a t c o m . s u n . j m x . m b e a n s e r v e r . R e p o s i t o r y . a d d M B e a n ( R e p o s i t o r y . j a v a : 437 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r W i t h R e p o s i t o r y ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 1898 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r D y n a m i c M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 966 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r O b j e c t ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 900 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 324 ) a t c o m . s u n . j m x . m b e a n s e r v e r . J m x M B e a n S e r v e r . r e g i s t e r M B e a n ( J m x M B e a n S e r v e r . j a v a : 522 ) a t o r g . s p r i n g f r a m e w o r k . j m x . s u p p o r t . M B e a n R e g i s t r a t i o n S u p p o r t . d o R e g i s t e r ( M B e a n R e g i s t r a t i o n S u p p o r t . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 671 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n N a m e O r I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 615 ) . . . 23 m o r e 04 − A u g − 202012 : 42 : 52.968 S E V E R E [ m a i n ] o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . s t a r t I n t e r n a l A c h i l d c o n t a i n e r f a i l e d d u r i n g s t a r t j a v a . u t i l . c o n c u r r e n t . E x e c u t i o n E x c e p t i o n : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] . S t a n d a r d H o s t [ l o c a l h o s t ] ] a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r e p o r t ( F u t u r e T a s k . j a v a : 122 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . g e t ( F u t u r e T a s k . j a v a : 192 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . s t a r t I n t e r n a l ( C o n t a i n e r B a s e . j a v a : 931 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d E n g i n e . s t a r t I n t e r n a l ( S t a n d a r d E n g i n e . j a v a : 258 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v i c e . s t a r t I n t e r n a l ( S t a n d a r d S e r v i c e . j a v a : 422 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v e r . s t a r t I n t e r n a l ( S t a n d a r d S e r v e r . j a v a : 770 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . C a t a l i n a . s t a r t ( C a t a l i n a . j a v a : 688 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . B o o t s t r a p . s t a r t ( B o o t s t r a p . j a v a : 353 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . B o o t s t r a p . m a i n ( B o o t s t r a p . j a v a : 493 ) C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] . S t a n d a r d H o s t [ l o c a l h o s t ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e 2(MBeanExporter.java:551) at java.util.HashMap.forEach(HashMap.java:1289) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551) at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ... 23 more 04-Aug-2020 12:42:52.968 SEVERE [main] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:688) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBase 2(MBeanExporter.java:551)atjava.util.HashMap.forEach(HashMap.java:1289)atorg.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551)atorg.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)atorg.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...6moreCausedby:javax.management.InstanceAlreadyExistsException:project1:name=statFilter,type=StatFilteratcom.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)atcom.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)atorg.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137)atorg.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671)atorg.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)...23more04Aug202012:42:52.968SEVERE[main]org.apache.catalina.core.ContainerBase.startInternalAchildcontainerfailedduringstartjava.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atjava.util.concurrent.FutureTask.report(FutureTask.java:122)atjava.util.concurrent.FutureTask.get(FutureTask.java:192)atorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931)atorg.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.StandardService.startInternal(StandardService.java:422)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.startup.Catalina.start(Catalina.java:688)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)Causedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1412)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1402 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor StartChild.call(ContainerBase.java:1402)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:850)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931)
… 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
… 6 more
Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@465e6fbf] with key ‘statFilter’; nested exception is javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)
at org.springframework.jmx.export.MBeanExporter.lambda$registerBeans 2 ( M B e a n E x p o r t e r . j a v a : 551 ) a t j a v a . u t i l . H a s h M a p . f o r E a c h ( H a s h M a p . j a v a : 1289 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n s ( M B e a n E x p o r t e r . j a v a : 551 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . a f t e r S i n g l e t o n s I n s t a n t i a t e d ( M B e a n E x p o r t e r . j a v a : 434 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 866 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 877 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . r e f r e s h ( S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . j a v a : 142 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 775 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 397 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 316 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . r u n ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 157 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . c r e a t e R o o t A p p l i c a t i o n C o n t e x t ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . o n S t a r t u p ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 91 ) a t o r g . s p r i n g f r a m e w o r k . w e b . S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . o n S t a r t u p ( S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . j a v a : 171 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5154 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 6 m o r e C a u s e d b y : j a v a x . m a n a g e m e n t . I n s t a n c e A l r e a d y E x i s t s E x c e p t i o n : p r o j e c t 1 : n a m e = s t a t F i l t e r , t y p e = S t a t F i l t e r a t c o m . s u n . j m x . m b e a n s e r v e r . R e p o s i t o r y . a d d M B e a n ( R e p o s i t o r y . j a v a : 437 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r W i t h R e p o s i t o r y ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 1898 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r D y n a m i c M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 966 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r O b j e c t ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 900 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 324 ) a t c o m . s u n . j m x . m b e a n s e r v e r . J m x M B e a n S e r v e r . r e g i s t e r M B e a n ( J m x M B e a n S e r v e r . j a v a : 522 ) a t o r g . s p r i n g f r a m e w o r k . j m x . s u p p o r t . M B e a n R e g i s t r a t i o n S u p p o r t . d o R e g i s t e r ( M B e a n R e g i s t r a t i o n S u p p o r t . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 671 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n N a m e O r I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 615 ) . . . 23 m o r e 04 − A u g − 202012 : 42 : 52.970 S E V E R E [ m a i n ] o r g . a p a c h e . c a t a l i n a . s t a r t u p . C a t a l i n a . s t a r t T h e r e q u i r e d S e r v e r c o m p o n e n t f a i l e d t o s t a r t s o T o m c a t i s u n a b l e t o s t a r t . o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d S e r v e r [ 8005 ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . C a t a l i n a . s t a r t ( C a t a l i n a . j a v a : 688 ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d ) a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 ) a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 ) a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . B o o t s t r a p . s t a r t ( B o o t s t r a p . j a v a : 353 ) a t o r g . a p a c h e . c a t a l i n a . s t a r t u p . B o o t s t r a p . m a i n ( B o o t s t r a p . j a v a : 493 ) C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d S e r v i c e [ C a t a l i n a ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v e r . s t a r t I n t e r n a l ( S t a n d a r d S e r v e r . j a v a : 770 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 7 m o r e C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v i c e . s t a r t I n t e r n a l ( S t a n d a r d S e r v i c e . j a v a : 422 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 9 m o r e C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : A c h i l d c o n t a i n e r f a i l e d d u r i n g s t a r t a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . s t a r t I n t e r n a l ( C o n t a i n e r B a s e . j a v a : 942 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d E n g i n e . s t a r t I n t e r n a l ( S t a n d a r d E n g i n e . j a v a : 258 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 11 m o r e C a u s e d b y : j a v a . u t i l . c o n c u r r e n t . E x e c u t i o n E x c e p t i o n : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] . S t a n d a r d H o s t [ l o c a l h o s t ] ] a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r e p o r t ( F u t u r e T a s k . j a v a : 122 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . g e t ( F u t u r e T a s k . j a v a : 192 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e . s t a r t I n t e r n a l ( C o n t a i n e r B a s e . j a v a : 931 ) . . . 13 m o r e C a u s e d b y : o r g . a p a c h e . c a t a l i n a . L i f e c y c l e E x c e p t i o n : F a i l e d t o s t a r t c o m p o n e n t [ S t a n d a r d E n g i n e [ C a t a l i n a ] . S t a n d a r d H o s t [ l o c a l h o s t ] ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 167 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e 2(MBeanExporter.java:551) at java.util.HashMap.forEach(HashMap.java:1289) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551) at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ... 23 more 04-Aug-2020 12:42:52.970 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.startup.Catalina.start(Catalina.java:688) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 11 more Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931) ... 13 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBase 2(MBeanExporter.java:551)atjava.util.HashMap.forEach(HashMap.java:1289)atorg.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551)atorg.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)atorg.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...6moreCausedby:javax.management.InstanceAlreadyExistsException:project1:name=statFilter,type=StatFilteratcom.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)atcom.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)atorg.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137)atorg.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671)atorg.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)...23more04Aug202012:42:52.970SEVERE[main]org.apache.catalina.startup.Catalina.startTherequiredServercomponentfailedtostartsoTomcatisunabletostart.org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardServer[8005]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)atorg.apache.catalina.startup.Catalina.start(Catalina.java:688)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)Causedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardService[Catalina]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)atorg.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...7moreCausedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)atorg.apache.catalina.core.StandardService.startInternal(StandardService.java:422)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...9moreCausedby:org.apache.catalina.LifecycleException:Achildcontainerfailedduringstartatorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)atorg.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...11moreCausedby:java.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atjava.util.concurrent.FutureTask.report(FutureTask.java:122)atjava.util.concurrent.FutureTask.get(FutureTask.java:192)atorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931)...13moreCausedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)atorg.apache.catalina.core.ContainerBaseStartChild.call(ContainerBase.java:1412)
at org.apache.catalina.core.ContainerBase S t a r t C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1402 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor StartChild.call(ContainerBase.java:1402)atjava.util.concurrent.FutureTask.run(FutureTask.java:266)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:850)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
… 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:931)
… 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/lessonCloud]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
… 6 more
Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.alibaba.druid.filter.stat.StatFilter@465e6fbf] with key ‘statFilter’; nested exception is javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)
at org.springframework.jmx.export.MBeanExporter.lambda$registerBeans 2 ( M B e a n E x p o r t e r . j a v a : 551 ) a t j a v a . u t i l . H a s h M a p . f o r E a c h ( H a s h M a p . j a v a : 1289 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n s ( M B e a n E x p o r t e r . j a v a : 551 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . a f t e r S i n g l e t o n s I n s t a n t i a t e d ( M B e a n E x p o r t e r . j a v a : 434 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 866 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 877 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . r e f r e s h ( S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t . j a v a : 142 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 775 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 397 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 316 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . r u n ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 157 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . c r e a t e R o o t A p p l i c a t i o n C o n t e x t ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . s u p p o r t . S p r i n g B o o t S e r v l e t I n i t i a l i z e r . o n S t a r t u p ( S p r i n g B o o t S e r v l e t I n i t i a l i z e r . j a v a : 91 ) a t o r g . s p r i n g f r a m e w o r k . w e b . S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . o n S t a r t u p ( S p r i n g S e r v l e t C o n t a i n e r I n i t i a l i z e r . j a v a : 171 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t a r t I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5154 ) a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t a r t ( L i f e c y c l e B a s e . j a v a : 150 ) . . . 6 m o r e C a u s e d b y : j a v a x . m a n a g e m e n t . I n s t a n c e A l r e a d y E x i s t s E x c e p t i o n : p r o j e c t 1 : n a m e = s t a t F i l t e r , t y p e = S t a t F i l t e r a t c o m . s u n . j m x . m b e a n s e r v e r . R e p o s i t o r y . a d d M B e a n ( R e p o s i t o r y . j a v a : 437 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r W i t h R e p o s i t o r y ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 1898 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r D y n a m i c M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 966 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r O b j e c t ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 900 ) a t c o m . s u n . j m x . i n t e r c e p t o r . D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . r e g i s t e r M B e a n ( D e f a u l t M B e a n S e r v e r I n t e r c e p t o r . j a v a : 324 ) a t c o m . s u n . j m x . m b e a n s e r v e r . J m x M B e a n S e r v e r . r e g i s t e r M B e a n ( J m x M B e a n S e r v e r . j a v a : 522 ) a t o r g . s p r i n g f r a m e w o r k . j m x . s u p p o r t . M B e a n R e g i s t r a t i o n S u p p o r t . d o R e g i s t e r ( M B e a n R e g i s t r a t i o n S u p p o r t . j a v a : 137 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 671 ) a t o r g . s p r i n g f r a m e w o r k . j m x . e x p o r t . M B e a n E x p o r t e r . r e g i s t e r B e a n N a m e O r I n s t a n c e ( M B e a n E x p o r t e r . j a v a : 615 ) . . . 23 m o r e 04 − A u g − 202012 : 42 : 52.971 I N F O [ m a i n ] o r g . a p a c h e . c o y o t e . A b s t r a c t P r o t o c o l . p a u s e P a u s i n g P r o t o c o l H a n d l e r [ " h t t p − n i o − 80 " ] 04 − A u g − 202012 : 42 : 52.971 I N F O [ m a i n ] o r g . a p a c h e . c o y o t e . A b s t r a c t P r o t o c o l . p a u s e P a u s i n g P r o t o c o l H a n d l e r [ " a j p − n i o − 8009 " ] 04 − A u g − 202012 : 42 : 52.971 I N F O [ m a i n ] o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d S e r v i c e . s t o p I n t e r n a l S t o p p i n g s e r v i c e [ C a t a l i n a ] 04 − A u g − 202012 : 42 : 52.972 I N F O [ m a i n ] o r g . a p a c h e . c o y o t e . A b s t r a c t P r o t o c o l . d e s t r o y D e s t r o y i n g P r o t o c o l H a n d l e r [ " h t t p − n i o − 80 " ] 04 − A u g − 202012 : 42 : 52.973 I N F O [ m a i n ] o r g . a p a c h e . c o y o t e . A b s t r a c t P r o t o c o l . d e s t r o y D e s t r o y i n g P r o t o c o l H a n d l e r [ " a j p − n i o − 8009 " ] D E B U G 2020 − 08 − 0412 : 42 : 53.01618593 A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 1002 − C l o s i n g o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . c o n t e x t . A n n o t a t i o n C o n f i g S e r v l e t W e b S e r v e r A p p l i c a t i o n C o n t e x t @ 3846 f 024 , s t a r t e d o n T u e A u g 0412 : 42 : 05 C S T 2020 D E B U G 2020 − 08 − 0412 : 42 : 53.01818593 D e f a u l t L i f e c y c l e P r o c e s s o r . j a v a : 369 − S t o p p i n g b e a n s i n p h a s e 2147483647 D E B U G 2020 − 08 − 0412 : 42 : 53.01918593 D e f a u l t L i f e c y c l e P r o c e s s o r . j a v a : 242 − B e a n ′ d o c u m e n t a t i o n P l u g i n s B o o t s t r a p p e r ′ c o m p l e t e d i t s s t o p p r o c e d u r e D E B U G 2020 − 08 − 0412 : 42 : 53.02018593 M B e a n E x p o r t e r . j a v a : 451 − U n r e g i s t e r i n g J M X − e x p o s e d b e a n s o n s h u t d o w n D E B U G 2020 − 08 − 0412 : 42 : 53.02018593 M B e a n R e g i s t r a t i o n S u p p o r t . j a v a : 185 − U n r e g i s t e r i n g J M X − e x p o s e d b e a n s I N F O 2020 − 08 − 0412 : 42 : 53.02018593 E x e c u t o r C o n f i g u r a t i o n S u p p o r t . j a v a : 208 − S h u t t i n g d o w n E x e c u t o r S e r v i c e ′ a p p l i c a t i o n T a s k E x e c u t o r ′ I N F O 2020 − 08 − 0412 : 42 : 53.02618593 D y n a m i c R o u t i n g D a t a S o u r c e . j a v a : 182 − c l o s i n g d y n a m i c D a t a s o u r c e i n g . . . . 04 − A u g − 202012 : 42 : 53.036 W A R N I N G [ l o c a l h o s t − s t a r t S t o p − 1 ] o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . c l e a r R e f e r e n c e s J d b c T h e w e b a p p l i c a t i o n [ R O O T ] r e g i s t e r e d t h e J D B C d r i v e r [ c o m . a l i b a b a . d r u i d . p r o x y . D r u i d D r i v e r ] b u t f a i l e d t o u n r e g i s t e r i t w h e n t h e w e b a p p l i c a t i o n w a s s t o p p e d . T o p r e v e n t a m e m o r y l e a k , t h e J D B C D r i v e r h a s b e e n f o r c i b l y u n r e g i s t e r e d . 04 − A u g − 202012 : 42 : 53.036 W A R N I N G [ l o c a l h o s t − s t a r t S t o p − 1 ] o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . c l e a r R e f e r e n c e s J d b c T h e w e b a p p l i c a t i o n [ R O O T ] r e g i s t e r e d t h e J D B C d r i v e r [ c o m . m y s q l . c j . j d b c . D r i v e r ] b u t f a i l e d t o u n r e g i s t e r i t w h e n t h e w e b a p p l i c a t i o n w a s s t o p p e d . T o p r e v e n t a m e m o r y l e a k , t h e J D B C D r i v e r h a s b e e n f o r c i b l y u n r e g i s t e r e d . 04 − A u g − 202012 : 42 : 53.037 W A R N I N G [ l o c a l h o s t − s t a r t S t o p − 1 ] o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . c l e a r R e f e r e n c e s T h r e a d s T h e w e b a p p l i c a t i o n [ R O O T ] a p p e a r s t o h a v e s t a r t e d a t h r e a d n a m e d [ L o g 4 j 2 − T F − 7 − S c h e d u l e d − 3 ] b u t h a s f a i l e d t o s t o p i t . T h i s i s v e r y l i k e l y t o c r e a t e a m e m o r y l e a k . S t a c k t r a c e o f t h r e a d : s u n . m i s c . U n s a f e . p a r k ( N a t i v e M e t h o d ) j a v a . u t i l . c o n c u r r e n t . l o c k s . L o c k S u p p o r t . p a r k N a n o s ( L o c k S u p p o r t . j a v a : 215 ) j a v a . u t i l . c o n c u r r e n t . l o c k s . A b s t r a c t Q u e u e d S y n c h r o n i z e r 2(MBeanExporter.java:551) at java.util.HashMap.forEach(HashMap.java:1289) at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551) at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137) at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91) at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more Caused by: javax.management.InstanceAlreadyExistsException: project1:name=statFilter,type=StatFilter at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137) at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671) at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615) ... 23 more 04-Aug-2020 12:42:52.971 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-80"] 04-Aug-2020 12:42:52.971 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 04-Aug-2020 12:42:52.971 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 04-Aug-2020 12:42:52.972 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-80"] 04-Aug-2020 12:42:52.973 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"] DEBUG 2020-08-04 12:42:53.016 18593 AbstractApplicationContext.java:1002 - Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3846f024, started on Tue Aug 04 12:42:05 CST 2020 DEBUG 2020-08-04 12:42:53.018 18593 DefaultLifecycleProcessor.java:369 - Stopping beans in phase 2147483647 DEBUG 2020-08-04 12:42:53.019 18593 DefaultLifecycleProcessor.java:242 - Bean 'documentationPluginsBootstrapper' completed its stop procedure DEBUG 2020-08-04 12:42:53.020 18593 MBeanExporter.java:451 - Unregistering JMX-exposed beans on shutdown DEBUG 2020-08-04 12:42:53.020 18593 MBeanRegistrationSupport.java:185 - Unregistering JMX-exposed beans INFO 2020-08-04 12:42:53.020 18593 ExecutorConfigurationSupport.java:208 - Shutting down ExecutorService 'applicationTaskExecutor' INFO 2020-08-04 12:42:53.026 18593 DynamicRoutingDataSource.java:182 - closing dynamicDatasource ing.... 04-Aug-2020 12:42:53.036 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 04-Aug-2020 12:42:53.036 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 04-Aug-2020 12:42:53.037 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Log4j2-TF-7-Scheduled-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park(Native Method) java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) java.util.concurrent.locks.AbstractQueuedSynchronizer 2(MBeanExporter.java:551)atjava.util.HashMap.forEach(HashMap.java:1289)atorg.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:551)atorg.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:434)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:157)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:137)atorg.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:91)atorg.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:171)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...6moreCausedby:javax.management.InstanceAlreadyExistsException:project1:name=statFilter,type=StatFilteratcom.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)atcom.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)atcom.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)atorg.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:137)atorg.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:671)atorg.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)...23more04Aug202012:42:52.971INFO[main]org.apache.coyote.AbstractProtocol.pausePausingProtocolHandler["httpnio80"]04Aug202012:42:52.971INFO[main]org.apache.coyote.AbstractProtocol.pausePausingProtocolHandler["ajpnio8009"]04Aug202012:42:52.971INFO[main]org.apache.catalina.core.StandardService.stopInternalStoppingservice[Catalina]04Aug202012:42:52.972INFO[main]org.apache.coyote.AbstractProtocol.destroyDestroyingProtocolHandler["httpnio80"]04Aug202012:42:52.973INFO[main]org.apache.coyote.AbstractProtocol.destroyDestroyingProtocolHandler["ajpnio8009"]DEBUG2020080412:42:53.01618593AbstractApplicationContext.java:1002Closingorg.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3846f024,startedonTueAug0412:42:05CST2020DEBUG2020080412:42:53.01818593DefaultLifecycleProcessor.java:369Stoppingbeansinphase2147483647DEBUG2020080412:42:53.01918593DefaultLifecycleProcessor.java:242BeandocumentationPluginsBootstrappercompleteditsstopprocedureDEBUG2020080412:42:53.02018593MBeanExporter.java:451UnregisteringJMXexposedbeansonshutdownDEBUG2020080412:42:53.02018593MBeanRegistrationSupport.java:185UnregisteringJMXexposedbeansINFO2020080412:42:53.02018593ExecutorConfigurationSupport.java:208ShuttingdownExecutorServiceapplicationTaskExecutorINFO2020080412:42:53.02618593DynamicRoutingDataSource.java:182closingdynamicDatasourceing....04Aug202012:42:53.036WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbcThewebapplication[ROOT]registeredtheJDBCdriver[com.alibaba.druid.proxy.DruidDriver]butfailedtounregisteritwhenthewebapplicationwasstopped.Topreventamemoryleak,theJDBCDriverhasbeenforciblyunregistered.04Aug202012:42:53.036WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbcThewebapplication[ROOT]registeredtheJDBCdriver[com.mysql.cj.jdbc.Driver]butfailedtounregisteritwhenthewebapplicationwasstopped.Topreventamemoryleak,theJDBCDriverhasbeenforciblyunregistered.04Aug202012:42:53.037WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreadsThewebapplication[ROOT]appearstohavestartedathreadnamed[Log4j2TF7Scheduled3]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:sun.misc.Unsafe.park(NativeMethod)java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)java.util.concurrent.locks.AbstractQueuedSynchronizerConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor D e l a y e d W o r k Q u e u e . t a k e ( S c h e d u l e d T h r e a d P o o l E x e c u t o r . j a v a : 1093 ) j a v a . u t i l . c o n c u r r e n t . S c h e d u l e d T h r e a d P o o l E x e c u t o r DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093) java.util.concurrent.ScheduledThreadPoolExecutor DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)java.util.concurrent.ScheduledThreadPoolExecutorDelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
java.util.concurrent.ThreadPoolExecutor W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 624 ) j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) 04 − A u g − 202012 : 42 : 53.038 W A R N I N G [ l o c a l h o s t − s t a r t S t o p − 1 ] o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . c l e a r R e f e r e n c e s T h r e a d s T h e w e b a p p l i c a t i o n [ R O O T ] a p p e a r s t o h a v e s t a r t e d a t h r e a d n a m e d [ L o g 4 j 2 − T F − 8 − A s y n c L o g g e r C o n f i g − 4 ] b u t h a s f a i l e d t o s t o p i t . T h i s i s v e r y l i k e l y t o c r e a t e a m e m o r y l e a k . S t a c k t r a c e o f t h r e a d : o r g . a p a c h e . l o g g i n g . l o g 4 j . c o r e . i m p l . T h r o w a b l e P r o x y . f o r m a t E x t e n d e d S t a c k T r a c e T o ( T h r o w a b l e P r o x y . j a v a : 381 ) o r g . a p a c h e . l o g g i n g . l o g 4 j . c o r e . p a t t e r n . E x t e n d e d T h r o w a b l e P a t t e r n C o n v e r t e r . f o r m a t ( E x t e n d e d T h r o w a b l e P a t t e r n C o n v e r t e r . j a v a : 74 ) o r g . s p r i n g f r a m e w o r k . b o o t . l o g g i n g . l o g 4 j 2. E x t e n d e d W h i t e s p a c e T h r o w a b l e P a t t e r n C o n v e r t e r . f o r m a t ( E x t e n d e d W h i t e s p a c e T h r o w a b l e P a t t e r n C o n v e r t e r . j a v a : 54 ) o r g . a p a c h e . l o g g i n g . l o g 4 j . c o r e . p a t t e r n . P a t t e r n F o r m a t t e r . f o r m a t ( P a t t e r n F o r m a t t e r . j a v a : 38 ) o r g . a p a c h e . l o g g i n g . l o g 4 j . c o r e . l a y o u t . P a t t e r n L a y o u t Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 04-Aug-2020 12:42:53.038 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Log4j2-TF-8-AsyncLoggerConfig-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: org.apache.logging.log4j.core.impl.ThrowableProxy.formatExtendedStackTraceTo(ThrowableProxy.java:381) org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter.format(ExtendedThrowablePatternConverter.java:74) org.springframework.boot.logging.log4j2.ExtendedWhitespaceThrowablePatternConverter.format(ExtendedWhitespaceThrowablePatternConverter.java:54) org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38) org.apache.logging.log4j.core.layout.PatternLayout Worker.run(ThreadPoolExecutor.java:624)java.lang.Thread.run(Thread.java:748)04Aug202012:42:53.038WARNING[localhoststartStop1]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreadsThewebapplication[ROOT]appearstohavestartedathreadnamed[Log4j2TF8AsyncLoggerConfig4]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:org.apache.logging.log4j.core.impl.ThrowableProxy.formatExtendedStackTraceTo(ThrowableProxy.java:381)org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter.format(ExtendedThrowablePatternConverter.java:74)org.springframework.boot.logging.log4j2.ExtendedWhitespaceThrowablePatternConverter.format(ExtendedWhitespaceThrowablePatternConverter.java:54)org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:38)org.apache.logging.log4j.core.layout.PatternLayoutPatternSerializer.toSerializable(PatternLayout.java:334)
org.apache.logging.log4j.core.layout.PatternLayout.toText(PatternLayout.java:233)
org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:218)
org.apache.logging.log4j.core.layout.PatternLayout.encode(PatternLayout.java:58)
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:197)
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:190)
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:181)
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:464)
org.apache.logging.log4j.core.async.AsyncLoggerConfig.callAppenders(AsyncLoggerConfig.java:127)
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:448)
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:431)
org.apache.logging.log4j.core.async.AsyncLoggerConfig.log(AsyncLoggerConfig.java:121)
org.apache.logging.log4j.core.async.AsyncLoggerConfig.logToAsyncLoggerConfigsOnCurrentThread(AsyncLoggerConfig.java:169)
org.apache.logging.log4j.core.async.AsyncLoggerConfigDisruptor L o g 4 j E v e n t W r a p p e r H a n d l e r . o n E v e n t ( A s y n c L o g g e r C o n f i g D i s r u p t o r . j a v a : 111 ) o r g . a p a c h e . l o g g i n g . l o g 4 j . c o r e . a s y n c . A s y n c L o g g e r C o n f i g D i s r u p t o r Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigDisruptor.java:111) org.apache.logging.log4j.core.async.AsyncLoggerConfigDisruptor Log4jEventWrapperHandler.onEvent(AsyncLoggerConfigDisruptor.java:111)org.apache.logging.log4j.core.async.AsyncLoggerConfigDisruptorLog4jEventWrapperHandler.onEvent(AsyncLoggerConfigDisruptor.java:97)
com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:169)
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:126)
java.lang.Thread.run(Thread.java:748)
04-Aug-2020 12:42:53.039 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
ERROR 2020-08-04 12:42:53.031 18593 DruidDataSourceStatManager.java:204 - unregister mbean error

javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSource,id=master
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) ~[?:1.8.0_212]
at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) ~[?:1.8.0_212]
at com.alibaba.druid.stat.DruidDataSourceStatManager.removeDataSource(DruidDataSourceStatManager.java:202) ~[druid-1.1.10.jar:1.1.10]
at com.alibaba.druid.pool.DruidDataSource 2. r u n ( D r u i d D a t a S o u r c e . j a v a : 1853 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d )   [ ? : 1.8. 0 2 12 ] a t c o m . a l i b a b a . d r u i d . p o o l . D r u i d D a t a S o u r c e . u n r e g i s t e r M b e a n ( D r u i d D a t a S o u r c e . j a v a : 1849 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t c o m . a l i b a b a . d r u i d . p o o l . D r u i d D a t a S o u r c e . c l o s e ( D r u i d D a t a S o u r c e . j a v a : 1808 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d )   [ ? : 1.8. 0 2 12 ] a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 )   [ ? : 1.8. 0 2 12 ] a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 )   [ ? : 1.8. 0 2 12 ] a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 )   [ ? : 1.8. 0 2 12 ] a t c o m . b a o m i d o u . d y n a m i c . d a t a s o u r c e . D y n a m i c R o u t i n g D a t a S o u r c e . d e s t r o y ( D y n a m i c R o u t i n g D a t a S o u r c e . j a v a : 193 )   [ d y n a m i c − d a t a s o u r c e − s p r i n g − b o o t − s t a r t e r − 2.5.4. j a r : 2.5.4 ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D i s p o s a b l e B e a n A d a p t e r . d e s t r o y ( D i s p o s a b l e B e a n A d a p t e r . j a v a : 256 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y B e a n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 571 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 543 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d e s t r o y S i n g l e t o n ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1055 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y S i n g l e t o n s ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 504 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d e s t r o y S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1062 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . d e s t r o y B e a n s ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 1057 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . d o C l o s e ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 1026 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . c l o s e ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 975 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . c l o s e W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 516 )   [ s p r i n g − w e b − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r L i s t e n e r . c o n t e x t D e s t r o y e d ( C o n t e x t L o a d e r L i s t e n e r . j a v a : 112 )   [ s p r i n g − w e b − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . l i s t e n e r S t o p ( S t a n d a r d C o n t e x t . j a v a : 4744 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t o p I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5403 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t o p ( L i f e c y c l e B a s e . j a v a : 226 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e 2.run(DruidDataSource.java:1853) ~[druid-1.1.10.jar:1.1.10] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_212] at com.alibaba.druid.pool.DruidDataSource.unregisterMbean(DruidDataSource.java:1849) ~[druid-1.1.10.jar:1.1.10] at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1808) ~[druid-1.1.10.jar:1.1.10] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212] at com.baomidou.dynamic.datasource.DynamicRoutingDataSource.destroy(DynamicRoutingDataSource.java:193) ~[dynamic-datasource-spring-boot-starter-2.5.4.jar:2.5.4] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:256) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1055) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1062) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:516) ~[spring-web-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:112) ~[spring-web-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4744) ~[catalina.jar:8.5.45] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403) ~[catalina.jar:8.5.45] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) ~[catalina.jar:8.5.45] at org.apache.catalina.core.ContainerBase 2.run(DruidDataSource.java:1853) [druid1.1.10.jar:1.1.10]atjava.security.AccessController.doPrivileged(NativeMethod) [?:1.8.0212]atcom.alibaba.druid.pool.DruidDataSource.unregisterMbean(DruidDataSource.java:1849) [druid1.1.10.jar:1.1.10]atcom.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1808) [druid1.1.10.jar:1.1.10]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) [?:1.8.0212]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0212]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0212]atjava.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0212]atcom.baomidou.dynamic.datasource.DynamicRoutingDataSource.destroy(DynamicRoutingDataSource.java:193) [dynamicdatasourcespringbootstarter2.5.4.jar:2.5.4]atorg.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:256) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1055) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1062) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:516) [springweb5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:112) [springweb5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4744) [catalina.jar:8.5.45]atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403) [catalina.jar:8.5.45]atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) [catalina.jar:8.5.45]atorg.apache.catalina.core.ContainerBaseStopChild.call(ContainerBase.java:1428) ~[catalina.jar:8.5.45]
at org.apache.catalina.core.ContainerBase S t o p C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1417 )   [ c a t a l i n a . j a r : 8.5.45 ] a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r StopChild.call(ContainerBase.java:1417) ~[catalina.jar:8.5.45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor StopChild.call(ContainerBase.java:1417) [catalina.jar:8.5.45]atjava.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

INFO 2020-08-04 12:42:53.031 18593 DruidDataSource.java:1825 - {dataSource-1} closed
ERROR 2020-08-04 12:42:53.032 18593 DruidDataSourceStatManager.java:204 - unregister mbean error

javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSource,id=slave_1
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:427) ~[?:1.8.0_212]
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:415) ~[?:1.8.0_212]
at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:546) ~[?:1.8.0_212]
at com.alibaba.druid.stat.DruidDataSourceStatManager.removeDataSource(DruidDataSourceStatManager.java:202) ~[druid-1.1.10.jar:1.1.10]
at com.alibaba.druid.pool.DruidDataSource 2. r u n ( D r u i d D a t a S o u r c e . j a v a : 1853 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d )   [ ? : 1.8. 0 2 12 ] a t c o m . a l i b a b a . d r u i d . p o o l . D r u i d D a t a S o u r c e . u n r e g i s t e r M b e a n ( D r u i d D a t a S o u r c e . j a v a : 1849 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t c o m . a l i b a b a . d r u i d . p o o l . D r u i d D a t a S o u r c e . c l o s e ( D r u i d D a t a S o u r c e . j a v a : 1808 )   [ d r u i d − 1.1.10. j a r : 1.1.10 ] a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e 0 ( N a t i v e M e t h o d )   [ ? : 1.8. 0 2 12 ] a t s u n . r e f l e c t . N a t i v e M e t h o d A c c e s s o r I m p l . i n v o k e ( N a t i v e M e t h o d A c c e s s o r I m p l . j a v a : 62 )   [ ? : 1.8. 0 2 12 ] a t s u n . r e f l e c t . D e l e g a t i n g M e t h o d A c c e s s o r I m p l . i n v o k e ( D e l e g a t i n g M e t h o d A c c e s s o r I m p l . j a v a : 43 )   [ ? : 1.8. 0 2 12 ] a t j a v a . l a n g . r e f l e c t . M e t h o d . i n v o k e ( M e t h o d . j a v a : 498 )   [ ? : 1.8. 0 2 12 ] a t c o m . b a o m i d o u . d y n a m i c . d a t a s o u r c e . D y n a m i c R o u t i n g D a t a S o u r c e . d e s t r o y ( D y n a m i c R o u t i n g D a t a S o u r c e . j a v a : 193 )   [ d y n a m i c − d a t a s o u r c e − s p r i n g − b o o t − s t a r t e r − 2.5.4. j a r : 2.5.4 ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D i s p o s a b l e B e a n A d a p t e r . d e s t r o y ( D i s p o s a b l e B e a n A d a p t e r . j a v a : 256 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y B e a n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 571 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 543 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d e s t r o y S i n g l e t o n ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1055 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . d e s t r o y S i n g l e t o n s ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 504 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . d e s t r o y S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 1062 )   [ s p r i n g − b e a n s − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . d e s t r o y B e a n s ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 1057 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . d o C l o s e ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 1026 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . c l o s e ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 975 )   [ s p r i n g − c o n t e x t − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r . c l o s e W e b A p p l i c a t i o n C o n t e x t ( C o n t e x t L o a d e r . j a v a : 516 )   [ s p r i n g − w e b − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . w e b . c o n t e x t . C o n t e x t L o a d e r L i s t e n e r . c o n t e x t D e s t r o y e d ( C o n t e x t L o a d e r L i s t e n e r . j a v a : 112 )   [ s p r i n g − w e b − 5.1.6. R E L E A S E . j a r : 5.1.6. R E L E A S E ] a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . l i s t e n e r S t o p ( S t a n d a r d C o n t e x t . j a v a : 4744 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t . s t o p I n t e r n a l ( S t a n d a r d C o n t e x t . j a v a : 5403 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . u t i l . L i f e c y c l e B a s e . s t o p ( L i f e c y c l e B a s e . j a v a : 226 )   [ c a t a l i n a . j a r : 8.5.45 ] a t o r g . a p a c h e . c a t a l i n a . c o r e . C o n t a i n e r B a s e 2.run(DruidDataSource.java:1853) ~[druid-1.1.10.jar:1.1.10] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_212] at com.alibaba.druid.pool.DruidDataSource.unregisterMbean(DruidDataSource.java:1849) ~[druid-1.1.10.jar:1.1.10] at com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1808) ~[druid-1.1.10.jar:1.1.10] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_212] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_212] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_212] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_212] at com.baomidou.dynamic.datasource.DynamicRoutingDataSource.destroy(DynamicRoutingDataSource.java:193) ~[dynamic-datasource-spring-boot-starter-2.5.4.jar:2.5.4] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:256) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1055) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1062) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:516) ~[spring-web-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:112) ~[spring-web-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4744) ~[catalina.jar:8.5.45] at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403) ~[catalina.jar:8.5.45] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) ~[catalina.jar:8.5.45] at org.apache.catalina.core.ContainerBase 2.run(DruidDataSource.java:1853) [druid1.1.10.jar:1.1.10]atjava.security.AccessController.doPrivileged(NativeMethod) [?:1.8.0212]atcom.alibaba.druid.pool.DruidDataSource.unregisterMbean(DruidDataSource.java:1849) [druid1.1.10.jar:1.1.10]atcom.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1808) [druid1.1.10.jar:1.1.10]atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod) [?:1.8.0212]atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0212]atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0212]atjava.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0212]atcom.baomidou.dynamic.datasource.DynamicRoutingDataSource.destroy(DynamicRoutingDataSource.java:193) [dynamicdatasourcespringbootstarter2.5.4.jar:2.5.4]atorg.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:256) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:571) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:543) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1055) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:504) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1062) [springbeans5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1057) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1026) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975) [springcontext5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:516) [springweb5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:112) [springweb5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4744) [catalina.jar:8.5.45]atorg.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5403) [catalina.jar:8.5.45]atorg.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226) [catalina.jar:8.5.45]atorg.apache.catalina.core.ContainerBaseStopChild.call(ContainerBase.java:1428) ~[catalina.jar:8.5.45]
at org.apache.catalina.core.ContainerBase S t o p C h i l d . c a l l ( C o n t a i n e r B a s e . j a v a : 1417 )   [ c a t a l i n a . j a r : 8.5.45 ] a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 266 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 )   [ ? : 1.8. 0 2 12 ] a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r StopChild.call(ContainerBase.java:1417) ~[catalina.jar:8.5.45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_212] at java.util.concurrent.ThreadPoolExecutor StopChild.call(ContainerBase.java:1417) [catalina.jar:8.5.45]atjava.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0212]atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]

04-Aug-2020 12:42:53.040 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@301098a2]) and a value of type [org.apache.logging.log4j.core.config.AppenderControl] (value [org.apache.logging.log4j.core.config.AppenderControl@63827137[appender=CONSOLE, appenderName=CONSOLE, level=null, intLevel=2147483647, recursive=java.lang.ThreadLocal@301098a2, filter=null]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
04-Aug-2020 12:42:53.040 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2a12c6e8]) and a value of type [org.apache.logging.log4j.core.config.AppenderControl] (value [org.apache.logging.log4j.core.config.AppenderControl@3954ac13[appender=INFO_LOG, appenderName=INFO_LOG, level=null, intLevel=2147483647, recursive=java.lang.ThreadLocal@2a12c6e8, filter=null]]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
INFO 2020-08-04 12:42:53.032 18593 DruidDataSource.java:1825 - {dataSource-2} closed
2020-08-04 12:42:53 -14421 [localhost-startStop-1] INFO - Closing WebApplicationContext for namespace ‘base-servlet’: startup date [Tue Aug 04 12:42:41 CST 2020]; parent: Root WebApplicationContext
2020-08-04 12:42:53 -14421 [localhost-startStop-1] DEBUG - Publishing event in WebApplicationContext for namespace ‘base-servlet’: org.springframework.context.event.ContextClosedEvent[source=WebApplicationContext for namespace ‘base-servlet’: startup date [Tue Aug 04 12:42:41 CST 2020]; parent: Root WebApplicationContext]
2020-08-04 12:42:53 -14421 [localhost-startStop-1] DEBUG - Publishing event in Root WebApplicationContext: org.springframework.context.event.ContextClosedEvent[source=WebApplicationContext for namespace ‘base-servlet’: startup date [Tue Aug 04 12:42:41 CST 2020]; parent: Root WebApplicationContext]
2020-08-04 12:42:53 -14422 [localhost-startStop-1] DEBUG - Returning cached instance of singleton bean ‘sqlSessionFactory’
2020-08-04 12:42:53 -14422 [localhost-startStop-1] DEBUG - Returning cached instance of singleton bean ‘lifecycleProcessor’
2020-08-04 12:42:53 -14422 [localhost-startStop-1] DEBUG - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@62ba8034: defining beans [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,backAgencyController,backAuditController,backHomeController,backLoginController,backMenuController,backNoticeController,backRenewalController,backSchoolController,backSchoolFeatureController,backSchoolUpdateController,backServiceCaseController,backServiceController,backServiceCustomController,backSlideshowController,frontAgencyController,frontAuditController,frontHomeController,frontInquiryController,frontMenuController,frontMessageController,frontNoticeController,frontPasswordRetrieveController,frontRenewalController,frontSchoolController,frontSchoolFeatureController,frontSchoolUpdateController,frontServiceCaseController,frontServiceController,frontServiceCustomController,frontSlideshowController,frontLoginController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,mvcUriComponentsContributor,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.MappedInterceptor#1,org.springframework.web.servlet.handler.MappedInterceptor#2,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#1,org.springframework.format.support.FormattingConversionServiceFactoryBean#1,org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#1,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#1,org.springframework.web.servlet.handler.MappedInterceptor#3,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#1,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#1,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.view.InternalResourceViewResolver#0,multipartResolver,messageSource,validator,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@74354aff
2020-08-04 12:42:53 -14422 [localhost-startStop-1] DEBUG - Invoking destroy() on bean with name ‘validator’
2020-08-04 12:42:53 -14422 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#49f2c4d5#2’: [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#1]
2020-08-04 12:42:53 -14423 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#56e1ff3b#1’: [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#1]
2020-08-04 12:42:53 -14423 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘fastJsonHttpMessageConverter#1’: [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0]
2020-08-04 12:42:53 -14423 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#4d29c6ee’: [mvcUriComponentsContributor]
2020-08-04 12:42:53 -14423 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#56e1ff3b’: [(inner bean)#4d29c6ee]
2020-08-04 12:42:53 -14423 [localhost-startStop-1] DEBUG - Invoking destroy() on bean with name ‘org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#1’
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#1e3a0f8b’: [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0]
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Invoking destroy() on bean with name ‘org.springframework.validation.beanvalidation.OptionalValidatorFactoryBean#0’
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#1f86d10e’: [org.springframework.web.servlet.handler.MappedInterceptor#3]
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘com.p2p.base.interceptor.CrossDomainInterceptor#0’: [org.springframework.web.servlet.handler.MappedInterceptor#2]
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘com.p2p.base.interceptor.LoginInterceptor#0’: [org.springframework.web.servlet.handler.MappedInterceptor#1]
2020-08-04 12:42:53 -14424 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#2b66074a’: [org.springframework.web.servlet.handler.MappedInterceptor#0]
2020-08-04 12:42:53 -14431 [localhost-startStop-1] INFO - Closing Root WebApplicationContext: startup date [Tue Aug 04 12:42:38 CST 2020]; root of context hierarchy
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - Publishing event in Root WebApplicationContext: org.springframework.context.event.ContextClosedEvent[source=Root WebApplicationContext: startup date [Tue Aug 04 12:42:38 CST 2020]; root of context hierarchy]
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - Server is stopping.
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - unregistering incoming observer: org.apache.cxf.transport.ChainInitiationObserver@3902bf5b
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - unregister the server to serverRegistry
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - Server is stopping.
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - unregistering incoming observer: org.apache.cxf.transport.ChainInitiationObserver@585d20dc
2020-08-04 12:42:53 -14431 [localhost-startStop-1] DEBUG - unregister the server to serverRegistry
2020-08-04 12:42:53 -14432 [localhost-startStop-1] DEBUG - Returning cached instance of singleton bean ‘lifecycleProcessor’
2020-08-04 12:42:53 -14432 [localhost-startStop-1] DEBUG - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@74354aff: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,agencyServiceImpl,auditLoggingServiceImpl,auditServiceImpl,backuserServiceImpl,cityServiceImpl,countyServiceImpl,messageServiceImpl,noticeServiceImpl,proviceServiceImpl,renewalServiceImpl,schoolFeatureServiceImpl,schoolLogServiceImpl,schoolServiceImpl,schoolUpdateServiceImpl,serviceCaseServiceImpl,serviceCustomServiceImpl,serviceServiceImpl,slideshowServiceImpl,userServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFactory,globalConfig,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,smsOperNotify,smsEaOperNotify,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor,agencyMapper,auditLoggingMapper,auditMapper,backuserMapper,cityMapper,countyMapper,messageMapper,noticeMapper,proviceMapper,renewalMapper,schoolFeatureMapper,schoolLogMapper,schoolMapper,schoolUpdateMapper,serviceCaseMapper,serviceCustomMapper,serviceMapper,slideshowMapper,userMapper]; root of factory hierarchy
2020-08-04 12:42:53 -14432 [localhost-startStop-1] DEBUG - Invoking destroy method ‘stop’ on bean with name ‘smsEaOperNotify’
2020-08-04 12:42:53 -14432 [localhost-startStop-1] DEBUG - unregister the server to serverRegistry
2020-08-04 12:42:53 -14432 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#19fbc750’: [smsEaOperNotify]
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Invoking destroy method ‘stop’ on bean with name ‘smsOperNotify’
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - unregister the server to serverRegistry
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#49cce37f’: [smsOperNotify]
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘(inner bean)#1cc6dd6f’: [transactionAdvice]
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘paginationInterceptor’: [sqlSessionFactory]
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Retrieved dependent beans for bean ‘com.p2p.base.common.MyMetaObjectHandler#6cb886ba’: [globalConfig]
2020-08-04 12:42:53 -14433 [localhost-startStop-1] DEBUG - Invoking destroy method ‘close’ on bean with name ‘dataSource’
2020-08-04 12:42:53 -14444 [localhost-startStop-1] INFO - {dataSource-1} closed
04-Aug-2020 12:42:53.072 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [base] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
04-Aug-2020 12:42:53.072 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [base] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
04-Aug-2020 12:42:53.072 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [base] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
04-Aug-2020 12:42:53.081 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [lessonCloud] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
04-Aug-2020 12:42:53.081 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [lessonCloud] registered the JDBC driver [com.mysql.cj.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
04-Aug-2020 12:42:53.082 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [lessonCloud] appears to have started a thread named [Log4j2-TF-7-Scheduled-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer C o n d i t i o n O b j e c t . a w a i t N a n o s ( A b s t r a c t Q u e u e d S y n c h r o n i z e r . j a v a : 2078 ) j a v a . u t i l . c o n c u r r e n t . S c h e d u l e d T h r e a d P o o l E x e c u t o r ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.ScheduledThreadPoolExecutor ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)java.util.concurrent.ScheduledThreadPoolExecutorDelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor D e l a y e d W o r k Q u e u e . t a k e ( S c h e d u l e d T h r e a d P o o l E x e c u t o r . j a v a : 809 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . g e t T a s k ( T h r e a d P o o l E x e c u t o r . j a v a : 1074 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1134 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
04-Aug-2020 12:42:53.082 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [lessonCloud] appears to have started a thread named [Log4j2-TF-8-AsyncLoggerConfig-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer C o n d i t i o n O b j e c t . a w a i t N a n o s ( A b s t r a c t Q u e u e d S y n c h r o n i z e r . j a v a : 2078 ) c o m . l m a x . d i s r u p t o r . T i m e o u t B l o c k i n g W a i t S t r a t e g y . w a i t F o r ( T i m e o u t B l o c k i n g W a i t S t r a t e g y . j a v a : 38 ) c o m . l m a x . d i s r u p t o r . P r o c e s s i n g S e q u e n c e B a r r i e r . w a i t F o r ( P r o c e s s i n g S e q u e n c e B a r r i e r . j a v a : 56 ) c o m . l m a x . d i s r u p t o r . B a t c h E v e n t P r o c e s s o r . p r o c e s s E v e n t s ( B a t c h E v e n t P r o c e s s o r . j a v a : 160 ) c o m . l m a x . d i s r u p t o r . B a t c h E v e n t P r o c e s s o r . r u n ( B a t c h E v e n t P r o c e s s o r . j a v a : 126 ) j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 748 ) 04 − A u g − 202012 : 42 : 53.082 W A R N I N G [ m a i n ] o r g . a p a c h e . c a t a l i n a . l o a d e r . W e b a p p C l a s s L o a d e r B a s e . c l e a r R e f e r e n c e s T h r e a d s T h e w e b a p p l i c a t i o n [ l e s s o n C l o u d ] a p p e a r s t o h a v e s t a r t e d a t h r e a d n a m e d [ m y s q l − c j − a b a n d o n e d − c o n n e c t i o n − c l e a n u p ] b u t h a s f a i l e d t o s t o p i t . T h i s i s v e r y l i k e l y t o c r e a t e a m e m o r y l e a k . S t a c k t r a c e o f t h r e a d : j a v a . l a n g . O b j e c t . w a i t ( N a t i v e M e t h o d ) j a v a . l a n g . r e f . R e f e r e n c e Q u e u e . r e m o v e ( R e f e r e n c e Q u e u e . j a v a : 144 ) c o m . m y s q l . c j . j d b c . A b a n d o n e d C o n n e c t i o n C l e a n u p T h r e a d . r u n ( A b a n d o n e d C o n n e c t i o n C l e a n u p T h r e a d . j a v a : 85 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 ) j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) com.lmax.disruptor.TimeoutBlockingWaitStrategy.waitFor(TimeoutBlockingWaitStrategy.java:38) com.lmax.disruptor.ProcessingSequenceBarrier.waitFor(ProcessingSequenceBarrier.java:56) com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:160) com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:126) java.lang.Thread.run(Thread.java:748) 04-Aug-2020 12:42:53.082 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [lessonCloud] appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144) com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)com.lmax.disruptor.TimeoutBlockingWaitStrategy.waitFor(TimeoutBlockingWaitStrategy.java:38)com.lmax.disruptor.ProcessingSequenceBarrier.waitFor(ProcessingSequenceBarrier.java:56)com.lmax.disruptor.BatchEventProcessor.processEvents(BatchEventProcessor.java:160)com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:126)java.lang.Thread.run(Thread.java:748)04Aug202012:42:53.082WARNING[main]org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreadsThewebapplication[lessonCloud]appearstohavestartedathreadnamed[mysqlcjabandonedconnectioncleanup]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:java.lang.Object.wait(NativeMethod)java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:144)com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

以上是错误信息,有了错误就百度,也找到了解决方案,解决方案如下:
在这里插入图片描述在yml配置文件中设置jmx.enabled: flase
设置完成后,tomcat可以正常启动,但是在随后的的测试中,session的问题就暴露了。我登录的session在别的电脑上也可以获取的到。(问题所在),网上搜了很久,知道遇到另一篇博客,具体地址如下:
https://blog.51cto.com/bingowu/1875759

写到这里,各位看完这个博客基本应该都明白了吧。下面是链接博客的截图[在这里插入图片描述](https://img-blog.csdnimg.cn/20200818193215826.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDE1ODc5OQ==,size_16,color_FFFFFF,t_70#pic_center

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值