Closed endoplasmicR closed 3 years ago
Many thanks @endoplasmicR . As @billonahill suggested, could you please revert the formatting changes so that the diff is easier to read?
hey @cyrille-leclerc thanks for the comment and merging the change.
hi, @cyrille-leclerc can you help with merging this PR? also, can we get a new release if possible? Thank you
Can you please test https://github.com/jmxtrans/jmxtrans-agent/releases/tag/jmxtrans-agent-1.2.11-rc-2 and i'll cut a release. Thanks again for your contribution.
Can you please test https://github.com/jmxtrans/jmxtrans-agent/releases/tag/jmxtrans-agent-1.2.11-rc-2 and i'll cut a release. Thanks again for your contribution.
Will do, thanks for merging
hey, @cyrille-leclerc we are running into an interesting issue with:
java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
Triggered from https://github.com/jmxtrans/jmxtrans-agent/blob/master/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java#L231
I think the root cause is exactly https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip
curious which JDK version was used to compile and release into maven?
@endoplasmicR I probably have used OpenJDK 15.
Precisely
java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
The explicit casting suggested in the stackoverflow article seems to be a good solution to me as it doesn't put constraints on the build process. What do you think?
@endoplasmicR I probably have used OpenJDK 15.
Precisely
java -version openjdk version "15.0.2" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
The explicit casting suggested in the stackoverflow article seems to be a good solution to me as it doesn't put constraints on the build process. What do you think?
Yes, I have submitted a PR https://github.com/jmxtrans/jmxtrans-agent/pull/156, can you update the RC version if possible?
Thank you.
…classed more easily. This is needed since main fields (e.g.
statsType
,tags
) areprivate
instead ofprotected
, which means that the child class can not override the parsing easily.