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

Provide support for Jakarta EE #50

Open
sleepo581 opened this issue Feb 16, 2023 · 0 comments
Open

Provide support for Jakarta EE #50

sleepo581 opened this issue Feb 16, 2023 · 0 comments
Labels

Comments

@sleepo581
Copy link

Describe the bug

I'm migrating an application from old javax to new jakarta EE packages, however I got a few issues with Uploadcare Java client.
I suppose that Uploadcare uses javax.activation which is conflicting with jakarta.activation package.

The error can be reproduced like this:

  • Add com.uploadcare:uploadcare:3.5.1 dependency
  • Add jakarta.activation:jakarta.activation-api:2.1.1 dependency
  • Try to upload file via FileUploader

Expected behavior

File is uploaded without exceptions

Code / screenshots

java.lang.IllegalAccessError: failed to access class com.sun.activation.registries.LogSupport from class javax.activation.MimetypesFileTypeMap (com.sun.activation.registries.LogSupport and javax.activation.MimetypesFileTypeMap are in unnamed module of loader 'app')
	at javax.activation.MimetypesFileTypeMap.<init>(MimetypesFileTypeMap.java:130)
	at com.uploadcare.api.RequestHelper.getMimeType(RequestHelper.java:80)
	at com.uploadcare.upload.FileUploader.upload(FileUploader.java:127)

Environment

  • 3.5.1
  • Java/SpringBoot
  • macOS
@sleepo581 sleepo581 added the bug label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant