Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

BrandonDusseau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2017

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
TAGS
AUG Leaders

Atlassian Community Events