Backup failed due to Exception: java.lang.NoClassDefFoundError

Answered

Tried to start Backup as want to upgarde the teamcity version but failed to do so due to following exception:-

Backup file: Z:\TeamCity\.BuildServer\backup\TeamCity_Backup_20170224_080146.zip
Preparing: done in 2s
Exporting database: failed

Exception: java.lang.NoClassDefFoundError: net/sourceforge/jtds/jdbc/JtdsResultSetMetaData
    caused by NoClassDefFoundError: net/sourceforge/jtds/jdbc/JtdsResultSetMetaData

Please guide.

0
3 comments

How did you start the backup process? If you could check for the logs of the process and send it to us with the full stacktrace, that would be useful as well. If you want to keep them private, please forward them to us via the "Submit a request" button

0

I've been in contact with our database subsystem maintainer. We don't recommend using the JTDS driver as it has several issues. See some for example in this note in our documentation: https://confluence.jetbrains.com/pages/viewpage.action?pageId=74845225#HowTo...-EstimateExternalDatabaseCapacity

We would recommend to follow the suggested steps on the teamcity server in this page instead: https://confluence.jetbrains.com/display/TCD10/Setting+up+an+External+Database#SettingupanExternalDatabase-MicrosoftSQLServer , that is, download the official driver from Microsoft.

If you want/need to stick with the JTDS, please send us the .jar file for inspection. It seems like it's having issues finding a class and it might be that the jar file wasn't properly built, but we would need to check it ourselves.

0
Avatar
Permanently deleted user

Looks like this error happens after windows updates. After restarting Macvhine and Teamcity server I was able to do the backup successfully.

Many Thanks for your support.

0

Please sign in to leave a comment.