记一次报错 This is very likely to create a memory leak. Stack trace of thread:

2019-08-08 18:19:24.050 INFO 20344 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
Parsed mapper file: ‘file [D:\anmo\goods-service\target\classes\mapper\goods\ActivityDao.xml]’
2019-08-08 18:19:24.457 INFO 20344 — [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2019-08-08 18:19:24.461 INFO 20344 — [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2019-08-08 18:19:24.463 INFO 20344 — [ost-startStop-1] io.anmo.listener.DubboServiceListener : 销毁dubbo实例中…
2019-08-08 18:19:24.501 INFO 20344 — [tor-Framework-0] o.a.c.f.imps.CuratorFrameworkImpl : backgroundOperationsLoop exiting
2019-08-08 18:19:24.518 INFO 20344 — [ain-EventThread] org.apache.zookeeper.ClientCnxn : EventThread shut down for session: 0x100000a3ac50134
2019-08-08 18:19:24.518 INFO 20344 — [ost-startStop-1] org.apache.zookeeper.ZooKeeper : Session: 0x100000a3ac50134 closed
2019-08-08 18:19:24.533 INFO 20344 — [ost-startStop-1] io.anmo.listener.DubboServiceListener : 销毁dubbo服务完成!
2019-08-08 18:19:24.535 WARN 20344 — [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [goods-service] appears to have started a thread named [DubboResponseTimeoutScanTimer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
com.alibaba.dubbo.remoting.exchange.support.DefaultFutureRemotingInvocationTimeoutScan.run(DefaultFuture.java:301)java.lang.Thread.run(Thread.java:748)2019080818:19:24.536WARN20344[oststartStop1]o.a.c.loader.WebappClassLoaderBase:Thewebapplication[goodsservice]appearstohavestartedathreadnamed[DubboSharedHandlerthread1]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:sun.misc.Unsafe.park(NativeMethod)java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)java.util.concurrent.SynchronousQueueRemotingInvocationTimeoutScan.run(DefaultFuture.java:301) java.lang.Thread.run(Thread.java:748) 2019-08-08 18:19:24.536 WARN 20344 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [goods-service] appears to have started a thread named [DubboSharedHandler-thread-1] 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.SynchronousQueueRemotingInvocationTimeoutScan.run(DefaultFuture.java:301)java.lang.Thread.run(Thread.java:748)2019−08−0818:19:24.536WARN20344−−−[ost−startStop−1]o.a.c.loader.WebappClassLoaderBase:Thewebapplication[goods−service]appearstohavestartedathreadnamed[DubboSharedHandler−thread−1]buthasfailedtostopit.Thisisverylikelytocreateamemoryleak.Stacktraceofthread:sun.misc.Unsafe.park(NativeMethod)java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)java.util.concurrent.SynchronousQueueTransferStack.awaitFulfill(SynchronousQueue.java:460)
java.util.concurrent.SynchronousQueueTransferStack.transfer(SynchronousQueue.java:362)java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)java.util.concurrent.ThreadPoolExecutorTransferStack.transfer(SynchronousQueue.java:362) java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutorTransferStack.transfer(SynchronousQueue.java:362)java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)java.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

可能有两种情况会报这种错:
1.mybatis中的xml文件映射或者类路径错了
2.在controller中的访问路径重复了
自己检查了好久才发现!

上一篇:web Magic报错 NoSuchMethodError NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter


下一篇:newSingleThreadScheduledExecutor连续关闭造成 java.util.concurrent.RejectedExecutionException