You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Bryan Cutler (JIRA)" <ji...@apache.org> on 2019/06/11 00:05:00 UTC

[jira] [Comment Edited] (ARROW-5412) [Java] Integration test fails with UnsupportedOperationException

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

Bryan Cutler edited comment on ARROW-5412 at 6/11/19 12:04 AM:
---------------------------------------------------------------

Yeah, sounds like this could be related to the change in ARROW-3191 described here http://mail-archives.apache.org/mod_mbox/arrow-dev/201904.mbox/%3cCAKHW1aoU7R7wcyprd5SYmfnmC3WtC=zNnTbpB=jV3JLE=Q+TGg@mail.gmail.com%3e

[~bkietz] have you tried an older JDK, maybe 8?  Any suggestions [~siddteotia]?


was (Author: bryanc):
Yeah, sounds like this could be related to the change in ARROW-3191 described here http://mail-archives.apache.org/mod_mbox/arrow-dev/201904.mbox/%3cCAKHW1aoU7R7wcyprd5SYmfnmC3WtC=zNnTbpB=jV3JLE=Q+TGg@mail.gmail.com%3e

[~bkietz] have you tried an older JDK, maybe 8?

> [Java] Integration test fails with UnsupportedOperationException
> ----------------------------------------------------------------
>
>                 Key: ARROW-5412
>                 URL: https://issues.apache.org/jira/browse/ARROW-5412
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java
>            Reporter: Benjamin Kietzman
>            Priority: Minor
>
> Running the java integration test fails with an exception:
> {code}
> $ java -classpath ~/arrow/java/tools/target/arrow-tools-0.14.0-SNAPSHOT-jar-with-dependencies.jar -Dio.netty.tryReflectionSetAccessible=false org.apache.arrow.tools.Integration -a ~/tmp/1832930b_simple.json_as_file -j ~/arrow/integration/data/simple.json -c VALIDATE
> ...
> Incompatible files
> sun.misc.Unsafe or java.nio.DirectByteBuffer.<init>(long, int) not available
> 08:55:43.597 [main] ERROR org.apache.arrow.tools.Integration - Incompatible files
> java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.<init>(long, int) not available
> 	at io.netty.util.internal.PlatformDependent.directBuffer(PlatformDependent.java:399)
> 	at io.netty.buffer.NettyArrowBuf.getDirectBuffer(NettyArrowBuf.java:233)
> 	at io.netty.buffer.NettyArrowBuf.nioBuffer(NettyArrowBuf.java:223)
> 	at io.netty.buffer.ArrowBuf.nioBuffer(ArrowBuf.java:245)
> 	at org.apache.arrow.vector.ipc.message.ArrowRecordBatch.computeBodyLength(ArrowRecordBatch.java:211)
> 	at org.apache.arrow.vector.ipc.message.MessageSerializer.serialize(MessageSerializer.java:175)
> 	at org.apache.arrow.vector.ipc.ArrowWriter.writeRecordBatch(ArrowWriter.java:119)
> 	at org.apache.arrow.vector.ipc.ArrowFileWriter.writeRecordBatch(ArrowFileWriter.java:61)
> 	at org.apache.arrow.vector.ipc.ArrowWriter.writeBatch(ArrowWriter.java:107)
> 	at org.apache.arrow.tools.Integration$Command$2.execute(Integration.java:171)
> 	at org.apache.arrow.tools.Integration.run(Integration.java:118)
> 	at org.apache.arrow.tools.Integration.main(Integration.java:69)
> {code}
> Looking through netty's source, it looks like this exception is [emitted here|https://github.com/netty/netty/blob/master/common/src/main/java/io/netty/util/internal/PlatformDependent.java#L343-L344].
> {code}
> $ apt search jdk | grep installed
> default-jre/bionic-updates,bionic-security,now 2:1.11-68ubuntu1~18.04.1 amd64 [installed,automatic]
> default-jre-headless/bionic-updates,bionic-security,now 2:1.11-68ubuntu1~18.04.1 amd64 [installed,automatic]
> libslf4j-java/bionic,bionic,now 1.7.25-3 all [installed,automatic]
> openjdk-11-jdk/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 amd64 [installed]
> openjdk-11-jdk-headless/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 amd64 [installed,automatic]
> openjdk-11-jre/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 amd64 [installed,automatic]
> openjdk-11-jre-headless/bionic-updates,bionic-security,now 11.0.3+7-1ubuntu2~18.04.1 amd64 [installed,automatic]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)