Unable to upgrade Bitbucket in Docker Image.

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

問題

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

診断

環境

  • Docker

原因

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. 

ソリューション

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

最終更新日 2017 年 9 月 13 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.