<?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 Re: JDBC Error: Error occured while deserializing arrow data in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/110456#M43580</link>
    <description>&lt;P&gt;For anyone encountering this issue in 2025, I was able to solve it by using the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--add-opens=jdk.unsupported/sun.misc=ALL-UNNAMED&lt;/PRE&gt;&lt;P&gt;option in combination with the latest jdbc driver&amp;nbsp;(v2.7.1). I was using the driver in dbeaver, but I assume the issue could be also solved in similar environments.&lt;/P&gt;&lt;P&gt;Pointer:&amp;nbsp;&lt;A href="https://github.com/dbeaver/dbeaver/issues/18962" target="_blank" rel="noopener"&gt;https://github.com/dbeaver/dbeaver/issues/18962&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 08:27:45 GMT</pubDate>
    <dc:creator>cvcore</dc:creator>
    <dc:date>2025-02-18T08:27:45Z</dc:date>
    <item>
      <title>JDBC Error: Error occured while deserializing arrow data</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/11930#M6836</link>
      <description>&lt;P&gt;I am getting the following error in my Java application.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java.sql.SQLException: [Databricks][DatabricksJDBCDriver](500618) Error occured while deserializing arrow data: sun.misc.Unsafe or java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(long, int) not available&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is the same issue described &lt;A href="https://community.databricks.com/s/question/0D53f00001kHXe2CAG/problem-with-databricks-jdbc-connection-error-occured-while-deserializing-arrow-data" alt="https://community.databricks.com/s/question/0D53f00001kHXe2CAG/problem-with-databricks-jdbc-connection-error-occured-while-deserializing-arrow-data" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Java version:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;java version "18.0.1.1" 2022-04-22
Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)
Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am using the recommended flag:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-Dio.netty.tryReflectionSetAccessible=true&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the source code for the JDBC driver available? Any suggestions on how to fix this would be appreciated.  Also if there is an example app that uses the JDBC driver, I'd be interested in trying that as well. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 02:15:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/11930#M6836</guid>
      <dc:creator>mattmunz</dc:creator>
      <dc:date>2022-07-30T02:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Error: Error occured while deserializing arrow data</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/11931#M6837</link>
      <description>&lt;P&gt;Please try adding the below(--add-opens flag) java command line flags in your jvm call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% javac -classpath SparkJDBC42Example.jar:. jdbc_example.java&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% java --add-opens=java.base/java.nio=ALL-UNNAMED -classpath SparkJDBC42Example.jar:. jdbc_example&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 19:27:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/11931#M6837</guid>
      <dc:creator>User16753725469</dc:creator>
      <dc:date>2022-11-27T19:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: JDBC Error: Error occured while deserializing arrow data</title>
      <link>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/110456#M43580</link>
      <description>&lt;P&gt;For anyone encountering this issue in 2025, I was able to solve it by using the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--add-opens=jdk.unsupported/sun.misc=ALL-UNNAMED&lt;/PRE&gt;&lt;P&gt;option in combination with the latest jdbc driver&amp;nbsp;(v2.7.1). I was using the driver in dbeaver, but I assume the issue could be also solved in similar environments.&lt;/P&gt;&lt;P&gt;Pointer:&amp;nbsp;&lt;A href="https://github.com/dbeaver/dbeaver/issues/18962" target="_blank" rel="noopener"&gt;https://github.com/dbeaver/dbeaver/issues/18962&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 08:27:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/jdbc-error-error-occured-while-deserializing-arrow-data/m-p/110456#M43580</guid>
      <dc:creator>cvcore</dc:creator>
      <dc:date>2025-02-18T08:27:45Z</dc:date>
    </item>
  </channel>
</rss>

