Forums

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

Bitbucket server: springmvc dispatcher error

Milan Chheda [INFOSYSTA]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2019
I have installed bitbucket server 6.4 on Windows, with home directory being on mapped drive. After making this change, we are getting the below error:

`2019-05-21 14:53:56,969 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dateFormatter' defined in URL [jar:file:/C:/Atlassian/Bitbucket/6.3.0/app/WEB-INF/lib/bitbucket-service-impl-6.3.0.jar!/com/atlassian/stash/internal/util/DefaultDateFormatter.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1021E: A problem occurred whilst attempting to access the property 'dateFormatProperties': 'Error creating bean with name 'dateFormatProperties' defined in class path resource [stash-context.xml]: Invocation of init method failed; nested exception is java.net.ConnectException: Connection refused: connect'
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:769)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.lang.Thread.run(Thread.java:748)`

2 answers

1 accepted

0 votes
Answer accepted
Evan Slaughter
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2019

Hi Milan,

Thanks for the included log snippet! From the stack trace, we believe what's happening is that it's attempting to retrieve configuration information that is reliant on files in your Bitbucket Home directory - but it's getting a connection refused error on attempting to do so.

This means that this could either be an issue that the Bitbucket instance is pointed to an incorrect location for the Bitbucket home, or that shared location isn't reachable on the network from the server hosting the Bitbucket Install directory.

We would recommend you test to make sure that the Bitbucket home is reachable from the server hosting the Bitbucket install directory as it is currently configured - and that the user running Bitbucket has access to all of the contents of the mapped drive.

If you're unable to identify the issue after checking the above information, just let us know and we can look to get a support ticket made for your team so we can investigate the logs and your configuration further.

Thanks,

Evan Slaughter

Milan Chheda [INFOSYSTA]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2019

Thanks @Evan Slaughter 

We were able to resolve this issue. The service account user was not able to access or probably wasn't the owner of installation as well as home directories. So we re-installed Bitbuckte but not as a Service. We installed it using the service user account and it worked perfectly without any issues. Thanks for the response again.

 

Regards,
Milan

Evan Slaughter
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2019

Absolutely - we're glad that we were able to help!

Thanks,

Evan Slaughter

0 votes
Manuel Bähnisch
Contributor
August 10, 2020

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events