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

Got java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip() testing the version 1.2.11-rc-2 #155

Closed
endoplasmicR opened this issue Feb 26, 2021 · 4 comments

Comments

@endoplasmicR
Copy link
Contributor

When testing the version 1.2.11-rc-2

We saw an exception triggered from https://github.com/jmxtrans/jmxtrans-agent/blob/master/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java#L231

The root cause is exactly https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip

which JDK version was used to compile and release into maven? if possible, can we add the --release 8 flag to avoid the issue

@cyrille-leclerc
Copy link
Member

Thanks @endoplasmicR for the fix 66c8e01

Can you please test v1.2.11-rc-3 ?

@endoplasmicR
Copy link
Contributor Author

Thanks for merging!
I have just test it again and still got the same error, i have tried a different fix and looks like it got it resolved. sending a PR now

@endoplasmicR
Copy link
Contributor Author

The fix is in PR:
#157
this should ensure cross version compatibility

@cyrille-leclerc
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants