Unable to upgrade Bitbucket in Docker Image.

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Attempting to upgrade Bitbucket in a Docker image and your receive the following error:

ERROR [ThreadPoolAsyncTaskExecutor::Thread 1]  c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'com.atlassian.support.stp'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'action-factory' defined in URL [bundle://117.0:0/META-INF/spring/atlassian-plugins-components.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.support.tools.action.impl.DefaultSupportActionFactory]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Illegal version b11
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:279)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.lang.Thread.run(Thread.java:748)
	... 10 frames trimmed
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.support.tools.action.impl.DefaultSupportActionFactory]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Illegal version b11
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154)
	... 9 common frames omitted
Caused by: java.lang.IllegalArgumentException: Illegal version b11
	at com.atlassian.support.tools.spi.Version.of(Version.java:46)
	at com.atlassian.support.tools.action.impl.DefaultSupportActionFactory.<init>(DefaultSupportActionFactory.java:32)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
	... 9 common frames omitted

Diagnosis

Environment

  • Docker

Cause

The BUILD_VERSION in your Docker image is set as your Java container build variable and is being picked up by Bitbucket, which causes it to fail. 

Resolution

Change the variable name from BUILD_VERSION to JAVA_BUILD_VERSION or something similar for your Java variable.

Last modified on Sep 13, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.