-
Notifications
You must be signed in to change notification settings - Fork 36
Add more module options to default vmoptions file #194
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
base: main
Are you sure you want to change the base?
Add more module options to default vmoptions file #194
Conversation
jonbartels
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mgaffigan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to be removing opens - not adding them, but I don't see a downside this PR.
tonygermano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the correct thing to do or not. As it is, I think this file only contains the minimum required by the java code in this project.
Do we want to be adding modules just because they could potentially be used in user code or should those just be added to the user's custom options as required?
|
@kpalang, can you document what is benefitting from these additional opens? |
|
You two are expecting me to remember why they were needed... I've now spent an some time looking into it and absolutely cannot find why they were needed... |
|
Re-opening as I've found why some of options were needed: The following two options are required when clicking the |
Signed-off-by: Kaur Palang <[email protected]>
ffcbb65 to
81d4228
Compare
mgaffigan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
So, the interesting thing is that it's only a problem if you give it a bad url, and then it can't serialize the following two exceptions. If you give it a good URL, then it's not a problem, and with a bad URL + these add-opens, you just get a different exception. |
tonygermano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you turned off the ability for maintainers to make changes, can you apply this patch to fix the order? 😝 You can squash it after applying.
From 8029fc66a8b0f64a7dfc166fea02f4e149eb9018 Mon Sep 17 00:00:00 2001
From: Tony Germano <[email protected]>
Date: Tue, 11 Nov 2025 21:13:20 -0500
Subject: fix order
---
server/conf/default_modules.vmoptions | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/conf/default_modules.vmoptions b/server/conf/default_modules.vmoptions
index c53651e1f..32a51e085 100644
--- a/server/conf/default_modules.vmoptions
+++ b/server/conf/default_modules.vmoptions
@@ -5,6 +5,7 @@
--add-modules=java.sql.rowset
--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED
--add-exports=java.base/sun.security.provider=ALL-UNNAMED
+--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.math=ALL-UNNAMED
@@ -13,11 +14,10 @@
--add-opens=java.base/java.security.cert=ALL-UNNAMED
--add-opens=java.base/java.text=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
+--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/sun.security.pkcs=ALL-UNNAMED
--add-opens=java.base/sun.security.rsa=ALL-UNNAMED
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
---add-opens=java.base/java.io=ALL-UNNAMED
---add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.desktop/java.awt=ALL-UNNAMED
--add-opens=java.desktop/java.awt.color=ALL-UNNAMED
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
--
2.39.5Source: OpenIntegrationEngine#194 (review) Signed-off-by: Kaur Palang <[email protected]>
mgaffigan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add mode
--add-opensdirectives to the default vmoptions.