GithubHelp home page GithubHelp logo

Comments (6)

pjfanning avatar pjfanning commented on June 14, 2024 1

ByteBuffer inherits rewind from Buffer and Java 8 has this method.

https://docs.oracle.com/javase/8/docs/api/java/nio/Buffer.html#rewind--

I have seem issues in Java 8 where you need to cast to java.nio.Buffer for this to work reliably.

In https://issues.apache.org/jira/browse/HADOOP-18197, there were issues where we got on some Java8 installations.

java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;

We had to upgrade protobuf-java (which had the ByteBuffer code that was causing us issues) to get this fix:
protocolbuffers/protobuf@d40aadf

See https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/

from arrow.

lidavidm avatar lidavidm commented on June 14, 2024 1

@vibhatha ^

from arrow.

pjfanning avatar pjfanning commented on June 14, 2024

Arrow has this cast in a different part of the code.

((ByteBuffer) ((Buffer) reader).rewind()).get(bytes);

Could we add a similar cast in the method that is causing issues?

from arrow.

assignUser avatar assignUser commented on June 14, 2024

fyi: #38051

from arrow.

lidavidm avatar lidavidm commented on June 14, 2024

Issue resolved by pull request 41718
#41718

from arrow.

pjfanning avatar pjfanning commented on June 14, 2024

@lidavidm @assignUser This was also reported (@pan3793)

#41718 (comment)

from arrow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.