<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JDBC driver uses Unsafe API, which will be completely deprecated in a future release of Java in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jdbc-driver-uses-unsafe-api-which-will-be-completely-deprecated/m-p/122582#M46818</link>
    <description>&lt;P&gt;Using JDBC driver (2.7.3) in OpenJDK 24 gives the following warning:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: Please consider reporting this to the maintainers of class com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release&lt;/LI-CODE&gt;&lt;P&gt;While it's uncertain what Java release it will be deprecated in, I think this needs to be fixed sooner rather than later. Java's new FFM API provides a nice way of handling Off-Heap memory and probably would fix whatever this MemoryUtil class is trying to do in a safe way. There are also other alternatives.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 19:09:06 GMT</pubDate>
    <dc:creator>benesq</dc:creator>
    <dc:date>2025-06-23T19:09:06Z</dc:date>
    <item>
      <title>JDBC driver uses Unsafe API, which will be completely deprecated in a future release of Java</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-driver-uses-unsafe-api-which-will-be-completely-deprecated/m-p/122582#M46818</link>
      <description>&lt;P&gt;Using JDBC driver (2.7.3) in OpenJDK 24 gives the following warning:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: Please consider reporting this to the maintainers of class com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release&lt;/LI-CODE&gt;&lt;P&gt;While it's uncertain what Java release it will be deprecated in, I think this needs to be fixed sooner rather than later. Java's new FFM API provides a nice way of handling Off-Heap memory and probably would fix whatever this MemoryUtil class is trying to do in a safe way. There are also other alternatives.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 19:09:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-driver-uses-unsafe-api-which-will-be-completely-deprecated/m-p/122582#M46818</guid>
      <dc:creator>benesq</dc:creator>
      <dc:date>2025-06-23T19:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC driver uses Unsafe API, which will be completely deprecated in a future release of Java</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-driver-uses-unsafe-api-which-will-be-completely-deprecated/m-p/133763#M49919</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/171453"&gt;@benesq&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp;&lt;SPAN&gt;JDBC driver&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.7.4&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.databricks.com/spark/jdbc-drivers-download" target="_blank"&gt;https://www.databricks.com/spark/jdbc-drivers-download&lt;/A&gt;&amp;nbsp;should be used with&lt;/P&gt;
&lt;P class="p1"&gt;Java Runtime Environment (JRE) 8.0, 11.0 or 21.0. As mentioned in the installation doc "Each machine where you use the Databricks JDBC Driver must have Java Runtime Environment (JRE) 8.0, 11.0 or 21.0."&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This will be fixed in a subsequent version of JavaFX&amp;nbsp;&lt;/SPAN&gt;side,&amp;nbsp;&lt;A href="https://bugs.openjdk.org/browse/JDK-8345121" target="_blank"&gt;https://bugs.openjdk.org/browse/JDK-8345121&lt;/A&gt;&amp;nbsp;does mention the issue is now resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2025 04:37:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-driver-uses-unsafe-api-which-will-be-completely-deprecated/m-p/133763#M49919</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-10-04T04:37:00Z</dc:date>
    </item>
  </channel>
</rss>

