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

Help with bitbucket not starting

Stuart James
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 22, 2022

Hi all

Getting the error below. Despite googling around for an hour, can't seem to find anything that looks to be an issue. Log file below.

 

Can someone point me in the right direction?

 

A fatal error has occurred

The following problem occurred, which prevents Atlassian Bitbucket from starting:

  • SpringMVC dispatcher [springMvc] could not be started

 

2022-08-22 22:55:21,265 INFO  [main]  c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication v7.17.1 using Java 1.8.0_341 on xxxxxx with PID 11416 (E:\Atlassian\Bitbucket\7.17.1\app\WEB-INF\classes started by atlbitbucket in E:\Atlassian\Bitbucket\7.17.1\app)

2022-08-22 22:55:21,273 INFO  [main]  c.a.b.i.b.BitbucketServerApplication The following profiles are active: windows

2022-08-22 22:55:22,896 INFO  [main]  c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.17.1 (25b3522 built on Sat Oct 30 12:14:14 AEDT 2021)

2022-08-22 22:55:22,896 INFO  [main]  c.a.b.i.boot.log.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_341-b10

2022-08-22 22:55:26,683 INFO  [main]  c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 8.188 seconds (JVM running for 10.461)

2022-08-22 22:55:36,024 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory E:\Atlassian\ApplicationData\Bitbucket

2022-08-22 22:56:14,144 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory E:\Atlassian\ApplicationData\Bitbucket\shared

2022-08-22 22:56:18,501 WARN  [spring-startup]  com.hazelcast.instance.Node [172.29.70.29]:5701 [atlbitbucket] [3.12.9] No join method is enabled! Starting standalone.

2022-08-22 22:57:28,270 INFO  [spring-startup]  c.a.s.i.h.s.WindowsHookScriptCommandLineFactory Found GNU bash at C:\Program Files\Git\bin\bash.exe

2022-08-22 22:57:34,570 INFO  [spring-startup]  c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:50771

2022-08-22 22:57:36,257 WARN  [spring-startup]  o.s.w.c.s.XmlWebApplicationContext Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Cannot create inner bean 'org.springframework.http.converter.BufferedImageHttpMessageConverter#0' of type [org.springframework.http.converter.BufferedImageHttpMessageConverter] while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.http.converter.BufferedImageHttpMessageConverter#0' defined in class path resource [stash-mvc.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.converter.BufferedImageHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_341\bin\awt.dll: Can't find dependent libraries

2022-08-22 22:57:36,449 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on E:\Atlassian\ApplicationData\Bitbucket\shared

2022-08-22 22:57:36,462 INFO  [spring-startup]  c.a.s.internal.home.HomeLockAcquirer Releasing lock on E:\Atlassian\ApplicationData\Bitbucket

2022-08-22 22:57:36,469 ERROR [spring-startup]  c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Cannot create inner bean 'org.springframework.http.converter.BufferedImageHttpMessageConverter#0' of type [org.springframework.http.converter.BufferedImageHttpMessageConverter] while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.http.converter.BufferedImageHttpMessageConverter#0' defined in class path resource [stash-mvc.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.converter.BufferedImageHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_341\bin\awt.dll: Can't find dependent libraries

              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:389)

              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

              at javax.servlet.GenericServlet.init(GenericServlet.java:158)

              at java.lang.Thread.run(Unknown Source)

              ... 20 frames trimmed

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.http.converter.BufferedImageHttpMessageConverter#0' defined in class path resource [stash-mvc.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.converter.BufferedImageHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_341\bin\awt.dll: Can't find dependent libraries

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1316)

              ... 5 common frames omitted

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.http.converter.BufferedImageHttpMessageConverter]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_341\bin\awt.dll: Can't find dependent libraries

              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:225)

              ... 5 common frames omitted

Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.8.0_341\bin\awt.dll: Can't find dependent libraries

              at java.lang.ClassLoader$NativeLibrary.load(Native Method)

              at java.lang.Runtime.loadLibrary0(Unknown Source)

              at java.lang.System.loadLibrary(Unknown Source)

              at java.awt.Toolkit$3.run(Unknown Source)

              at java.awt.Toolkit$3.run(Unknown Source)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.awt.Toolkit.loadLibraries(Unknown Source)

              at java.awt.Toolkit.<clinit>(Unknown Source)

              at sun.awt.AppContext$2.run(Unknown Source)

              at sun.awt.AppContext$2.run(Unknown Source)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.awt.AppContext.initMainAppContext(Unknown Source)

              at sun.awt.AppContext.access$400(Unknown Source)

              at sun.awt.AppContext$3.run(Unknown Source)

              at sun.awt.AppContext$3.run(Unknown Source)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.awt.AppContext.getAppContext(Unknown Source)

              at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)

              at javax.imageio.ImageIO.<clinit>(Unknown Source)

              at org.springframework.http.converter.BufferedImageHttpMessageConverter.<init>(BufferedImageHttpMessageConverter.java:82)

              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:212)

              ... 5 common frames omitted

 

2 answers

1 accepted

0 votes
Answer accepted
Dave Theodore [Coyote Creek Consulting]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

It's complaining about your Java, so that's where I would start. Check the supported platforms page for the version you are running and make sure you are only using things that are supported. The latest versions of Bitbucket are not supported on Windows, so maybe this is part of your problem.  I hope that helps you find a solution.

Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 1, 2023

Any other suggestion ? 

0 votes
Stuart James
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 24, 2022

In case anyone comes across this in the future, the solution here was to install C++ runtime 2015-2022

 

https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

 

I have no idea why that was suddenly required when it has never been installed in the past; perhaps a Windows update?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events