Unable to connect to SQLServer 2008 database - Exception attempting to load Database driver

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in your logs when testing the DB Connection:

1 2 3 4 2012-07-19 09:12:23,736 ERROR [btpool0-14 ] fisheye.app DefaultDBControl-<init> - Unable to connect to SQLServer 2008 database jdbc:jtds:sqlserver://localhost:1433;databaseName=crucible;: java.sql.SQLException: Login failed for user 'sqladministrator'. 2012-07-19 09:12:46,092 WARN [btpool0-14 ] fisheye.app TestDBConnectionAjaxAction-checkDriverClass - Exception attempting to load Database driver java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver ...

Cause

There is a known bug that prevents Fisheye from successfully connect to the DB (when using Java 1.6.29 + including 1.7).

Resolution

As a workaround, downgrade your Java version to 1.6.24 (which we have already tested and that is confirmed to work).

After that, restart your Fisheye (so it start using the 1.6.24 version) and try to connect to the DB again.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.