When using the Microsoft SQL Server driver this error typically indicates you are using a driver version that is not compatible with the Java version being used in DbVisualizer. Check what Java version is used in Help->About.
First make sure you are using the latest available driver version. Click here for download options.
In for example the 7.2.2 driver version these jar files are available:
If you are using Java 8 pick the mssql-jdbc-7.2.2.jre8.jar file and for Java 9 and later pick mssql-jdbc-7.2.2.jre11.jar.