voxpupuli / puppet-jira

Atlassian JIRA Puppet Module
https://forge.puppet.com/puppet/jira
Apache License 2.0
62 stars 143 forks source link

Java 11 Compatibility #300

Closed nambrosch closed 3 years ago

nambrosch commented 5 years ago

This parameter breaks compatibility with jdk11 -

https://github.com/voxpupuli/puppet-jira/blob/a40b36fbb8631d889b8691ff9e7aa51ad1d23ab5/templates/setenv.sh.erb#L50

Here is the exception -

Unrecognized VM option 'PrintGCDateStamps'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Emptying this option allows Jira to start.

wolfaba commented 3 years ago

any temporary workaround for this issue until the update is released? thank you!

nambrosch commented 3 years ago

@wolfaba i believe adding -XX:+IgnoreUnrecognizedVMOptions to java_opts should help.

wolfaba commented 3 years ago

@nambrosch Perfect! It works! Cool backward compatibility option :smile: Thank you very much!