question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/StreamError

See original GitHub issue

Using sqljdbc42.jar from package sqljdbc_6.0.7728.100_enu.tar, I’m getting the following exception from time to time: config: Linux CentOS 7 - 3.10.0-327.18.2.el7.x86_64 OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode) Using HikariCP connection pool which wraps com.microsoft.sqlserver.jdbc.SQLServerDataSource

java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/StreamError
        at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onError(tdsparser.java:194)
        at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:71)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1630)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:426)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:372)
        at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:6276)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1793)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:184)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:159)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:284)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
v-nisidhcommented, Nov 23, 2016

@mohsen

Version you mentioned is latest one from MSDN Download Center.

Download Package (tarball / zip) name itself indicates version. Also one can check version with following code too.

con.getMetaData().getDriverMajorVersion()

Further one can download it from maven repo too.

In our next public release we are going to add build number in MANIFEST.MF which is standard practice in Java World.

We are working towards Semantic Versioning in order to avoid version confusions.

Meanwhile it’s worth to watch our dev branch for further updates.

0reactions
ajlamcommented, Mar 27, 2017

@mohsen - we haven’t heard from you in a bit. Closing this issue for now. Please feel free to reopen if required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.ClassNotFoundException: com.microsoft.jdbc ...
If you are seeing this exception while trying to use the SQL Server 2005 JDBC driver, then you will need to update the...
Read more >
How to fix java.lang.ClassNotFoundException - Javarevisited
This error comes when you try to connect to the Microsoft SQL Server database from the Java program but the required JDBC driver...
Read more >
com.microsoft.sqlserver.jdbc.SQLServerDriver not found error
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver : Am I loading the right driver? 0 · Exception Description: Configuration ...
Read more >
java.lang.NoClassDefFoundError: com/microsoft/sqlserver ...
Using sqljdbc42.jar from package sqljdbc_6.0.7728.100_enu.tar, I'm getting the following exception from time to time: config: Linux CentOS 7 ...
Read more >
com.microsoft.sqlserver.jdbc.SQLServerDriver - CodeRanch
Java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver. I have everything correct but still facing problem .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found