Bamboo Data Center Specs scan fails with "The incoming YAML document exceeds the limit: 6291456 code points"

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

要約

When scanning a Specs project in Bamboo Data Center, the scan fails and the following error can be seen in the Specs execution logs:

The incoming YAML document exceeds the limit: 6291456 code points.

環境

The solution has been validated in Bamboo Data Center 9.2.17 but may be applicable to other versions.

診断

When the Specs scan fails, while reviewing the scan logs available in the Liked Repository page > Specs status > "View Error Logs", the following error is present:

com.atlassian.bamboo.exception.YamlValidationException: Could not parse yaml input: The incoming YAML document exceeds the limit: 6291456 code points.
java.lang.RuntimeException: com.atlassian.bamboo.exception.YamlValidationException: Could not parse yaml input: The incoming YAML document exceeds the limit: 6291456 code points.
	at com.google.common.base.Throwables.propagate(Throwables.java:249)
	at com.atlassian.bamboo.configuration.external.rss.importers.DeploymentProjectImporterProvider.lambda$getEntityImporter$0(DeploymentProjectImporterProvider.java:35)
	at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:130)
	at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:69)
	at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.lambda$processSpecs$2(JavaSpecsImportServiceImpl.java:88)
	at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:43)
	at com.atlassian.bamboo.configuration.external.rss.JavaSpecsImportServiceImpl.processSpecs(JavaSpecsImportServiceImpl.java:101)
...

原因

In YAML, a code point limit refers to the maximum number of Unicode code points that can be used in a single string or document. Even if you're using Java Specs with Bamboo, they are internally converted to YAML before Bamboo can process them. By default, Bamboo Data Center sets its limit to parse code points at 6291456, while YAML defaults are usually half that, 3145728.

Hitting this error means that either your Specs code project has reached the code point limit, or that you're running Bamboo Data Center 9.2.4 which is affected by  BAM-22605 - Getting issue details... STATUS . For the latter, the error message would state "3145728" as the maximum value.

ソリューション

If you're running Bamboo Data Center 9.2.4, please upgrade to 9.2.6 or a newer version where the BAM-22605 - Getting issue details... STATUS bug has been fixed.

If you're running any other Bamboo Data Center version, you can either adjust your Specs project to have less code points, or configure Bamboo's limit to a higher value by adding the system property below. The default value is 6291456, and we suggest increasing it according to your projects' needs:

-Dbamboo.specs.code.point.limit=NEW_VALUE

In order to apply the system property above to your Bamboo instance, please follow the steps from the article below:

Please note Bamboo must be restarted for the property to be picked up.

Last modified on Mar 17, 2025

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

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