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

2.1.9 - Compatibility with JDK8 #578

Open
luigi-tas opened this issue Dec 28, 2023 · 1 comment
Open

2.1.9 - Compatibility with JDK8 #578

luigi-tas opened this issue Dec 28, 2023 · 1 comment

Comments

@luigi-tas
Copy link

We tryed to use new version 2.1.9 with JBoss7 on JDK8 and we had this error:
Caused by: java.lang.NoSuchMethodError: java.nio.ByteBuffer.mark()Ljava/nio/ByteBuffer;
at org.jpos.tlv.TLVList.skipBytes(TLVList.java:398)
at org.jpos.tlv.TLVList.getTAG(TLVList.java:439)
at org.jpos.tlv.TLVList.getTLVMsg(TLVList.java:355)
at org.jpos.tlv.TLVLis

As stated in this tutorial, I think that it's an issue with compiler of jdk11 :
https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/

We need 2.1.9 of jpos to upgrade version of snakeyml for security issue,
but we have to stay with jdk8.

Thank you

@luigi-tas luigi-tas changed the title Compatibility with JDK8 2.1.9 - Compatibility with JDK8 Dec 28, 2023
@ar
Copy link
Member

ar commented Jan 12, 2024

jPOS 2.1.9 was built on Java 11 and targeted Java 8, so it should have worked. This change in ByteBuffer was unexpected. Please check if jPOS 2.1.10-SNAPSHOT solves this issue and we'll try to make a release soon in order to address this problem. Please confirm at your convenience @luigi-tas.

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