GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NoSuchMethodError: java.nio.ByteBuffer.clear() · Issue #158 · lmdbjava/lmdbjava

NoSuchMethodError: java.nio.ByteBuffer.clear() #158

New issue
Copy link
New issue
Copy link
Closed
Closed
NoSuchMethodError: java.nio.ByteBuffer.clear()#158
Copy link
Labels
bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library

Description

@miner
miner
opened on Jun 2, 2020
Issue body actions

This is the same problem as issue #116 but with the latest lmdbjava 0.8.0. (I have JDK 8 on my machine.) I adapted my code for the CursorIterator design changes #154, but my project still failed with the NoSuchMethodError due to the (old) Java API changes in ByteBuffer between JDK 8 and 9. As discussed last time, JDK 8 is close to end of life. I updated to a JDK 11 and everything is working again for me. I suggest that you document the minimum required Java version.

Activity

  1. bp-alex
    added a commit that references this issue on Jun 3, 2020

    Build with Java 8 due to ByteBuffer NoSuchMethodError (#116, #158)

    2f8527b
  2. bp-alex
    added
    bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library
    on Jun 3, 2020
  3. bp-alex commented on Jun 3, 2020

    @bp-alex
    bp-alex
    on Jun 3, 2020
    Member
    More actions

    Thanks for the bug report.

    The underlying cause of this was the CI transition last month from Travis and AppVeyor to GitHub Actions. In commit 2f8527b I have changed the deployment step to use Java 8 and added a comment to the workflow file to ensure it isn't accidentally increased in the future.

    Can you please try out 0.8.1-SNAPSHOT and confirm if it works OK for you? If so I will perform a release.

    Regarding your suggestion of documenting the minimum required Java version, the home page notes we test on Java 8, 11 and 14, so it should work on any of those versions. We'll keep targeting Java 8 for now given there are so many vendors offering long-term support of that specific Java version.

  4. miner commented on Jun 3, 2020

    @miner
    miner
    on Jun 3, 2020
    Author
    More actions

    I tested with 0.8.1-SNAPSHOT. It works for me with both Java 8 and 11. I thought for a moment that you were dropping Java 8 support, but I'm happy to see that you want to keep it. Thanks.

  5. bp-alex commented on Jun 4, 2020

    @bp-alex
    bp-alex
    on Jun 4, 2020
    Member
    More actions

    Thanks for testing the snapshot and confirming it worked.

    I have released 0.8.1, which is now available at Maven Central: https://repo1.maven.org/maven2/org/lmdbjava/lmdbjava/0.8.1/

  6. bp-alex
    closed this as completedon Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue relates to behaviour that violates the intention of the libraryAn issue relates to behaviour that violates the intention of the library

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.