java.sql.SQLException: Login failed for user 'sa'.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Database Administrators by Mike
, 1 year ago
via Database Administrators by Unknown author, 1 year ago
via jtds by sathishv
, 1 year ago
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
java.sql.SQLException: Login failed for user 'sa'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(
at net.sourceforge.jtds.jdbc.TdsCore.login(
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(
at java.sql.DriverManager.getConnection(Unknown Source)
at undefined.DB.dbConnect(
at undefined.testConnection.main(

Users with the same issue

72 times, 7 months ago
3 times, 8 months ago
Once, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.