Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-63066

Tomcat 8.0.30 shutdown errors: there are threads and thread locals not closed

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Start clean bundle
      2. Once the configuration page loads, shutdown portal

      Expected result
      Portal shuts down with no errors

      Actual result
      Console throws errors on shutdown after configuration and shutdown after restart

      Shutdown errors after configuration

      09-Feb-2016 23:39:16.594 INFO [Thread-29] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:39:16.648 INFO [Thread-29] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
      09-Feb-2016 23:39:16.700 INFO [Thread-29] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
      09-Feb-2016 23:39:16.747 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Destroying Spring FrameworkServlet 'Remoting Servlet'
      23:40:20,384 INFO  [localhost-startStop-2][PluginPackageUtil:1007] Reading plugin package for shopping-web
      23:40:22,245 INFO  [localhost-startStop-2][PluginPackageUtil:1007] Reading plugin package for polls-web
      WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
      WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
      09-Feb-2016 23:40:27.426 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
      09-Feb-2016 23:40:28.049 INFO [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.springframework.web.context.ContextCleanupListener]. 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 [org.springframework.web.context.ContextCleanupListener]. 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:1353)
              at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1341)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1206)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
              at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:145)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:163)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      
      09-Feb-2016 23:40:28.066 SEVERE [localhost-startStop-2] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class com.liferay.portal.spring.context.PortalContextLoaderListener
       java.lang.NoClassDefFoundError: org/springframework/web/context/ContextCleanupListener
              at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:145)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:163)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424)
              at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [org.springframework.web.context.ContextCleanupListener]. 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.checkStateForClassLoading(WebappClassLoaderBase.java:1343)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1206)
              at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
              ... 11 more
      Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.springframework.web.context.ContextCleanupListener]. 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:1353)
              at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1341)
              ... 13 more
      
      09-Feb-2016 23:40:28.121 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Framework Event Dispatcher: Equinox Container: a00541a6-84cf-0015-1764-9b78894c9c8a] 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.Object.wait(Object.java:503)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
      09-Feb-2016 23:40:28.132 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Start Level: Equinox Container: a00541a6-84cf-0015-1764-9b78894c9c8a] 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.Object.wait(Object.java:503)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
      09-Feb-2016 23:40:28.198 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.common.inject.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@179fad46]) 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.
      09-Feb-2016 23:40:28.207 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.218 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.232 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.245 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.259 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.273 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.284 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.298 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.312 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.326 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.341 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.351 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.353 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.366 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.379 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.392 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.406 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.twitter.jsr166e.Striped64.ThreadHashCode] (value [[email protected]]) and a value of type [com.twitter.jsr166e.Striped64.HashCode] (value [[email protected]]) 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.
      09-Feb-2016 23:40:28.417 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [org.elasticsearch.index.mapper.core.NumberFieldMapper$CustomNumericField$4] (value [org.elastic[email protected]7428dac7]) and a value of type [org.apache.lucene.analysis.NumericTokenStream] (value [NumericTokenStream(precisionStep=16 valueSize=64 shift=64)]) 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.
      09-Feb-2016 23:40:28.447 INFO [Thread-29] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:40:28.482 INFO [Thread-29] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
      09-Feb-2016 23:40:28.580 INFO [Thread-29] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:40:28.583 INFO [Thread-29] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
      Terminate batch job (Y/N)? Y
      

      Shutdown errors after restart

      09-Feb-2016 23:04:53.093 INFO [Thread-30] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:04:53.151 INFO [Thread-30] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]
      09-Feb-2016 23:04:53.205 INFO [Thread-30] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
      23:05:04,704 INFO  [localhost-startStop-2][PortletHotDeployListener:463] Unregistering portlets for shopping-web
      23:05:04,940 INFO  [localhost-startStop-2][PortletHotDeployListener:502] 2 portlets for shopping-web were unregistered
      09-Feb-2016 23:05:04.944 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
      23:05:04,948 INFO  [localhost-startStop-2][PluginPackageUtil:1007] Reading plugin package for shopping-web
      23:05:06,388 INFO  [localhost-startStop-2][PortletHotDeployListener:463] Unregistering portlets for polls-web
      23:05:06,419 INFO  [localhost-startStop-2][PortletHotDeployListener:502] 2 portlets for polls-web were unregistered
      09-Feb-2016 23:05:06.425 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
      23:05:06,429 INFO  [localhost-startStop-2][PluginPackageUtil:1007] Reading plugin package for polls-web
      WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
      WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
      09-Feb-2016 23:05:15.586 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Destroying Spring FrameworkServlet 'Remoting Servlet'
      09-Feb-2016 23:05:15.648 INFO [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
      23:05:16,165 INFO  [Framework stop][node:282] [Jacob "Jake" Fury] stopping ...
      23:05:16,187 INFO  [Framework stop][node:312] [Jacob "Jake" Fury] stopped
      23:05:16,187 INFO  [Framework stop][node:330] [Jacob "Jake" Fury] closing ...
      23:05:16,202 INFO  [Framework stop][node:408] [Jacob "Jake" Fury] closed
      09-Feb-2016 23:05:16.218 INFO [Framework stop] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org/eclipse/osgi/internal/messages/ExternalMessages_en_US.properties]. 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 [org/eclipse/osgi/internal/messages/ExternalMessages_en_US.properties]. 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:1353)
              at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1029)
              at java.lang.ClassLoader.getResource(ClassLoader.java:1088)
              at com.liferay.portal.module.framework.ModuleFrameworkClassLoader.getResource(ModuleFrameworkClassLoader.java:75)
              at java.net.URLClassLoader.getResourceAsStream(URLClassLoader.java:232)
              at org.eclipse.osgi.util.NLS.load(NLS.java:322)
              at org.eclipse.osgi.util.NLS.initializeMessages(NLS.java:143)
              at org.eclipse.osgi.internal.messages.Msg.<clinit>(Msg.java:68)
              at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:206)
              at com.liferay.portal.init.servlet.filter.InitFilterTracker.deactivate(InitFilterTracker.java:54)
              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.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)
              at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)
              at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)
              at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)
              at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:342)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:157)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:783)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:757)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:550)
              at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.disposeComponents(ConfigurableComponentHolder.java:725)
              at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:530)
              at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:414)
              at org.apache.felix.scr.impl.Activator.access$300(Activator.java:53)
              at org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:273)
              at org.apache.felix.utils.extender.AbstractExtender$2.run(AbstractExtender.java:290)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.felix.utils.extender.AbstractExtender.destroyExtension(AbstractExtender.java:312)
              at org.apache.felix.utils.extender.AbstractExtender.stop(AbstractExtender.java:125)
              at org.apache.felix.scr.impl.Activator.stop(Activator.java:179)
              at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830)
              at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:965)
              at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:333)
              at org.eclipse.osgi.container.Module.doStop(Module.java:621)
              at org.eclipse.osgi.container.Module.stop(Module.java:483)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1623)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1542)
              at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:248)
              at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:141)
              at org.eclipse.osgi.container.Module.doStop(Module.java:621)
              at org.eclipse.osgi.container.Module.stop(Module.java:483)
              at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:186)
              at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:159)
              at java.lang.Thread.run(Thread.java:745)
      
      09-Feb-2016 23:05:45.933 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Framework Event Dispatcher: Equinox Container: f0924ef3-7ecf-0015-1988-9759d6845d92] 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.Object.wait(Object.java:502)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
      09-Feb-2016 23:05:45.965 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Start Level: Equinox Container: f0924ef3-7ecf-0015-1988-9759d6845d92] 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.Object.wait(Object.java:502)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
       org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:336)
      09-Feb-2016 23:05:45.986 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@4e386a6c]) 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.
      09-Feb-2016 23:05:46.033 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@5abf5147]) 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.
      09-Feb-2016 23:05:46.086 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@67420eda]) 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.
      09-Feb-2016 23:05:46.118 SEVERE [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ROOT] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [[email protected]]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@35685490]) 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.
      09-Feb-2016 23:05:46.183 INFO [Thread-30] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:05:46.270 INFO [Thread-30] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
      09-Feb-2016 23:05:46.367 INFO [Thread-30] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
      09-Feb-2016 23:05:46.371 INFO [Thread-30] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
      

      Reproduced on:
      Tomcat 8.0.30 + PostgreSQL 9.3 + JDK 1.7.0.75
      Portal master GIT ID: e4d957b5e8150c026a8fdbf21b47d090aed23295
      Portal B7

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              patricia.perez Patricia Perez
              Reporter:
              patricia.perez Patricia Perez
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 42 weeks, 6 days ago

                  Packages

                  Version Package