Forums

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

Failed to set the database after installing conference

joewin jiang
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 8, 2021
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamManager' defined in class path resource [services/bandanaServiceContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.confluence.setup.xstream.XStreamManager]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1338)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1185)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:554)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:303)
	... 436 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.confluence.setup.xstream.XStreamManager]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:187)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:300)
	... 446 more
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
	at java.base/java.lang.String.substring(String.java:1874)
	at com.thoughtworks.xstream.core.JVM.is14(JVM.java:13)
	at com.thoughtworks.xstream.XStream.setupAliases(XStream.java:356)
	at com.thoughtworks.xstream.XStream.<init>(XStream.java:269)
	at com.thoughtworks.xstream.XStream.<init>(XStream.java:256)
	at com.thoughtworks.xstream.XStream.<init>(XStream.java:248)
	at com.atlassian.confluence.setup.xstream.XStreamManager.resetXStream(XStreamManager.java:31)
	at com.atlassian.confluence.setup.xstream.XStreamManager.<init>(XStreamManager.java:22)
	at jdk.internal.reflect.GeneratedConstructorAccessor75.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:175)
	... 448 more

1 answer

0 votes
Kishan Sharma
Community Champion
August 8, 2021

Hi @joewin jiang Welcome to the community. Have you set up the schema correctly and the database user has correct privileges? Eg: If you are using oracle refer this link.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
confluence7.4.9
TAGS
AUG Leaders

Atlassian Community Events