When Upgrading Confluence 3.5.4 database setup fails if the server cannot reach the internet

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

  1. When upgrading to Confluence 3.5.4, the database setup fails.

The following appears in the logs:


The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
Cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'pluginStateStore' while setting constructor argument with index 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginStateStore' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'bandanaManager' while setting bean property 'bandanaManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bandanaManager' defined in class path resource [services/bandanaServiceContext.xml]: Cannot resolve reference to bean 'bandanaPersister' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bandanaPersister' defined in class path resource [services/bandanaServiceContext.xml]: Cannot resolve reference to bean 'dbBandanaPersister' while setting bean property 'persister'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbBandanaPersister' defined in class path resource [services/bandanaServiceContext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [databaseSubsystemContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.MappingException: org.dom4j.DocumentException: svn.atlassian.com Nested exception: svn.atlassian.com
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

...
caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is net.sf.hibernate.MappingException: org.dom4j.DocumentException: svn.atlassian.com Nested exception: svn.atlassian.com
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)

caused by: net.sf.hibernate.MappingException: org.dom4j.DocumentException: svn.atlassian.com Nested exception: svn.atlassian.com
    at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:297)

caused by: org.dom4j.DocumentException: svn.atlassian.com Nested exception: svn.atlassian.com
    at org.dom4j.io.SAXReader.read(SAXReader.java:358)

...
Caused by: org.dom4j.DocumentException: svn.atlassian.com Nested exception: svn.atlassian.com
	at org.dom4j.io.SAXReader.read(SAXReader.java:358)
	at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:287)
	... 242 more

原因

Confluence will try to make a connection to svn.atlassian.com and it will fail if the server has no connectivity to internet.

回避策

There's a patch available in CONF-22528.

To install the patch:

  1. Create any required directories under <confluence install dir>/confluence/WEB-INF/classes/com/atlassian/confluence/security
  2. Copy the xml file to that directory
  3. Confluence を起動します。

ソリューション

This issue will be fixed in Confluence 3.5.5.


Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.