Could not find any valid decoders for license string
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
Bamboo fails to start up and the following error appears in the logs
2016-02-08 15:19:04,543 FATAL [localhost-startStop-1] [BootstrapLoaderListener] An error was encountered while bootstrapping Bamboo (see below):
Could not find any valid decoders in [com.atlassian.extras.decoder.v2.Version2LicenseDecoder@4261f7d9, com.atlassian.extras.decoder.v1.Version1LicenseDecoder@7d51e7ea] for license string < (license key) >
com.atlassian.extras.decoder.api.LicenseDecoderNotFoundException: Could not find any valid decoders in [com.atlassian.extras.decoder.v2.Version2LicenseDecoder@4261f7d9, com.atlassian.extras.decoder.v1.Version1LicenseDecoder@7d51e7ea] for license string < (license key) >
at com.atlassian.extras.decoder.api.DelegatingLicenseDecoder.decode(DelegatingLicenseDecoder.java:47)
at com.atlassian.extras.core.DefaultLicenseManager.decodeLicense(DefaultLicenseManager.java:77)
at com.atlassian.extras.core.DefaultLicenseManager.getAtlassianLicense(DefaultLicenseManager.java:63)
at com.atlassian.extras.core.DefaultLicenseManager.getLicense(DefaultLicenseManager.java:46)
at com.atlassian.bamboo.license.BambooLicenseManagerImpl.getLicense(BambooLicenseManagerImpl.java:300)
at com.atlassian.bamboo.license.BambooLicenseManagerImpl.getLicense(BambooLicenseManagerImpl.java:52)
at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:307)
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:77)
at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:98)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
原因
A license key which was used has invalid format and could not be parsed by Bamboo. Most common mistakes are:
- copy-pasting only part of a license key
- blank spaces in the beginning or at the end of the license key
Check if the license key used is exactly the same as stated on my.atlassian.com.
回避策
If everything else is failing, access the <bamboo-home-directory>/bamboo.cfg.xml
file and try enclosing the license inside the following:
<property name="license.string"><![CDATA[yourlicensehere]]></property>
Note that this is not done via the Bamboo UI, you must access the bamboo.cfg.xml
file to apply this.
Please make sure that the formatting of the license key matches what is found in your my.atlassian.com account. This includes whitespaces and line breaks.