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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Bruno Rosa,
  • 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).
    via by Bruno Rosa,
  • Bouncy Castle - Dev - Problem parsing signed MDN
    via by Unknown author,
  • Apple-Pay-Signature-Verification
    via GitHub by Cris464
    ,
    • org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory$ExCertificateException at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.engineGenerateCertificate(Unknown Source) at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339) at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.toJavaCertificate(BambooActiveMQConnectionFactory.java:138) at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.getBrokerCertificate(BambooActiveMQConnectionFactory.java:131) at com.atlassian.bamboo.v2.build.agent.BambooActiveMQConnectionFactory.setupSsl(BambooActiveMQConnectionFactory.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1545) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:646) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.initApplicationContext(RemoteAgent.java:253) at com.atlassian.bamboo.v2.build.agent.remote.RemoteAgent.start(RemoteAgent.java:77) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.bamboo.agent.bootstrap.AgentRunner.run(AgentRunner.java:30) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: DER length more than 4 bytes: 24 at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readLength(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildEncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildDEREncodableVector(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.buildObject(Unknown Source) at org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source) at org.bouncycastle.jcajce.provider.asymmetric.x509.CertificateFactory.readDERCertificate(Unknown Source) ... 63 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,