scheduled task errors when shutting down tomcat

Description

when I shutdown the latest snapshot, I'm seeing all these errors, it's been happening with previous 5.3 snapshots too

just starting lucee, opening one page on the virtual host and then stopping the service triggers all these error messages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 26-Sep-2018 15:00:17.942 INFO [Thread-76] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8888"] 26-Sep-2018 15:00:18.531 INFO [Thread-76] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 26-Sep-2018 15:00:19.107 INFO [Thread-76] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 26-Sep-2018 15:00:19.134 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-10] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.136 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-12] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.138 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-13] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.139 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-14] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.140 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-15] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.141 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-16] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.142 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-17] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.143 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-18] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.145 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-19] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.146 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-20] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.147 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-21] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.148 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-22] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.149 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-23] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.150 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-24] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.151 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-25] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.153 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-26] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.154 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-27] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.155 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-28] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.156 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-29] 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) lucee.runtime.schedule.ScheduledTaskThread.sleepEL(ScheduledTaskThread.java:174) lucee.runtime.schedule.ScheduledTaskThread._run(ScheduledTaskThread.java:123) lucee.runtime.schedule.ScheduledTaskThread.run(ScheduledTaskThread.java:82) 26-Sep-2018 15:00:19.158 WARNING [lucee-localhost-httpd-confl556-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-30] 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) lucee.runtime.spooler.SpoolerEngineImpl$SpoolerThread.doWait(SpoolerEngineImpl.java:510) lucee.runtime.spooler.SpoolerEngineImpl$SpoolerThread.run(SpoolerEngineImpl.java:480) 26-Sep-2018 15:00:25.017 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-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.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.018 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-2] 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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.020 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.021 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.022 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-5] 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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.023 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-6] 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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.024 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-7] 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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.025 WARNING [127.0.0.1-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [FelixResolver-8] 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$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467) java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1073) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748) 26-Sep-2018 15:00:25.033 INFO [Thread-76] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8888"]

Environment

Apache Tomcat/8.5.31
JVM 1.8.0_181-b13
5.3.1.74-SNAPSHOT

Status

Assignee

Michael Offner

Reporter

Zac Spitzer

Labels

Sprint

None

Fix versions

Affects versions

5.3.1.74

Priority

Blocker
Configure