Failed to set the database after installing conference
Asked by joewin jiang:

```
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 moreCaused 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 moreCaused 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
```


Answers:
author: Kishan Sharma
body: Hi [@joewin jiang](/t5/user/viewprofilepage/user-id/4506456) 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](https://confluence.atlassian.com/doc/database-setup-for-oracle-173821.html).


Tags: confluence-server

server