snowflake-jdbc driver fails with openjdk 17

See original GitHub issue

env: mac v11.6 intellij openjdk17 snowflake-driver v3.13.8 jar from maven repo

stack trace: Exception in thread "main" 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.<init>(long, int) not available. at net.snowflake.client.jdbc.SnowflakeResultSetSerializableV1.setFirstChunkRowCountForArrow(SnowflakeResultSetSerializableV1.java:1061) at net.snowflake.client.jdbc.SnowflakeResultSetSerializableV1.create(SnowflakeResultSetSerializableV1.java:550) at net.snowflake.client.jdbc.SnowflakeResultSetSerializableV1.create(SnowflakeResultSetSerializableV1.java:467) at net.snowflake.client.core.SFResultSetFactory.getResultSet(SFResultSetFactory.java:29) at net.snowflake.client.core.SFStatement.executeQueryInternal(SFStatement.java:219) at net.snowflake.client.core.SFStatement.executeQuery(SFStatement.java:134) at net.snowflake.client.core.SFStatement.execute(SFStatement.java:743) at net.snowflake.client.core.SFStatement.execute(SFStatement.java:639) at net.snowflake.client.jdbc.SnowflakeStatementV1.executeQueryInternal(SnowflakeStatementV1.java:238) at net.snowflake.client.jdbc.SnowflakeStatementV1.executeQuery(SnowflakeStatementV1.java:133)

workaround: Change jdk17 to jdk11.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:20
  • Comments:16

github_iconTop GitHub Comments

5reactions
iamzafarcommented, Jan 21, 2022

@sfc-gh-kdama @sfc-gh-mknister Could you please look at this issue? It seems like #682 solves that. Releasing this would be really appreciated because our snowflake apps are failing with JDK17. Is there any chance to include this fix in the next following release?

4reactions
wise-coderscommented, Feb 3, 2022

I also vote for fixing it. For me, the driver fails even with the add-opens flag.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Requirements for the JDBC Driver
The Snowflake JDBC driver requires Java 1.8 or higher. If the minimum required version of Java is not installed on the client machines...
Read more >
JDBC Driver - Snowflake Documentation
Snowflake provides a JDBC type 4 driver that supports core JDBC functionality. The JDBC driver must be installed in a 64-bit environment and...
Read more >
Downloading / Integrating the JDBC Driver
The JDBC driver ( snowflake-jdbc ) is provided as a JAR file, available as an artifact in Maven for download or integrating directly...
Read more >
JDBC Driver Failure - net.snowflake.client.jdbc.internal.io.netty ...
JDBC driver error net.snowflake.client.jdbc.internal.io.netty.util.internal.OutOfDirectMemoryError occurs when fetching results.
Read more >
JDBC Driver Release Notes - Snowflake Community
Bug Fixes. Fixed an issue with TIMESTAMP_INPUT_FORMAT for stage binding. Version 3.13.17 (April 14, 2022). New Feature.
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