Connecting to Snowflake with DbVisualizer in Java 17+ may 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 this Java property in DbVisualizer: 

-Djdk.module.illegalAccess=permit