Forums

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

How to solve this error?

limin feng
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!
October 18, 2023

jiras-bitbucket-1 | 2023-10-18 16:26:05,321 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 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-8.4.4.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
jiras-bitbucket-1 | 2023-10-18 16:26:06,037 INFO [spring-startup] c.a.s.i.s.g.m.DefaultSidecarManager Sidecar has stopped (Exit code: 0)
jiras-bitbucket-1 | 2023-10-18 16:26:06,102 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket/shared
jiras-bitbucket-1 | 2023-10-18 16:26:06,700 INFO [spring-startup] c.a.s.internal.home.HomeLockAcquirer Releasing lock on /var/atlassian/application-data/bitbucket
jiras-bitbucket-1 | 2023-10-18 16:26:06,705 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
jiras-bitbucket-1 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentTypeResolver' defined in URL [jar:file:/opt/atlassian/bitbucket/app/WEB-INF/lib/bitbucket-platform-8.4.4.jar!/com/atlassian/stash/internal/plugin/SimpleContentTypeResolver.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
jiras-bitbucket-1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
jiras-bitbucket-1 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
jiras-bitbucket-1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
jiras-bitbucket-1 | at javax.servlet.GenericServlet.init(GenericServlet.java:158)
jiras-bitbucket-1 | at java.base/java.lang.Thread.run(Thread.java:829)
jiras-bitbucket-1 | ... 16 frames trimmed
jiras-bitbucket-1 | Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.plugin.SimpleContentTypeResolver]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
jiras-bitbucket-1 | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224)
jiras-bitbucket-1 | ... 5 common frames omitted
jiras-bitbucket-1 | Caused by: java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport
jiras-bitbucket-1 | at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:130)
jiras-bitbucket-1 | at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:301)
jiras-bitbucket-1 | at com.atlassian.stash.internal.plugin.SimpleContentTypeResolver.<init>(SimpleContentTypeResolver.java:25)
jiras-bitbucket-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
jiras-bitbucket-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
jiras-bitbucket-1 | at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
jiras-bitbucket-1 | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211)
jiras-bitbucket-1 | ... 5 common frames omitted
jiras-bitbucket-1 | Caused by: java.lang.ClassNotFoundException: com.sun.activation.registries.LogSupport
jiras-bitbucket-1 | at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
jiras-bitbucket-1 | at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
jiras-bitbucket-1 | ... 12 common frames omitted

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
December 8, 2023

Please add app

ali r
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!
February 10, 2024

bitbucket

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events