Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,639,444
Community Members
 
Community Events
196
Community Groups

"Latest Bamboo Spec throws exception"

Edited

Hi,

I updated the version of Bamboo Spec from 6.9.1 to 7.1.1 in my pom.xml since our Bamboo server was updated to 7.1.1

After that we started getting the following exception thrown in the server when we try to create a Bamboo plan using the API:

java.lang.NoSuchMethodError:  "java.lang.RuntimeException: java.lang.NoSuchMethodError: org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(I)V\r\n\tat com.atlassian.bamboo.specs.util.IsolatedYamlizator.execute(IsolatedYamlizator.java:24)\r\n\tat com.atlassian.bamboo.specs.util.BambooSpecSerializer.dump(BambooSpecSerializer.java:19)\r\n\tat com.atlassian.bamboo.specs.util.BambooServer.publish(BambooServer.java:73)

 

Kindly help. Looks like this is a issue with the latest Bamboo Spec version.

2 answers

Hi,

i have a very similar error when deploying Bamboo specs using "mvn -P publish-specs":

Execution default-cli of goal com.atlassian.bamboo:bamboo-specs-runner:7.2.2:run failed: 
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError: org.yaml.snakeyaml.DumperOptions.setDefaultFlowStyle(Lorg/yaml/snakeyaml/DumperOptions$FlowStyle;)V -> [Help 1]

 I have no SnakeYAML dependencies in my pom.xml. It seems to be a problem with the latest Bamboo spec version.

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 07, 2021

@dbu what's bamboo-specs version at your pom.xml

Do you see any snakeyaml dependency when run 

mvn dependency:tree 
or
mvn help:effective-pom

Bamboo specs version is: 7.2.2

Dependency tree shows: org.yaml:snakeyaml:jar:1.27:compile

 

I have to correct my previous post: I am using "atlas-mvn -P pusblish-specs" instead of "mvn -P pusblish-specs".

I found out that the problem occurs only with Atlassian plugin SDK 8.2.6. If I use mvn instead of atlas-mvn or downgrade the SDK to 8.2.2 the deployment works fine.

Like Alexey Chystoprudov likes this
0 votes
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 17, 2020

If you have any dependencies to SnakeYAML at pom.xml, update them to use version 1.26

This helped fix the issue. Thanks Alexey.

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 23, 2020

Glad to hear. Can you tell why you need SnakeYAML at dependencies?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events