Fail to start with latest mssql-jdbc_auth-9.2

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube 8.9.0 DE
    Latest Microsoft JDBC Driver for SQL Server 9.2.1 (March 02, 2021)

  • error observed (wrap logs/code around triple quote ``` for proper formatting)

Caused by: java.lang.UnsatisfiedLinkError: no mssql-jdbc_auth-9.2.0.x64 in java.library.path: [C:\Program Files\Zulu\zulu-11\bin, C:\Windows\Sun\Java\bin, C:\Windows\system32, C:\Windows, C:\Windows\system32, C:\Windows, C:\Windows\System32\Wbem, C:\Windows\System32\WindowsPowerShell\v1.0\, C:\Program Files\Zulu\zulu-11\bin\, C:\Program Files\Microsoft Data Protection Manager\DPM\bin\VDDK\bin\, C:\Program Files\sonarqube-8.9.0.43852\extensions\jdbc-driver, C:\Users\svc-sonarservice\AppData\Local\Microsoft\WindowsApps, .]
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2660)
	at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:829)
	at java.base/java.lang.System.loadLibrary(System.java:1867)
	at com.microsoft.sqlserver.jdbc.AuthenticationJNI.<clinit>(AuthenticationJNI.java:51)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:4016)
	... 42 common frames omitted
  • steps to reproduce
    Use latest Microsoft JDBC Driver for SQL Server from page linked in docu

  • potential workaround
    Go farther down and search for exact driver package 9.2.0 and use package with known issue with client secret

Hey there.

Indeed, 9.2.0 is the only supported version (and the authentication library must match in version exactly). Do you face a real issue that would be solved by v9.2.1, or were you just trying to use the latest version?

I used the latest download on top of the linked page from Microsoft. Expected that any version >= “9.2.0” would work.

Unfortunately, it doesn’t work like that, and we have to ship some version of the driver with our software, and the auth library must match the version exactly. :frowning: