Bamboo fails to start when upgrading to version 9.2.7 or later with "Could not load bootstrap from environment java.lang.RuntimeException: Cannot set any global DeserializationFilter filter"
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
Bamboo fails to start when upgrading to version 9.2.7 or all subsequent versions within the 9.2.x series
環境
- Bamboo 9.2.7 or all subsequent versions within the 9.2.x series
- Bamboo versions 9.3, 9.4 and later are not implicated by this issue
- Java 8
診断
After starting Bamboo 9.2.7 or later for the first time, the following messages appear on the <bamboo-home>/log/atlassian-bamboo.log
file:
INFO [main] [JDKFilterConfigurator] Could not set JDK 8 DeserializationFilter. INFO [main] [DeserializationFilterConfigurator] Could not set a JDK 8 DeserializationFilter. Trying to set JDK 11 DeserializationFilter fatal bootstrap Could not load bootstrap from environment java.lang.RuntimeException: Cannot set any global DeserializationFilter filter.
原因
Bamboo 9.2.7 and later uses deserialization libraries that require the sun.misc.ObjectInputFilter
interface, older JDKs, which don't have that interface implemented, will prevent Bamboo from starting up.
ソリューション
- Update the Java 8 version used by Bamboo to version 8u121 or later
- Optionally, customers can upgrade to Java 11; check the following KB article for instructions: How to upgrade the Java version used by Bamboo.