Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodError: java/nio/ByteBuffer.flip()Ljava/nio/ByteBuffer #55

Closed
mike-howell opened this issue Jun 29, 2019 · 1 comment
Closed
Assignees
Labels
Bug Something is not working as expected
Milestone

Comments

@mike-howell
Copy link

Hi,

Java 9 changed the interface to ByteBuffer.flip() from returning Buffer to ByteBuffer. In the FileHasherImpl.has method calls the flip method on a Java 8 it will throw a NoSuchMethodError exception.

I googled the error and found this: [https://github.com/plasma-umass/doppio/issues/497](at the doppio project)

My stacktrace:

Caused by: java.lang.NoSuchMethodError: java/nio/ByteBuffer.flip()Ljava/nio/ByteBuffer; (loaded from C:\Program Files\AdoptOpenJDK\jdk-8.0.212.03-openj9\jre\lib\rt.jar by <Bootstrap Loader>) called from class org.siouan.frontendgradleplugin.core.FileHasherImpl (loa ded from file:/C:/Users/HowellM/.gradle/caches/modules-2/files-2.1/org.siouan/frontend-gradle-plugin/1.2.0/46a6a486eabfd2643fb05e85f4aba508da14cfc1/frontend-gradle-plugin-1.2.0.jar by VisitableURLClassLoader(ClassLoaderScopeIdentifier.Id{root:C:\Users\HowellM\IdeaP rojects\dispatch-workflow\buildSrc:root-project(export)})). at org.siouan.frontendgradleplugin.core.FileHasherImpl.hash(FileHasherImpl.java:38) at org.siouan.frontendgradleplugin.core.NodeDistributionValidator.validate(NodeDistributionValidator.java:74) at org.siouan.frontendgradleplugin.core.DistributionInstaller.install(DistributionInstaller.java:61) at org.siouan.frontendgradleplugin.tasks.NodeInstallTask.execute(NodeInstallTask.java:83)

To Reproduce
I just followed the README here at the project in a very vanilla Spring Boot 2.1.5-RELEASE rest api application with a default generated vue cli project added to a sub folder and then I ran gradlew build and got the error.

Environment:

  • OS: Windows 10 Enterprise
  • JDK: AdoptOpenJDK 1.8.0_212-b03 / Eclipse OpenJ9 openj9-0.14.0
  • Gradle: 5.2.1
  • Frontend Gradle plugin: 1.2.0
@v1nc3n4 v1nc3n4 self-assigned this Jul 1, 2019
@v1nc3n4 v1nc3n4 added the Bug Something is not working as expected label Jul 1, 2019
@v1nc3n4 v1nc3n4 added this to the 1.2.1 milestone Jul 1, 2019
@v1nc3n4
Copy link
Member

v1nc3n4 commented Jul 1, 2019

Hi Michael,

Thank you for this feedback. I could reproduce the problem. The fix will be available quickly.

Regards,
Vincent

v1nc3n4 added a commit that referenced this issue Jul 1, 2019
@v1nc3n4 v1nc3n4 closed this as completed in 25c3039 Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants