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

Owen O'Malley commented on ORC-472:
-----------------------------------

Try using the same version of java to run with that you compiled with. I just 
tested CoreWriter and CoreReader work fine on openjdk8 in Ubuntu 18 using the 
orc-ubuntu18 docker image.

> NoSuchMethodError runing on JDK1.8 of examples
> ----------------------------------------------
>
>                 Key: ORC-472
>                 URL: https://issues.apache.org/jira/browse/ORC-472
>             Project: ORC
>          Issue Type: Bug
>          Components: example
>            Reporter: Patrick Xiaoman Huang
>            Priority: Major
>
> running examples CoreWriter on JDK1.8, got error
> java.lang.NoSuchMethodError: 
> java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer
> at org.apache.orc.impl.OutStream.getNewInputBuffer (OutStream.java:177)
>  at org.apache.orc.impl.OutStream.write (OutStream.java:210)
>  at org.apache.orc.impl.RunLengthIntegerWriterV2.writeDeltaValues 
> (RunLengthIntegerWriterV2.java:228)
>  at org.apache.orc.impl.RunLengthIntegerWriterV2.writeValues 
> (RunLengthIntegerWriterV2.java:176)
>  at org.apache.orc.impl.RunLengthIntegerWriterV2.write 
> (RunLengthIntegerWriterV2.java:802)
>  at org.apache.orc.impl.writer.IntegerTreeWriter.writeBatch 
> (IntegerTreeWriter.java:86)
>  at org.apache.orc.impl.writer.StructTreeWriter.writeRootBatch 
> (StructTreeWriter.java:56)
>  at org.apache.orc.impl.WriterImpl.addRowBatch (WriterImpl.java:559)
>  at org.apache.orc.examples.CoreWriter.main (CoreWriter.java:53)
>  at org.apache.orc.examples.CoreWriter.main (CoreWriter.java:64)
> btw, no problem running with JDK11



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

Reply via email to