I am not sure the issue is related to threadlocals. Previous TomEE snapshots (pre AMQ 5.9.0) would not show the same symptoms when deploying the same war. I am turning up the logging to see if that gives me any more details. One thing I have noticed it that it appears that the TransportDisposedIOException is for the next peer, so vm://localhost#0 has an exception for vm://localhost#1.
Trevor Stevens [email protected] On Nov 8, 2013, at 11:27 AM, Howard W. Smith, Jr. <[email protected]> wrote: > responses below... > > On Fri, Nov 8, 2013 at 11:11 AM, Trevor Stevens <[email protected]> wrote: > >> Since AMQ 5.9.0 was released and updated within the TomEE snapshots I have >> begun getting exceptions on shutdown. I am not sure if this is ActiveMQ >> related or TomEE but I am going to start here. Is this just verbose logging >> and safe to ignore? I have attached part of the shutdown log below. > > > interesting, thanks for sharing/posting. I was wondering when AMQ 5.9.0 > would be added to TomEE+ 1.6.0 snapshots, and now because of your mail, I > see AMQ 5.9.0 in my log files too, since I am using tomee+ 1.6.0 snapshot > (build date 2013 Oct 29). > > anyway, i am not seeing the same exception that you are seeing, maybe > because I have code that removes threadlocals when i stop/undeploy my app > (via my CDI @ApplicationScoped @PreDestroy method). > > <snip> > Nov 08, 2013 10:13:58 AM pf.ThreadLocalImmolater immolate > INFO: immolated 94 values in ThreadLocals > > Nov 08, 2013 10:13:58 AM pf.ApplicationScopeBean destroy > INFO: END > </snip> > > i usually expect/experience the following: > > Nov 08, 2013 10:13:58 AM org.apache.activemq.ra.ActiveMQEndpointWorker stop > INFO: Stopping > Nov 08, 2013 10:13:58 AM org.apache.activemq.ra.ActiveMQEndpointWorker stop > INFO: Stopping > Nov 08, 2013 10:13:59 AM org.apache.catalina.loader.WebappClassLoader > clearReferencesThreads > SEVERE: The web application [/mcmsweb] appears to have started a thread > named [PoolIdleReleaseTimer] but has failed to stop it. This is very likely > to create a memory leak. > Nov 08, 2013 10:13:59 AM org.apache.catalina.loader.WebappClassLoader > clearReferencesThreads > SEVERE: The web application [/mcmsweb] appears to have started a thread > named [ActiveMQ VMTransport: vm://localhost#4-1] but has failed to stop it. > This is very likely to create a memory leak. > Nov 08, 2013 10:13:59 AM org.apache.catalina.loader.WebappClassLoader > clearReferencesThreads > SEVERE: The web application [/mcmsweb] appears to have started a thread > named [ActiveMQ VMTransport: vm://localhost#4-2] but has failed to stop it. > This is very likely to create a memory leak. > Nov 08, 2013 10:14:00 AM org.apache.coyote.AbstractProtocol stop > INFO: Stopping ProtocolHandler ["http-nio-8080"] > Nov 08, 2013 10:14:00 AM org.apache.coyote.AbstractProtocol stop > INFO: Stopping ProtocolHandler ["ajp-bio-8009"] > Nov 08, 2013 10:14:00 AM org.apache.openejb.server.SimpleServiceManager stop > INFO: Stopping server services > Nov 08, 2013 10:14:00 AM org.quartz.core.QuartzScheduler shutdown > INFO: Scheduler OpenEJB-TimerService-Scheduler_$_OpenEJB shutting down. > Nov 08, 2013 10:14:00 AM org.quartz.core.QuartzScheduler standby > INFO: Scheduler OpenEJB-TimerService-Scheduler_$_OpenEJB paused. > Nov 08, 2013 10:14:00 AM org.quartz.core.QuartzScheduler unregisterJMX > INFO: Scheduler unregistered from name > 'quartz:type=QuartzScheduler,name=OpenEJB-TimerService-Scheduler,instance=OpenEJB' > in the local MBeanServer. > Nov 08, 2013 10:14:00 AM org.quartz.core.QuartzScheduler shutdown > INFO: Scheduler OpenEJB-TimerService-Scheduler_$_OpenEJB shutdown complete. > Nov 08, 2013 10:14:00 AM org.apache.openejb.assembler.classic.Assembler > destroyApplication > INFO: Undeploying app: openejb > Nov 08, 2013 10:14:00 AM org.apache.openejb.assembler.classic.Assembler > destroyResource > INFO: Closing DataSource: mcmsJta > Nov 08, 2013 10:14:00 AM org.apache.openejb.assembler.classic.Assembler > destroyResource > INFO: Closing DataSource: mcmsJtaNonJta > Nov 08, 2013 10:14:00 AM org.apache.openejb.assembler.classic.Assembler > destroyResource > INFO: Stopping ResourceAdapter: Default JMS Resource Adapter > Nov 08, 2013 10:14:00 AM > org.apache.openejb.resource.activemq.ActiveMQResourceAdapter stop > INFO: Stopping ActiveMQ > Nov 08, 2013 10:14:01 AM > org.apache.openejb.resource.activemq.ActiveMQResourceAdapter stopImpl > INFO: Stopped ActiveMQ broker > Nov 08, 2013 10:14:01 AM org.apache.openejb.assembler.classic.Assembler > destroyResource > INFO: Closing DataSource: Default Unmanaged JDBC Database > Nov 08, 2013 10:14:01 AM org.apache.coyote.AbstractProtocol destroy > INFO: Destroying ProtocolHandler ["http-nio-8080"] > Nov 08, 2013 10:14:01 AM org.apache.coyote.AbstractProtocol destroy > INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
