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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,922 views 1 5
Read article

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