-
Notifications
You must be signed in to change notification settings - Fork 582
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
JDK 17 passing add-opens as a parameter #6095
Comments
Which platform are you using? Local, Local-Docker, Kubernetes or Cloud Foundry? |
Sorry I missed to mention it; Kubernetes |
@luf How are you passing the configured the values? If you put double quotes around the value it should be treated as one and not split. |
@luf Do you want to set this for all applications launched or just a specific application? |
@corneil Just a specific application |
Description:
We need to pass --add-opens parameter to batch job applications with SCDF as specified below, but when we pass, it splits parameter with white-space wrongly.
https://stackoverflow.com/questions/28327620/difference-between-java-options-java-tool-options-and-java-opts
When we provide below parameter;
_JAVA_OPTIONS=--add-opens java.base/java.lang=ALL-UNNAMED
It splits them as two different argument as;
and throws exception for using / character as parameter key.
See;
https://stackoverflow.com/questions/74783705/unrecognized-option-add-opens-when-passed-with-java-options
Release versions:
2.11.4
All known escaping methods have been tried, (backslash, backslash+double-quote, double-quote, double single-quote etc)
Since each batch application may have different module openings with Java 17, do you have any guidance on how to specify the application specifically?
The text was updated successfully, but these errors were encountered: