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

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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.

 

The following appears in the 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)

Diagnosis

  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.

Cause

The schema names are inconsistent.

Resolution

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

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.