警告: The web application [bank] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but

警告: The web application [bank] 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.
一月 08, 2019 5:58:16 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [bank] 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.
一月 08, 2019 5:58:16 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [bank] 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:143)
com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:64)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
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 : 617 ) 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 : 745 ) 08 , 20195 : 58 : 16 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 h e c k S t a t e F o r R e s o u r c e L o a d i n g : I l l e g a l a c c e s s : t h i s w e b a p p l i c a t i o n i n s t a n c e h a s b e e n s t o p p e d a l r e a d y . C o u l d n o t l o a d [ ] . T h e f o l l o w i n g s t a c k t r a c e i s t h r o w n f o r d e b u g g i n g p u r p o s e s a s w e l l a s t o a t t e m p t t o t e r m i n a t e t h e t h r e a d w h i c h c a u s e d t h e i l l e g a l a c c e s s . j a v a . l a n g . I l l e g a l S t a t e E x c e p t i o n : I l l e g a l a c c e s s : t h i s w e b a p p l i c a t i o n i n s t a n c e h a s b e e n s t o p p e d a l r e a d y . C o u l d n o t l o a d [ ] . T h e f o l l o w i n g s t a c k t r a c e i s t h r o w n f o r d e b u g g i n g p u r p o s e s a s w e l l a s t o a t t e m p t t o t e r m i n a t e t h e t h r e a d w h i c h c a u s e d t h e i l l e g a l a c c e s s . a t 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 h e c k S t a t e F o r R e s o u r c e L o a d i n g ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 1295 ) a t 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 . g e t R e s o u r c e ( W e b a p p C l a s s L o a d e r B a s e . j a v a : 972 ) a t c o m . m y s q l . 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 . c h e c k C o n t e x t C l a s s L o a d e r s ( 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 : 90 ) a t c o m . m y s q l . 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 : 63 ) 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 : 1142 ) 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 Worker.run(ThreadPoolExecutor.java:617) java.lang.Thread.run(Thread.java:745) 一月 08, 2019 5:58:16 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading 信息: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1295) at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:972) at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90) at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Eclipse 改变Java类里代码时 ,Console会自动重启服务器,就会出现这个错误。。怎么回事,求大神告知?!

猜你喜欢

转载自blog.csdn.net/qq_41051041/article/details/86090040