org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException

Atlassian JIRA | Bruno Rosa | 7 months ago
  1. 0

    h3. Summary It is not possible to secure the remote agents to connect to the Bamboo Server (using SSL) through the automatic keystore management feature. h3. Steps to Reproduce # Download & Install Bamboo 5.11.x. # Follow the [Securing your remote agents|https://confluence.atlassian.com/display/BAMBOO/Securing+your+remote+agents] documentation to use the *automatic keystore management* feature. # Install the remote agent. h3. Expected Results The automatic keystore management feature handles the SSL configuration and creates the following files: # The remote agent keystore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ks}}. # The remote agent truststore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ts}}. # The Bamboo server keystore at {{BAMBOO_HOME/xml-data/configuration/broker.ks}}. The remote agent is able to connect to the Bamboo server using SSL. h3. Actual Results The remote agent truststore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ts}} is *not* created and the installation fails with the following error message: {noformat} INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,572 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(ssl://192.168.10.80:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10' INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,574 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Broker URI: ssl://192.168.10.80:54663?wireFormat.maxInactivityDuration=300000 is valid. INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,670 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/Users/brosa/Documents/Atlassian/remote-agents/bamboo-5.11.1.1/home] INFO | jvm 2 | 2016/05/04 17:39:48 | 2016-05-04 17:39:48,050 WARN [AgentRunnerThread] [BambooActiveMQConnectionFactory] Unable to automatically manage SSL keys: INFO | jvm 2 | 2016/05/04 17:39:48 | org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.engineGenerateCertificate(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.toJavaCertificate(BambooActiveMQConnectionFactory.java:138) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.getBrokerCertificate(BambooActiveMQConnectionFactory.java:131) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.setupSsl(BambooActiveMQConnectionFactory.java:107) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.reflect.Method.invoke(Method.java:497) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:253) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:77) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.reflect.Method.invoke(Method.java:497) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:30) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.Thread.run(Thread.java:745) INFO | jvm 2 | 2016/05/04 17:39:48 | Caused by: java.io.IOException: DER length more than 4 bytes: 24 INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.readDERCertificate(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | ... 63 more {noformat} h3.Workaround The workaround is to switch back to using TCP instead of SSL until the problem is fixed. # Shut down your Bamboo server and agents. # Change the protocol of your *Broker URL* and *Broker client URL* in the *bamboo.cfg.xml* file to 'TCP'. Note, do not change the address of this URL. #* {noformat}<property name="bamboo.jms.broker.uri">tcp://myhost:myport</property> <property name="bamboo.jms.broker.client.uri">failover:(tcp://myhost:myport)</property> {noformat} # Start up the Bamboo server. # Start up the Bamboo agents.

    Atlassian JIRA | 7 months ago | Bruno Rosa
    org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException
  2. 0

    h3. Summary It is not possible to secure the remote agents to connect to the Bamboo Server (using SSL) through the automatic keystore management feature. h3. Steps to Reproduce # Download & Install Bamboo 5.11.x. # Follow the [Securing your remote agents|https://confluence.atlassian.com/display/BAMBOO/Securing+your+remote+agents] documentation to use the *automatic keystore management* feature. # Install the remote agent. h3. Expected Results The automatic keystore management feature handles the SSL configuration and creates the following files: # The remote agent keystore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ks}}. # The remote agent truststore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ts}}. # The Bamboo server keystore at {{BAMBOO_HOME/xml-data/configuration/broker.ks}}. The remote agent is able to connect to the Bamboo server using SSL. h3. Actual Results The remote agent truststore at {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ts}} is *not* created and the installation fails with the following error message: {noformat} INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,572 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Setting broker URL to 'failover:(ssl://192.168.10.80:54663?wireFormat.maxInactivityDuration=300000)?initialReconnectDelay=15000&maxReconnectAttempts=10' INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,574 INFO [AgentRunnerThread] [BambooActiveMQConnectionFactory] Broker URI: ssl://192.168.10.80:54663?wireFormat.maxInactivityDuration=300000 is valid. INFO | jvm 2 | 2016/05/04 17:39:47 | 2016-05-04 17:39:47,670 INFO [AgentRunnerThread] [RemoteAgentHomeLocatorForBootstrap] Using agent home located at [/Users/brosa/Documents/Atlassian/remote-agents/bamboo-5.11.1.1/home] INFO | jvm 2 | 2016/05/04 17:39:48 | 2016-05-04 17:39:48,050 WARN [AgentRunnerThread] [BambooActiveMQConnectionFactory] Unable to automatically manage SSL keys: INFO | jvm 2 | 2016/05/04 17:39:48 | org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.engineGenerateCertificate(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.toJavaCertificate(BambooActiveMQConnectionFactory.java:138) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.getBrokerCertificate(BambooActiveMQConnectionFactory.java:131) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.setupSsl(BambooActiveMQConnectionFactory.java:107) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.reflect.Method.invoke(Method.java:497) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:253) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:77) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) INFO | jvm 2 | 2016/05/04 17:39:48 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.reflect.Method.invoke(Method.java:497) INFO | jvm 2 | 2016/05/04 17:39:48 | at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:30) INFO | jvm 2 | 2016/05/04 17:39:48 | at java.lang.Thread.run(Thread.java:745) INFO | jvm 2 | 2016/05/04 17:39:48 | Caused by: java.io.IOException: DER length more than 4 bytes: 24 INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.readDERCertificate(Unknown Source) INFO | jvm 2 | 2016/05/04 17:39:48 | ... 63 more {noformat} h3. Workarounds h4. Workaround A: Upgrade + remote agents already connected via SSL Use this workaround if your goal is to upgrade to an affected version (e.g. 5.10.3 to 5.12.2.1) and you already have a remote agent connected to the Bamboo server using SSL. # Install the remote agent but note that this bug will prevent it from connecting. Refer to the [Bamboo remote agent installation guide|https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide] for details. # Stop the remote agent. # Copy the keys (.ks & .ts) from a *working* remote agent to the newly installed agent. You'll find the keys here: ** {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ks}} ** {{BAMBOO_AGENT_HOME/xml-data/configuration/jmsclient.ts}} # Start the remote agent. h4. Workaround B: Add secure remote agents for the first time Use this workaround if you are already running the affected version and for the first time you need to set up a secure remote agent. # Follow the instructions to create certificates manually. Refer to instructions on [How to secure your remote agent (Bamboo Server)|https://confluence.atlassian.com/bamkb/how-to-secure-your-remote-agent-bamboo-server-757465762.html] for details. # Add the newly created certificates to the Java truststore ({{cacerts}} is the default truststore). For example, this is how to import the manually created certificate "bamboo.secure.server.crt" into the Java truststore using Linux: {code:java} sudo keytool -import -trustcacerts -file /opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/configuration/bamboo.secure.server.crt -alias "bamboo.secure.server" -keystore $JAVA_HOME/jre/lib/security/cacerts {code} # Configure both the Bamboo server and the agent(s) to not use the automatic certificates but the manually created ones instead by passing in the {{-Dbamboo.manage.jms.ssl=false}} JVM parameter on startup: ** Bamboo server {code:java|title=<bamboo-install>/bin/setenv.sh} JVM_SUPPORT_RECOMMENDED_ARGS="-Dbamboo.manage.jms.ssl=false -Djavax.net.ssl.keyStore=/opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/configuration/bamboo.secure.server.ks -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit" {code} ** Bamboo remote agent(s) {code:java|title=<bamboo-agent-home>/conf/wrapper.conf} # The Bamboo Agent home configuration file wrapper.java.additional.1=-Dbamboo.home=/opt/atlassian/agent/atlassian-bamboo-5.12.2.1 wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false wrapper.java.additional.3=-Dbamboo.manage.jms.ssl=false wrapper.java.additional.4=-Djavax.net.ssl.keyStore=/opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/configuration/bamboo.secure.client.ks wrapper.java.additional.5=-Djavax.net.ssl.keyStorePassword=changeit wrapper.java.additional.6=-Djavax.net.ssl.trustStore=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/lib/security/cacerts #wrapper.java.additional.3=-Dlog4j.configuration= #wrapper.java.additional.3=-agentlib:yjpagent # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=com.atlassian.bamboo.agent.bootstrap.AgentBootstrap wrapper.app.parameter.2=https://BAMBOO_BASE_URL/agentServer wrapper.app.parameter.3= {code} # Start the Bamboo server. # Start the remote agents. h4. Scenario C: Revert to use TCP instead of SSL until this issue is fixed. Use this workaround if securing your remote agents isn't required at this time. # Shut down the Bamboo server. # Shut down the agent(s). # Change the protocol of your *Broker URL* and *Broker client URL* in the {{bamboo.cfg.xml}} file to 'TCP'. _Do not_ change the address of this URL. For example, a final solution: {noformat} <property name="bamboo.jms.broker.uri">tcp://0.0.0.0:myport</property> <property name="bamboo.jms.broker.client.uri">failover:(tcp://myhost:myport)</property> {noformat} # Start up the Bamboo server. # Start up the Bamboo agent(s).

    Atlassian JIRA | 7 months ago | Bruno Rosa
    org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException
  3. 0

    Failed to read PKIOperation message from MacOS

    GitHub | 2 years ago | dveyarangi
    java.io.IOException: corrupted stream - out of bounds length found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PKIOperation - IOException - Mac OSX 10.10.3

    GitHub | 2 years ago | rajeshkarthik
    javax.servlet.ServletException: org.bouncycastle.cms.CMSException: IOException reading content.
  6. 0

    Bouncy Castle - Dev - Problem parsing signed MDN

    nabble.com | 1 year ago
    org.bouncycastle.cms.CMSException: IOException reading content.

    1 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.io.IOException

      DER length more than 4 bytes: 24

      at org.bouncycastle.asn1.ASN1InputStream.readLength()
    2. BouncyCastle
      ASN1InputStream.readObject
      1. org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source)
      2. org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source)
      3. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      4. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      5. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      6. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      7. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      8. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      9. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      10. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      11. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      12. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      13. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      14. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      15. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      16. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      17. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      18. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      19. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      20. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      21. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      22. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      23. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      24. org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source)
      25. org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source)
      26. org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source)
      27. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      27 frames
    3. Bouncy Castle Provider
      CertificateFactory.engineGenerateCertificate
      1. org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.readDERCertificate(Unknown Source)
      2. org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.engineGenerateCertificate(Unknown Source)
      2 frames
    4. Java RT
      CertificateFactory.generateCertificate
      1. java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
      1 frame
    5. com.atlassian.bamboo
      BambooActiveMQConnectionFactory.setupSsl
      1. com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.toJavaCertificate(BambooActiveMQConnectionFactory.java:138)
      2. com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.getBrokerCertificate(BambooActiveMQConnectionFactory.java:131)
      3. com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.setupSsl(BambooActiveMQConnectionFactory.java:107)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
      2. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
      3. org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
      8. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
      9. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
      10. org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
      11. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
      12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
      13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
      14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
      15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
      16. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
      17. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
      18. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
      19. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      20. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      21. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
      22. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456)
      23. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197)
      24. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
      25. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
      26. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
      27. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
      28. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
      29. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      30. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
      31. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
      32. org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646)
      33. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
      34. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
      35. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
      36. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
      37. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
      38. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
      39. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
      40. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
      41. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      42. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
      42 frames
    8. Spring Context
      ClassPathXmlApplicationContext.<init>
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
      3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
      4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
      4 frames
    9. com.atlassian.bamboo
      RemoteAgent.start
      1. com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:253)
      2. com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:77)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    11. com.atlassian.bamboo
      AgentRunner.run
      1. com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:30)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame