http://jira.hyperic.com/browse/HHQ-4310
Steps:
1.Stopped hq-server
2.Started hq-server in a few seconds
Found this exception right after server start:
server start (after stop)
2010-09-16 16:38:43,322 ERROR [pool-8-thread-1] [org.apache.activemq.ActiveMQMessageConsumer@679] ID:pserv01-42208-1284594449657-2:0:4:1 failed to delivered acknowledgements
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1227)
at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1219)
at org.apache.activemq.ActiveMQSession.asyncSendPacket(ActiveMQSession.java:1799)
at org.apache.activemq.ActiveMQSession.sendAck(ActiveMQSession.java:1964)
at org.apache.activemq.ActiveMQMessageConsumer$4.run(ActiveMQMessageConsumer.java:677)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed.
at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:89)
at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1225)
... 10 more
2010-09-16 16:38:43,366 INFO [Thread-18] [com.hyperic.hq.measurement.server.session.BatchAggregateDataInserter@219] No unprocessed metrics to save to disk
2010-09-16 16:38:43,411 INFO [Thread-18] [com.hyperic.hq.measurement.server.session.BatchAggregateDataInserter@219] No unprocessed metrics to save to disk
2010-09-16 16:38:43,429 INFO [Thread-18] [org.quartz.core.QuartzScheduler@581] Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0_$NON_CLUSTERED shutting down.
2010-09-16 16:38:43,430 INFO [Thread-18] [org.quartz.core.QuartzScheduler@507] Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0$NON_CLUSTERED paused.
2010-09-16 16:38:43,430 INFO [Thread-18] [org.quartz.core.QuartzScheduler@632] Scheduler org.springframework.scheduling.quartz.SchedulerFactoryBean#0$_NON_CLUSTERED shutdown complete.
2010-09-16 16:38:43,456 INFO [Thread-18] [org.hyperic.hq.events.FileAlertConditionEvaluatorStateRepository@148] Successfully saved alert condition evaluator states to /sw/hyperic/HQ_mysql/4.5/105/server-4.5.0.BUILD-SNAPSHOT-EE/hq-engine/hq-server/ExecutionStrategyStates.dat
2010-09-16 16:38:43,493 INFO [Thread-18] [org.hyperic.hibernate.JmxExposingLocalSessionFactoryBean@246] Closing Hibernate SessionFactory
2010-09-16 16:38:43,493 INFO [Thread-18] [org.hibernate.impl.SessionFactoryImpl@769] closing
2010-09-16 16:38:45,258 WARN [pool-4-thread-1] [org.hyperic.hq.stats.ConcurrentStatsWriter@267] The CacheManager is not alive.
java.lang.IllegalStateException: The CacheManager is not alive.
at net.sf.ehcache.CacheManager.checkStatus(CacheManager.java:831)
at net.sf.ehcache.CacheManager.getCacheNames(CacheManager.java:823)
at org.hyperic.hq.stats.ConcurrentStatsCollector$1.getVal(ConcurrentStatsCollector.java:179)
at org.hyperic.hq.stats.ConcurrentStatsWriter$StatsWriter.getCSVBuf(ConcurrentStatsWriter.java:302)
at org.hyperic.hq.stats.ConcurrentStatsWriter$StatsWriter.run(ConcurrentStatsWriter.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Marking as regression since I've not seen this exception before (4.3 or 4.5)
Anonymous