java.lang.NullPointerException occurs when searching for capabilities

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

Problem

When searching for capabilities to add as requirements to a job in Bamboo, a popup occurs showing a NullPointerException has occurred.

The following message can be found in the <BambooHome>/logs/atlassian-bamboo.log file:

1 2 3 4 5 6 7 8 9 2016-07-04 12:18:52,939 WARN [http-nio-8085-exec-1] [BambooRuntimeExceptionMapper] Unexpected error from REST call java.lang.NullPointerException at com.atlassian.bamboo.plugins.rest.resource.CapabilityResource$1.apply(CapabilityResource.java:87) at com.atlassian.bamboo.plugins.rest.resource.CapabilityResource$1.apply(CapabilityResource.java:83) at com.google.common.collect.Iterators$7.computeNext(Iterators.java:652) at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) at com.google.common.collect.Iterators.addAll(Iterators.java:361) [...]

Diagnosis

Environment

  • The Bamboozled Ruby Plugin add-on is installed

Cause

The problem is caused by the Bamboozled Ruby Plugin add-on. At the time of writing the latest available version of the add-on that is known to cause the problem is 5.10.3.

Solution

Workaround

To work around the problem, disable the Bamboozled Ruby Plugin add-on in Bamboo or uninstall it.

Resolution

To resolve this problem, contact the plugin vendor via their Support channel.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.