Add more module options to default vmoptions file#194
Add more module options to default vmoptions file#194tonygermano merged 2 commits intoOpenIntegrationEngine:mainfrom
Conversation
mgaffigan
left a comment
There was a problem hiding this comment.
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.
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 <kaur.palang@brightcodecompany.com>
ffcbb65 to
81d4228
Compare
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.
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 <tony@germano.name>
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 <kaur.palang@brightcodecompany.com>
…ine#194) If you click the Get Operations button on a Web Service Sender with a bad URL, the server will throw an exception. The chained exceptions get serialized to send back to the client, and that is where these --add-opens are required. The exceptions include both a java.util.concurrent.ExecutionException and a java.io.IOException. Signed-off-by: Kaur Palang <kaur.palang@brightcodecompany.com>
Add mode
--add-opensdirectives to the default vmoptions.