'java.sql.SQLException invalid object name userbase' When Integrating with JIRA for User Management

お困りですか?

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

コミュニティに質問

症状

When using JIRA for User Management, the database connection fails and users cannot log into Confluence. This often happens after a database migration to a new system.

 

atlassian-confluence.log に次のエラーが返される。

2011-01-24 13:46:47,832 FATAL [http-8090-8] [user.provider.jdbc.JDBCCredentialsProvider] handles Could not see if [admin] is handled
 -- url: /dashboard.action | userName: anonymous | action: dashboard
java.sql.SQLException: Invalid object name 'userbase'.
	at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
	at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)
	at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)
	at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:632)
	at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)

診断

  1. In JIRA, check atlassian-jira/WEB-INF/classes/entityengines.xml. Note the schema name. It is likely 'jiraschema'.
  2. In Confluence, check conf/server.xml. Notice the schema name.
  3. In SQL Server, check the schema name. It may be 'dbo' or other.

原因

The schema names are inconsistent.

ソリューション

Change the schema in SQL Server to match the settings in server.xml and entityengines.xml.

Last modified on Mar 30, 2016

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

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