Bamboo Data center external plugin is not getting enabled post plugin upgrade to the latest version
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Summary
This knowledge base article talks about a scenario were an external plugin named Jfrog Bamboo Artifactory Plugin was not getting enabled after the plugin was upgraded to the latest version on the Bamboo server.
This page explain about the issue related to this particular plugin, but the cause and the solution would be applicable for any other external plugins having the same problem.
Environment
The issue was seen on Bamboo 9.2.16 with Jfrog Bamboo Artifactory Plugin version3.3.4 but the solution is applicable for any other supported version of Bamboo.
Diagnosis
Looking at <bamboo-home>logs>atlassian-bamboo.log file we can see the below error related to the plugin and going to the ⚙️ > Overview > Manage Apps page on the Bamboo GUI, we can see that the plugin is in a disabled state.
1
2
Caused by: java.lang.UnsupportedClassVersionError: org/jfrog/bamboo/admin/ServerConfigManager has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_242]
1
ERROR [ThreadPoolAsyncTaskExecutor::Thread 42] [OsgiPlugin] Unable to start the plugin container for plugin 'org.jfrog.bamboo.bamboo-artifactory-plugin'
Cause
The root cause is due to the Java's version incompatibility. In the example above, the error is related toJFrog Artifactory for Bambooplugin version 3.3.4 which was compiled againstJava 11and Bamboo was using aJava 8 jdk.
Basically class 52 = Java 8 and class 55 = Java 11
Solution
Solution 1
Update your Java to be runningJava 11( you may also checkHow to upgrade the Java version used by Bamboo)
Solution 2
Upload an older version of the plugin which usesJava 8, please follow the below steps to Install the older version
Uninstall the latest version plugin by going to ⚙️ > Overview > Manage Apps page.
Go to <bamboo-home>shared>plugins folder and make sure the Jar related to plugin is not present.
Download the latest jar of the plugin from the Atlassian marketplace.
Place the latest version of the jar in the above location.
Restart Bamboo and check if the plugin is enabled.
Solution 3
Contact the vendor to get help regarding the lack ofJava 8support.
Was this helpful?