Atlas-run fails to start Bitbucket Server with NoSuchMethodError: ...digest.DigestUtils.sha1

I'm working on porting an old Stash plugin in my company to Bitbucket Server since we've recently upgraded. Unfortunately, I've run into the following exception when I run `atlas-run`:

[INFO] [talledLocalContainer] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'backupClientProgressPutRequestMatcher' defined in class path resource [security-context.xml]: Cannot resolve reference to bean 'maintenanceService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'maintenanceService' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'requestManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestManager': Injection of autowired dependencies failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1(Ljava/lang/String;)[B
[INFO] [talledLocalContainer]     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
[INFO] [talledLocalContainer]     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
[INFO] [talledLocalContainer]     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.0.RELEASE.jar:4.3.0.RELEASE]
[INFO] [talledLocalContainer]     at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:3.1.FR]
[INFO] [talledLocalContainer]     at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
[INFO] [talledLocalContainer]     ... 20 frames trimmed
[INFO] [talledLocalContainer] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'maintenanceService' defined in class path resource [stash-context.xml]: Cannot resolve reference to bean 'requestManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestManager': Injection of autowired dependencies failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1(Ljava/lang/String;)[B
[INFO] [talledLocalContainer]     ... 6 common frames omitted
[INFO] [talledLocalContainer] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestManager': Injection of autowired dependencies failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1(Ljava/lang/String;)[B
[INFO] [talledLocalContainer]     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:356) ~[spring-beans-4.3.0.RELEASE.jar:4.3.0.RELEASE]
[INFO] [talledLocalContainer]     ... 5 common frames omitted
[INFO] [talledLocalContainer] Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1(Ljava/lang/String;)[B
[INFO] [talledLocalContainer]     at com.atlassian.stash.internal.request.DefaultRequestManager.calcLocalNodeId(DefaultRequestManager.java:175) ~[bitbucket-service-impl-4.9.1.jar:na]
[INFO] [talledLocalContainer]     at com.atlassian.stash.internal.request.DefaultRequestManager.setClusterService(DefaultRequestManager.java:132) ~[bitbucket-service-impl-4.9.1.jar:na]

I've installed atlassian-plugin-sdk from Homebrew, and also tried creating a fresh project using `atlas-create-bitbucket-plugin`. Both the original and the fresh project fail with the same error.

Any ideas as to what might be causing this problem?

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,057 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you