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
, 11 months 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(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.login(TdsCore.java:603)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:345)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)
at java.sql.DriverManager.getConnection(Unknown Source)
at undefined.DB.dbConnect(testConnection.java:17)
at undefined.testConnection.main(testConnection.java:7)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
9 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
29 more bugmates

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