asfimport opened a new issue, #274:
URL: https://github.com/apache/arrow-java/issues/274

   After ARROW-3191, consumers of Arrow Java with a JDK 9 and above are 
required to set the JVM property "io.netty.tryReflectionSetAccessible=true" at 
startup, each time Arrow code is run, as documented at 
https://github.com/apache/arrow/tree/master/java#java-properties. Not doing 
this will result in the error "java.lang.UnsupportedOperationException: 
sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available", making 
Arrow unusable out-of-the-box.
   
   This proposes to automatically set the property if not already set in the 
following steps:
   
   1) check to see if the property io.netty.tryReflectionSetAccessible has been 
set
   2) if not set, automatically set to "true"
   3) else if set to "false", catch the Netty error and prepend the error 
message with the suggested setting of "true"
   
   **Reporter**: [Bryan 
Cutler](https://issues.apache.org/jira/browse/ARROW-7223) / @BryanCutler
   #### Related issues:
   - [Document Arrow requirement in 
JDK9+](https://issues.apache.org/jira/browse/SPARK-29924) (relates to)
   
   <sub>**Note**: *This issue was originally created as 
[ARROW-7223](https://issues.apache.org/jira/browse/ARROW-7223). Please see the 
[migration documentation](https://github.com/apache/arrow/issues/14542) for 
further details.*</sub>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to