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

Deployment 6.0 fails: java.lang.reflect.InaccessibleObjectException #10068

Closed
lmaylein opened this issue Oct 30, 2023 · 4 comments
Closed

Deployment 6.0 fails: java.lang.reflect.InaccessibleObjectException #10068

lmaylein opened this issue Oct 30, 2023 · 4 comments
Labels
Type: Bug a defect

Comments

@lmaylein
Copy link
Contributor

Hi,

I tried to update from 5.14 to 6.0 on our test server but the deployment of dataverse-6.0.war fails:

I followed the instructions at https://github.com/IQSS/dataverse/releases/tag/v6.0 step by step.

java -version
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)

This results in

  Exception while loading the app
java.lang.reflect.InaccessibleObjectException: Unable to make private static java.lang.ClassLoader java.io.ObjectInputStream.latestUserDefinedLoader() accessible: module java.base does not "opens java.io" to unnamed module @7101112b

complete server.log:

server.log

@lmaylein lmaylein added the Type: Bug a defect label Oct 30, 2023
@pdurbin
Copy link
Member

pdurbin commented Oct 30, 2023

@lmaylein did you run this command?

sudo -u dataverse /usr/local/payara6/bin/asadmin create-jvm-options --add-opens=java.base/java.io=ALL-UNNAMED

In the 6.0 release notes, as of this writing, it's step 15: Enable workaround for FISH-7722. The following workaround is for payara/Payara#6337

@lmaylein
Copy link
Contributor Author

lmaylein commented Oct 30, 2023

@pdurbin

did you run this command?

yes. But due to your question I found the following in the log file.

reason = Addition of: '--add-opens=java.base/java.io=ALL-UNNAMED' cannot take effect wit
hout server restart

Maybe this should be add between step 15 and 17 in the upgrade instructions :-)

@pdurbin
Copy link
Member

pdurbin commented Oct 30, 2023

@lmaylein hmm, Good idea. In the same step I just added that you should restart Payara:

1. Enable workaround for FISH-7722.

   The following workaround is for https://github.com/payara/Payara/issues/6337

   `sudo -u dataverse /usr/local/payara6/bin/asadmin create-jvm-options --add-opens=java.base/java.io=ALL-UNNAMED`

   Afterwards, you must restart Payara.

   `sudo -u dataverse /usr/local/payara6/bin/asadmin stop-domain`

   `sudo -u dataverse /usr/local/payara6/bin/asadmin start-domain`

@lmaylein
Copy link
Contributor Author

Thanks! The deployment worked without any problem afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect
Projects
None yet
Development

No branches or pull requests

2 participants