• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • None
    • None
    • BDAC
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      2010-06-22 01:46:50,692 INFO [Thread-1] [RemoteAgent] Starting Bamboo Remote Agent...
      2010-06-22 01:46:50,693 INFO [Thread-1] [RemoteAgent] Starting application context...
      2010-06-22 01:46:54,418 INFO [Thread-1] [RemoteAgentHomeLocator] bamboo.home set to user-specified location: "/opt/bamboo-agent/" (Modify using -Dbamboo.home=<directory> on the command line.)
      2010-06-22 01:46:54,736 INFO [Thread-1] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://172.16.3.126:54663?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&initialReconnectDelay=15000'
      2010-06-22 01:46:55,293 INFO [Thread-1] [BambooJmsProxyFactoryBean] Disabling message expiry
      2010-06-22 01:47:01,018 ERROR [ActiveMQ Task] [FailoverTransport] Failed to connect to transport after: 10 attempt(s)
      2010-06-22 01:47:01,025 WARN [Thread-1] [BambooJmsProxyFactoryBean] Exception when running afterPropertiesSet
      javax.jms.JMSException: Connection refused
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1284)
      	at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1368)
      	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:498)
      	at org.jencks.amqpool.ConnectionPool.start(ConnectionPool.java:74)
      	at org.jencks.amqpool.PooledConnection.start(PooledConnection.java:76)
      	at org.logicblaze.lingo.jms.JmsProducerConfig.createConnection(JmsProducerConfig.java:87)
      	at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:34)
      	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:148)
      	at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:58)
      	at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:20)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:525)
      	at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:436)
      	at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:402)
      	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
      	at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:726)
      	at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:116)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	... 1 more
      2010-06-22 01:47:01,046 FATAL [Thread-1] [RemoteAgent] Unable to connect to the server. Please ensure your path is correct and that remote agents are enabled.
      2010-06-22 01:47:01,049 FATAL [Thread-1] [AgentBootstrap] Exiting due to fatal exception.
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildAgentController' defined in class path resource [applicationContextRemoteAgent.xml]: Cannot resolve reference to bean 'capabilitySetManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'capabilitySetManager' defined in class path resource [applicationContextRemoteAgentJMS.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Exception when running afterPropertiesSet
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'capabilitySetManager' defined in class path resource [applicationContextRemoteAgentJMS.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Exception when running afterPropertiesSet
      Caused by: java.lang.RuntimeException: Exception when running afterPropertiesSet
      	at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.afterPropertiesSet(BambooJmsProxyFactoryBean.java:31)
      	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:148)
      	at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:58)
      	at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:20)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.jms.JMSException: Connection refused
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1284)
      	at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1368)
      	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:498)
      	at org.jencks.amqpool.ConnectionPool.start(ConnectionPool.java:74)
      	at org.jencks.amqpool.PooledConnection.start(PooledConnection.java:76)
      	at org.logicblaze.lingo.jms.JmsProducerConfig.createConnection(JmsProducerConfig.java:87)
      	at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:34)
      	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)
      	... 26 more
      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:525)
      	at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:436)
      	at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:402)
      	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
      	at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:726)
      	at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:116)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	... 1 more
      2010-06-22 01:47:01,697 INFO [Thread-1] [RemoteAgent] Starting Bamboo Remote Agent...
      2010-06-22 01:47:01,698 INFO [Thread-1] [RemoteAgent] Starting application context...
      2010-06-22 01:47:05,309 INFO [Thread-1] [RemoteAgentHomeLocator] bamboo.home set to user-specified location: "/opt/bamboo-agent/" (Modify using -Dbamboo.home=<directory> on the command line.)
      2010-06-22 01:47:05,591 INFO [Thread-1] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(tcp://172.16.3.126:54663?wireFormat.maxInactivityDuration=300000)?maxReconnectAttempts=10&initialReconnectDelay=15000'
      2010-06-22 01:47:06,179 INFO [Thread-1] [BambooJmsProxyFactoryBean] Disabling message expiry
      2010-06-22 01:47:11,955 ERROR [ActiveMQ Task] [FailoverTransport] Failed to connect to transport after: 10 attempt(s)
      2010-06-22 01:47:11,962 WARN [Thread-1] [BambooJmsProxyFactoryBean] Exception when running afterPropertiesSet
      javax.jms.JMSException: Connection refused
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1284)
      	at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1368)
      	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:498)
      	at org.jencks.amqpool.ConnectionPool.start(ConnectionPool.java:74)
      	at org.jencks.amqpool.PooledConnection.start(PooledConnection.java:76)
      	at org.logicblaze.lingo.jms.JmsProducerConfig.createConnection(JmsProducerConfig.java:87)
      	at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:34)
      	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:148)
      	at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:58)
      	at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:20)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:525)
      	at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:436)
      	at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:402)
      	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
      	at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:726)
      	at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:116)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	... 1 more
      2010-06-22 01:47:11,986 FATAL [Thread-1] [RemoteAgent] Unable to connect to the server. Please ensure your path is correct and that remote agents are enabled.
      2010-06-22 01:47:11,989 FATAL [Thread-1] [AgentBootstrap] Exiting due to fatal exception.
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildAgentController' defined in class path resource [applicationContextRemoteAgent.xml]: Cannot resolve reference to bean 'capabilitySetManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'capabilitySetManager' defined in class path resource [applicationContextRemoteAgentJMS.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Exception when running afterPropertiesSet
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'capabilitySetManager' defined in class path resource [applicationContextRemoteAgentJMS.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Exception when running afterPropertiesSet
      Caused by: java.lang.RuntimeException: Exception when running afterPropertiesSet
      	at com.atlassian.bamboo.lingo.BambooJmsProxyFactoryBean.afterPropertiesSet(BambooJmsProxyFactoryBean.java:31)
      	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:148)
      	at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:58)
      	at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:20)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.jms.JMSException: Connection refused
      	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
      	at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1284)
      	at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1368)
      	at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:498)
      	at org.jencks.amqpool.ConnectionPool.start(ConnectionPool.java:74)
      	at org.jencks.amqpool.PooledConnection.start(PooledConnection.java:76)
      	at org.logicblaze.lingo.jms.JmsProducerConfig.createConnection(JmsProducerConfig.java:87)
      	at com.atlassian.bamboo.lingo.BambooMultiplexingRequestor.newInstance(BambooMultiplexingRequestor.java:34)
      	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)
      	... 26 more
      Caused by: java.net.ConnectException: Connection refused
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:525)
      	at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:436)
      	at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:402)
      	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:57)
      	at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
      	at org.apache.activemq.transport.failover.FailoverTransport.doReconnect(FailoverTransport.java:726)
      	at org.apache.activemq.transport.failover.FailoverTransport$2.iterate(FailoverTransport.java:116)
      	at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
      	at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	... 1 more
      

            [BAM-6120] Remote agent will not startup

            Thanks mate!

            James Dumay added a comment - Thanks mate!

            Przemek Bruski added a comment - Documentation here: https://extranet.atlassian.com/display/BAMBOO/Upgrade+of+ActiveMQ+in+Bamboo+3.0

            James Dumay added a comment - - edited

            Some clarification before we can go to dogfood for M1 relating to this issue.

            IT require a clear guide to what the scope of the changes are to fix the problem.

            This guide should include:

            1. The scope of the differences between Bamboo 2.6 final and 3.0-m1 regarding this issue
            2. What configuration (broker urls, base urls, bamboo.cfg.xml changes on the agent or server, etc) that may need to be changed or checked in order for the upgrade to be successful.
            3. Any possible pitfalls or issues that the Systems Engineer may encounter when they attempt to upgrade the internal installs

            The form of this guide should be a short page on the Bamboo EAC space. Don't worry about making it customer level docs - this can be quick and dirty so long as it addresses the points above accurately and clearly.

            Once this is completed ADM-8207 should be updated with a link to the new page a comment giving the go ahead of the upgrades and transition the issue to "Action Needed".

            James Dumay added a comment - - edited Some clarification before we can go to dogfood for M1 relating to this issue. IT require a clear guide to what the scope of the changes are to fix the problem. This guide should include: The scope of the differences between Bamboo 2.6 final and 3.0-m1 regarding this issue What configuration (broker urls, base urls, bamboo.cfg.xml changes on the agent or server, etc) that may need to be changed or checked in order for the upgrade to be successful. Any possible pitfalls or issues that the Systems Engineer may encounter when they attempt to upgrade the internal installs The form of this guide should be a short page on the Bamboo EAC space. Don't worry about making it customer level docs - this can be quick and dirty so long as it addresses the points above accurately and clearly. Once this is completed ADM-8207 should be updated with a link to the new page a comment giving the go ahead of the upgrades and transition the issue to "Action Needed".

            In this case no, since we use multiple interfaces anyway.
            If only one interface was used, it depends:

            • 172.16.3.126 would work
            • atlassian17.managed.contegix.com would work only with locally started remote agents if: the IP is the same as localhost or useLocalHost is set to false. It would not work with "remote remote" agents. This is because atlassian17.managed.contegix.com is locally resolved to loopback IP.

            I think it's safe to say that configuration with host name pointing to an IP other than the localhost IP and other than the external IP will be a very popular one (if not the most popular in fact, since some popular distros have it as default).

            Looking at how Linux distros handle such cases: X server is started with nolisten parameter, databases/MTAs by default bind to localhost interface and require administrator intervention to enable external interfaces. So, I would not recommend binding to 0.0.0.0 by default, this does not seem to be standard practice.

            We should either stick either to what we have now (host name), or maybe even switch to explicit 'localhost' default binding. When enabling remote agents, the user should see a big fat warning about changing the broker address and it's security implications.

            But yeah, that could mean some support cases.

            Przemek Bruski added a comment - In this case no, since we use multiple interfaces anyway. If only one interface was used, it depends: 172.16.3.126 would work atlassian17.managed.contegix.com would work only with locally started remote agents if: the IP is the same as localhost or useLocalHost is set to false. It would not work with "remote remote" agents. This is because atlassian17.managed.contegix.com is locally resolved to loopback IP. I think it's safe to say that configuration with host name pointing to an IP other than the localhost IP and other than the external IP will be a very popular one (if not the most popular in fact, since some popular distros have it as default). Looking at how Linux distros handle such cases: X server is started with nolisten parameter, databases/MTAs by default bind to localhost interface and require administrator intervention to enable external interfaces. So, I would not recommend binding to 0.0.0.0 by default, this does not seem to be standard practice. We should either stick either to what we have now (host name), or maybe even switch to explicit 'localhost' default binding. When enabling remote agents, the user should see a big fat warning about changing the broker address and it's security implications. But yeah, that could mean some support cases.

            MarkC added a comment -

            Would the problem have also been fixed if we had the bamboo.jms.broker.client.uri & bamboo.jms.broker.uri to point to the exactly the same host (172.16.3.126 or atlassian17.managed.contegix.com). Would that mean the broker binds to the same address?

            MarkC added a comment - Would the problem have also been fixed if we had the bamboo.jms.broker.client.uri & bamboo.jms.broker.uri to point to the exactly the same host (172.16.3.126 or atlassian17.managed.contegix.com). Would that mean the broker binds to the same address?

            I think your right, in /etc/hosts atl17 will point to the loopback,
            however even if it was not set and defaulted to the public address
            this would still be an issue as we use both the public and private
            interface to connect to the server depending on the location of the
            agent.

            I would say, providing it's documented in the docs and the ui,
            defaulting to the loopback is the safest and requires a deliberate
            choice o change.

            On Tuesday, June 22, 2010, Przemek Bruski [Atlassian] (JIRA)

            David Cheney (Inactive) added a comment - I think your right, in /etc/hosts atl17 will point to the loopback, however even if it was not set and defaulted to the public address this would still be an issue as we use both the public and private interface to connect to the server depending on the location of the agent. I would say, providing it's documented in the docs and the ui, defaulting to the loopback is the safest and requires a deliberate choice o change. On Tuesday, June 22, 2010, Przemek Bruski [Atlassian] (JIRA)

            I assume atlassian17.managed.contegix.com points to localhost?

            That leaves the question: what should be the default in next Bamboo release? Defaulting to 0.0.0.0 is a security risk.
            On the other hand, not changing the value may stop remote agents from working. IMHO, It's better to have a safe default (which means leaving broker.uri as it is) than an unsafe quiet change... There should be some upgrade documentation for this and an additional warning when you enable remote agents in Bamboo.
            I know that the unsafe approach was default with previous AMQ version, but that should not be an argument.
            Opinions?

            Przemek Bruski added a comment - I assume atlassian17.managed.contegix.com points to localhost? That leaves the question: what should be the default in next Bamboo release? Defaulting to 0.0.0.0 is a security risk. On the other hand, not changing the value may stop remote agents from working. IMHO, It's better to have a safe default (which means leaving broker.uri as it is) than an unsafe quiet change... There should be some upgrade documentation for this and an additional warning when you enable remote agents in Bamboo. I know that the unsafe approach was default with previous AMQ version, but that should not be an argument. Opinions?

            Yup - that fixed it.

            On Tue, Jun 22, 2010 at 8:39 PM, David Cheney [Atlassian] (JIRA)

            David Cheney (Inactive) added a comment - Yup - that fixed it. On Tue, Jun 22, 2010 at 8:39 PM, David Cheney [Atlassian] (JIRA)

            [dcheney@atlassian17 ~]$ netstat -ln | grep 54663
            tcp        0      0 ::ffff:127.0.0.1:54663      :::*
                 LISTEN
            

            ^ well, there's your problem O_o

            On Tue, Jun 22, 2010 at 7:01 PM, Przemek Bruski [Atlassian] (JIRA)

            David Cheney (Inactive) added a comment - [dcheney@atlassian17 ~]$ netstat -ln | grep 54663 tcp 0 0 ::ffff:127.0.0.1:54663 :::* LISTEN ^ well, there's your problem O_o On Tue, Jun 22, 2010 at 7:01 PM, Przemek Bruski [Atlassian] (JIRA)

            Can you do netstat -ln | grep 54663 on the server and attach the result? After that:

                <property name="bamboo.jms.broker.uri">tcp://0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property>
            

            And restart the server. This will go back to the behaviour ActiveMQ 5.2 had.
            Note this time it's the broker uri not the client uri.

            Przemek Bruski added a comment - Can you do netstat -ln | grep 54663 on the server and attach the result? After that: <property name= "bamboo.jms.broker.uri" >tcp: //0.0.0.0:54663?wireFormat.maxInactivityDuration=300000</property> And restart the server. This will go back to the behaviour ActiveMQ 5.2 had. Note this time it's the broker uri not the client uri.

              pbruski Przemek Bruski
              dcheney David Cheney (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: