Connecting to Snowflake with DbVisualizer in Java 17 results in an error due the JDBC driver not being compatible:


net.snowflake.client.jdbc.SnowflakeSQLLoggedException: JDBC driver internal error: Fail to retrieve row count for first arrow chunk: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available.

The solution is to set these Java properties in DbVisualizer: 

-Djdk.module.illegalAccess=permit

--add-opens=java.base/java.nio=ALL-UNNAMED