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

fix "ClassNotFoundException: javax.xml.bind.JAXBException" with Java 10 #1

Merged
merged 1 commit into from
May 7, 2018
Merged

Conversation

adrienjoly
Copy link
Contributor

Copy link
Member

@vladholubiev vladholubiev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up! LGTM, will publish to NPM now

@vladholubiev vladholubiev merged commit 1a76f14 into shelfio:master May 7, 2018
@vladholubiev
Copy link
Member

A new version of the package tika-text-extract (2.2.0) was published at 2018-05-07T22:56:25.955Z from 77.1XX.XX.XX. The shasum of this package was 9341f62d2e0f166977829945a72c09b1bae2defc.

@adrienjoly
Copy link
Contributor Author

Awesome! Thanks!

@vladholubiev
Copy link
Member

@adrienjoly hey, does your fix work for you? I have the following error:

Unrecognized option: --add-modules=java.xml.bind,java.activation
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
error: Unrecognized option: --add-modules=java.xml.bind,java.activation
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

@adrienjoly
Copy link
Contributor Author

It did with Java v10.

What version of Java are you using, @vladgolubev?

Can you share a sample program that I can quickly execute to test on my end, please?

@vladholubiev
Copy link
Member

@adrienjoly ah, ok then, I run this in AWS Lambda where it has Java 8 only, thanks

@adrienjoly
Copy link
Contributor Author

I will try to run it on Java 8 to see if I can reproduce this behavior, and maybe find a fix that works with both versions.

@adrienjoly
Copy link
Contributor Author

Ok, I'm getting the same error as you, when running my script using Java 8...

Apparently, that workaround just works with Java 9+, but it's not compatible with older version of Java... (see aws/aws-sdk-java#1092)

Feel free to close this PR until a better solution can be found. Unfortunately, I will not spend more time on this for now, as I don't plan to use Tika yet.

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

Successfully merging this pull request may close these issues.

2 participants