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

JakartaEE and Java 21 issues #1928

Open
alexandernajafi opened this issue Feb 21, 2024 · 0 comments
Open

JakartaEE and Java 21 issues #1928

alexandernajafi opened this issue Feb 21, 2024 · 0 comments

Comments

@alexandernajafi
Copy link

alexandernajafi commented Feb 21, 2024

I'm upgrading to JakartaEE and Java21 and is running into issues. I'm imorting AHC version 3.0.0.Beta3 with

implementation 'org.asynchttpclient:async-http-client:3.0.0.Beta3'

But I'm getting errors related to jakarta.activation. When I try to add a body part to a request builder, I'm getting an error:

java.lang.ArrayStoreException: arraycopy: element type mismatch: can not cast one of the elements of java.lang.Object[] to the type of the destination array, jakarta.activation.MimeTypeRegistry

It works fine when I'm adding a StringPart, but this is when I try to add a InputStreamPart in the same requestBuilder.

If I import angus-activation instead, it seems to work, but it should really not be needed.

    implementation('org.asynchttpclient:async-http-client:3.0.0.Beta3') {
        exclude group: 'com.sun.activation', module: 'jakarta.activation'
    }
    implementation 'org.eclipse.angus:angus-activation:2.0.1'
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

1 participant