java.lang.IllegalStateException: Timer already cancelled.

activemq-dev | Timothy Bish (JIRA) | 3 years ago
  1. 0

    [jira] [Closed] (AMQ-4805) IllegalStateException during thread.Scheduler.schedualPeriodically

    activemq-dev | 3 years ago | Timothy Bish (JIRA)
    java.lang.IllegalStateException: Timer already cancelled.
  2. 0

    [jira] [Closed] (AMQ-4805) IllegalStateException during thread.Scheduler.schedualPeriodically

    activemq-dev | 3 years ago | Timothy Bish (JIRA)
    java.lang.IllegalStateException: Timer already cancelled.
  3. 0

    ActiveMQ - User - ActiveMQ 5.5.0 broker crashing

    nabble.com | 9 months ago
    javax.jms.JMSException: Timer already cancelled.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code} 2011-11-14 11:32:23,117 WARN [Thread-1] [BambooJmsProxyFactoryBean] Exception when running afterPropertiesSet javax.jms.JMSException: Timer already cancelled. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1287) at org.apache.activemq.ActiveMQConnection.createTempDestination(ActiveMQConnection.java:1922) at org.apache.activemq.ActiveMQSession.createTemporaryQueue(ActiveMQSession.java:1330) at org.apache.activemq.pool.PooledSession.createTemporaryQueue(PooledSession.java:165) at org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.createTemporaryDestination(SingleThreadedRequestor.java:109) at org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.getReceiver(SingleThreadedRequestor.java:119) at org.logicblaze.lingo.jms.impl.MultiplexingRequestor.init(MultiplexingRequestor.java:86) at org.logicblaze.lingo.jms.impl.MultiplexingRequestor.<init>(MultiplexingRequestor.java:80) at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.<init>(BambooMultiplexingRequestor.java:51) at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:37) at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.createRequestor(BambooJmsProxyFactoryBean.java:38) at org.logicblaze.lingo.jms.JmsClientInterceptor.afterPropertiesSet(JmsClientInterceptor.java:114) at org.logicblaze.lingo.jms.JmsProxyFactoryBean.afterPropertiesSet(JmsProxyFactoryBean.java:44) at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.afterPropertiesSet(BambooJmsProxyFactoryBean.java:26) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:389) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:88) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:159) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:54) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:376) at java.util.Timer.schedule(Timer.java:244) at org.apache.activemq.thread.Scheduler.schedualPeriodically(Scheduler.java:49) at org.apache.activemq.broker.region.Queue.start(Queue.java:835) at org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:129) at org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:304) at org.apache.activemq.broker.region.RegionBroker.addDestinationInfo(RegionBroker.java:367) at org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:172) at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217) at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217) at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223) at org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:484) at org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:228) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202) {code} A restart of the Bamboo Server fixes the problem, however a *second restart* should not be necessary after the upgrade.

    Atlassian JIRA | 5 years ago | Renan Battaglin
    javax.jms.JMSException: Timer already cancelled.
  6. 0

    {code} 2011-11-14 11:32:23,117 WARN [Thread-1] [BambooJmsProxyFactoryBean] Exception when running afterPropertiesSet javax.jms.JMSException: Timer already cancelled. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1287) at org.apache.activemq.ActiveMQConnection.createTempDestination(ActiveMQConnection.java:1922) at org.apache.activemq.ActiveMQSession.createTemporaryQueue(ActiveMQSession.java:1330) at org.apache.activemq.pool.PooledSession.createTemporaryQueue(PooledSession.java:165) at org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.createTemporaryDestination(SingleThreadedRequestor.java:109) at org.logicblaze.lingo.jms.impl.SingleThreadedRequestor.getReceiver(SingleThreadedRequestor.java:119) at org.logicblaze.lingo.jms.impl.MultiplexingRequestor.init(MultiplexingRequestor.java:86) at org.logicblaze.lingo.jms.impl.MultiplexingRequestor.<init>(MultiplexingRequestor.java:80) at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.<init>(BambooMultiplexingRequestor.java:51) at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:37) at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.createRequestor(BambooJmsProxyFactoryBean.java:38) at org.logicblaze.lingo.jms.JmsClientInterceptor.afterPropertiesSet(JmsClientInterceptor.java:114) at org.logicblaze.lingo.jms.JmsProxyFactoryBean.afterPropertiesSet(JmsProxyFactoryBean.java:44) at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.afterPropertiesSet(BambooJmsProxyFactoryBean.java:26) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:389) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:88) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:159) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:54) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched(Timer.java:376) at java.util.Timer.schedule(Timer.java:244) at org.apache.activemq.thread.Scheduler.schedualPeriodically(Scheduler.java:49) at org.apache.activemq.broker.region.Queue.start(Queue.java:835) at org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:129) at org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:304) at org.apache.activemq.broker.region.RegionBroker.addDestinationInfo(RegionBroker.java:367) at org.apache.activemq.advisory.AdvisoryBroker.addDestinationInfo(AdvisoryBroker.java:172) at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217) at org.apache.activemq.broker.BrokerFilter.addDestinationInfo(BrokerFilter.java:217) at org.apache.activemq.broker.MutableBrokerFilter.addDestinationInfo(MutableBrokerFilter.java:223) at org.apache.activemq.broker.TransportConnection.processAddDestination(TransportConnection.java:484) at org.apache.activemq.command.DestinationInfo.visit(DestinationInfo.java:122) at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:311) at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:185) at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:69) at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113) at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:228) at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83) at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:220) at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:202) {code} A restart of the Bamboo Server fixes the problem, however a *second restart* should not be necessary after the upgrade.

    Atlassian JIRA | 5 years ago | Renan Battaglin
    javax.jms.JMSException: Timer already cancelled.

  1. eti22 2 times, last 3 weeks ago
  2. mauritius 4 times, last 6 days ago
  3. poroszd 2 times, last 3 months ago
  4. Stefan Braune 3 times, last 6 months ago
  5. dmitry 1 times, last 7 months ago
3 more registered users
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Timer already cancelled.

    at java.util.Timer.sched()
  2. Java RT
    Timer.schedule
    1. java.util.Timer.sched(Timer.java:397)[:1.7.0_25]
    2. java.util.Timer.schedule(Timer.java:248)[:1.7.0_25]
    2 frames
  3. ActiveMQ :: Core
    Scheduler.schedualPeriodically
    1. org.apache.activemq.thread.Scheduler.schedualPeriodically(Scheduler.java:50)[121:org.apache.activemq.activemq-core:5.7.0]
    1 frame
  4. ActiveMQ :: Broker
    TransportConnection.processAddProducer
    1. org.apache.activemq.broker.region.Topic.start(Topic.java:541)[121:org.apache.activemq.activemq-core:5.7.0]
    2. org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:143)[121:org.apache.activemq.activemq-core:5.7.0]
    3. org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:286)[121:org.apache.activemq.activemq-core:5.7.0]
    4. org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:145)[121:org.apache.activemq.activemq-core:5.7.0]
    5. org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:175)[121:org.apache.activemq.activemq-core:5.7.0]
    6. org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:145)[121:org.apache.activemq.activemq-core:5.7.0]
    7. org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:145)[121:org.apache.activemq.activemq-core:5.7.0]
    8. org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:151)[121:org.apache.activemq.activemq-core:5.7.0]
    9. org.apache.activemq.broker.region.RegionBroker.send(RegionBroker.java:481)[121:org.apache.activemq.activemq-core:5.7.0]
    10. org.apache.activemq.broker.jmx.ManagedRegionBroker.send(ManagedRegionBroker.java:311)[121:org.apache.activemq.activemq-core:5.7.0]
    11. org.apache.activemq.advisory.AdvisoryBroker.fireAdvisory(AdvisoryBroker.java:551)[121:org.apache.activemq.activemq-core:5.7.0]
    12. org.apache.activemq.advisory.AdvisoryBroker.fireProducerAdvisory(AdvisoryBroker.java:519)[121:org.apache.activemq.activemq-core:5.7.0]
    13. org.apache.activemq.advisory.AdvisoryBroker.fireProducerAdvisory(AdvisoryBroker.java:504)[121:org.apache.activemq.activemq-core:5.7.0]
    14. org.apache.activemq.advisory.AdvisoryBroker.addProducer(AdvisoryBroker.java:168)[121:org.apache.activemq.activemq-core:5.7.0]
    15. org.apache.activemq.broker.CompositeDestinationBroker.addProducer(CompositeDestinationBroker.java:56)[121:org.apache.activemq.activemq-core:5.7.0]
    16. org.apache.activemq.broker.BrokerFilter.addProducer(BrokerFilter.java:93)[121:org.apache.activemq.activemq-core:5.7.0]
    17. org.apache.activemq.broker.MutableBrokerFilter.addProducer(MutableBrokerFilter.java:99)[121:org.apache.activemq.activemq-core:5.7.0]
    18. org.apache.activemq.broker.TransportConnection.processAddProducer(TransportConnection.java:511)[121:org.apache.activemq.activemq-core:5.7.0]
    18 frames
  5. ActiveMQ :: Core
    ProducerInfo.visit
    1. org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:105)[121:org.apache.activemq.activemq-core:5.7.0]
    1 frame
  6. ActiveMQ :: Broker
    TransportConnection$1.onCommand
    1. org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)[121:org.apache.activemq.activemq-core:5.7.0]
    2. org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:152)[121:org.apache.activemq.activemq-core:5.7.0]
    2 frames
  7. AMQ HTTP
    TransportSupport.doConsume
    1. org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[121:org.apache.activemq.activemq-core:5.7.0]
    2. org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)[121:org.apache.activemq.activemq-core:5.7.0]
    3. org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:256)[121:org.apache.activemq.activemq-core:5.7.0]
    4. org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[121:org.apache.activemq.activemq-core:5.7.0]
    4 frames
  8. ActiveMQ :: Core
    TcpTransport.run
    1. org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:222)[121:org.apache.activemq.activemq-core:5.7.0]
    2. org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:204)[121:org.apache.activemq.activemq-core:5.7.0]
    2 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
    1 frame