You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Reid McKenzie (Jira)" <ji...@apache.org> on 2022/01/04 21:38:00 UTC

[jira] [Commented] (ARROW-12747) Arrow's use of Netty library causes UnsupportedOperationException with JDK16

    [ https://issues.apache.org/jira/browse/ARROW-12747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17468866#comment-17468866 ] 

Reid McKenzie commented on ARROW-12747:
---------------------------------------

The underlying problem is in the depended version of Netty. 4.1.52+ has JDK17 fixes. Excluding the dependencies arrow uses and using netty-\{buffer,common} 4.1.57.Final appears to resolve this issue.

> Arrow's use of Netty library causes UnsupportedOperationException with JDK16
> ----------------------------------------------------------------------------
>
>                 Key: ARROW-12747
>                 URL: https://issues.apache.org/jira/browse/ARROW-12747
>             Project: Apache Arrow
>          Issue Type: Sub-task
>          Components: Java
>    Affects Versions: 0.15.1, 5.0.0
>            Reporter: Megan Knister
>            Assignee: David Dali Susanibar Arce
>            Priority: Blocker
>
> The Arrow vector library depends on netty, which throws the exception *java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available.* In the documentation, [it's stated that s|https://github.com/apache/arrow/blob/master/java/README.md]etting "-Dio.netty.tryReflectionSetAccessible=true" fixes the issue. This is true with all java versions except with usage of the latest JDK16. The exception gets thrown regardless of this system property setting when using JDK16.
>  
> Is there a fix for this?
> Thanks!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)