question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NoSuchMethodError: java.nio.ByteBuffer.flip

See original GitHub issue

When run on JDK8, maven build fails with following reported

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.pitest:pitest-maven:1.4.4:mutationCoverage (runPitest) on project isbn: Execution runPitest of goal org.pitest:pitest-maven:1.4.4:mutationCoverage failed: An API incompatibility was encountered while executing org.pitest:pitest-maven:1.4.4:mutationCoverage: java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;

with stacktrace referring to line 34 of https://github.com/hcoles/pitest/blob/9ac9fad55b35b4b2016c932a58c17565239a765d/pitest/src/main/java/org/pitest/util/StreamUtil.java#L30-L39

Similar to https://jira.mongodb.org/browse/JAVA-2559 (as linked in https://github.com/functional-streams-for-scala/fs2/issues/1357).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
hcolescommented, Jan 28, 2019

Just rebuilt on java 8 as 1.4.5, hopefully this resolves the issue. Thanks for reporting.

0reactions
pzygielocommented, Jan 28, 2019

Confirmed, 1.4.5 solves my issue. Hope it works for @asm0dey as well. Thank you for new release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer · 1. Why can't you use the same jdk of ...
Read more >
Method flip()Ljava/nio/ByteBuffer; does not exist in class java ...
Attempting to run ABCL triggers this error. Exception in thread "interpreter" java.lang.NoSuchMethodError: Method flip()Ljav a/nio/ByteBuffer; ...
Read more >
ByteBuffer and the Dreaded NoSuchMethodError
java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer; at io.debezium.connector.postgresql.connection.
Read more >
3 older comments - Apache
NoSuchMethodError : java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;. Status: Assignee: Priority: Resolution: Resolved. Unassigned.
Read more >
JDK11: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()
1Exception in thread "socket_c2s-thread-3" java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found