This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch io.netty.tryReflectionSetAccessible
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 76881a878742b9a7706cce64bd686894948b327a
Author: Benoit TELLIER <[email protected]>
AuthorDate: Tue Feb 13 00:20:03 2024 +0100

    Use io.netty.tryReflectionSetAccessible=true JVM option
    
     On Java >= 9 Netty requires the
     io.netty.tryReflectionSetAccessible system property to be
     set to true to enable
     This setting was taken from Cassandra jvm11-server.option
---
 server/apps/cassandra-app/sample-configuration/jvm.properties       | 6 +++++-
 server/apps/distributed-app/sample-configuration/jvm.properties     | 4 ++++
 .../apps/distributed-pop3-app/sample-configuration/jvm.properties   | 4 ++++
 server/apps/jpa-app/sample-configuration/jvm.properties             | 6 +++++-
 server/apps/jpa-smtp-app/sample-configuration/jvm.properties        | 6 +++++-
 server/apps/memory-app/sample-configuration/jvm.properties          | 6 +++++-
 server/apps/scaling-pulsar-smtp/sample-configuration/jvm.properties | 4 ++++
 server/apps/spring-app/pom.xml                                      | 3 ++-
 8 files changed, 34 insertions(+), 5 deletions(-)

diff --git a/server/apps/cassandra-app/sample-configuration/jvm.properties 
b/server/apps/cassandra-app/sample-configuration/jvm.properties
index 6f7e598d17..405391a790 100644
--- a/server/apps/cassandra-app/sample-configuration/jvm.properties
+++ b/server/apps/cassandra-app/sample-configuration/jvm.properties
@@ -58,4 +58,8 @@ jmx.remote.x.mlet.allow.getMBeansFromURL=false
 # Defaults to true, meaning James will use JMAP filters event source 
increments, thus transparently and significantly
 # improving JMAP filter storage efficiency. Snapshots enable to only build the 
aggregate from the last few events.
 # james.jmap.filters.eventsource.increments.enabled=true
-# james.jmap.filters.eventsource.snapshots.enabled=true
\ No newline at end of file
+# james.jmap.filters.eventsource.snapshots.enabled=true
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
\ No newline at end of file
diff --git a/server/apps/distributed-app/sample-configuration/jvm.properties 
b/server/apps/distributed-app/sample-configuration/jvm.properties
index 8cf160fce6..9ac53a5293 100644
--- a/server/apps/distributed-app/sample-configuration/jvm.properties
+++ b/server/apps/distributed-app/sample-configuration/jvm.properties
@@ -62,3 +62,7 @@ jmx.remote.x.mlet.allow.getMBeansFromURL=false
 
 # Default charset to use in JMAP to present text body parts
 # james.jmap.default.charset=US-ASCII
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
diff --git 
a/server/apps/distributed-pop3-app/sample-configuration/jvm.properties 
b/server/apps/distributed-pop3-app/sample-configuration/jvm.properties
index 3676aa5c89..53c0429406 100644
--- a/server/apps/distributed-pop3-app/sample-configuration/jvm.properties
+++ b/server/apps/distributed-pop3-app/sample-configuration/jvm.properties
@@ -53,3 +53,7 @@ james.jmx.credential.generation=true
 # Disable Remote Code Execution feature from JMX
 # CF 
https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/19fb8f93c59dfd791f62d41f332db9e306bc1422/src/java.management/share/classes/com/sun/jmx/remote/security/MBeanServerAccessController.java#L646
 jmx.remote.x.mlet.allow.getMBeansFromURL=false
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
diff --git a/server/apps/jpa-app/sample-configuration/jvm.properties 
b/server/apps/jpa-app/sample-configuration/jvm.properties
index 7154210df7..8a6619c130 100644
--- a/server/apps/jpa-app/sample-configuration/jvm.properties
+++ b/server/apps/jpa-app/sample-configuration/jvm.properties
@@ -50,4 +50,8 @@ james.jmx.credential.generation=true
 # Disable Remote Code Execution feature from JMX
 # CF 
https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/19fb8f93c59dfd791f62d41f332db9e306bc1422/src/java.management/share/classes/com/sun/jmx/remote/security/MBeanServerAccessController.java#L646
 jmx.remote.x.mlet.allow.getMBeansFromURL=false
-openjpa.Multithreaded=true
\ No newline at end of file
+openjpa.Multithreaded=true
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
\ No newline at end of file
diff --git a/server/apps/jpa-smtp-app/sample-configuration/jvm.properties 
b/server/apps/jpa-smtp-app/sample-configuration/jvm.properties
index 7154210df7..8a6619c130 100644
--- a/server/apps/jpa-smtp-app/sample-configuration/jvm.properties
+++ b/server/apps/jpa-smtp-app/sample-configuration/jvm.properties
@@ -50,4 +50,8 @@ james.jmx.credential.generation=true
 # Disable Remote Code Execution feature from JMX
 # CF 
https://github.com/AdoptOpenJDK/openjdk-jdk11/blob/19fb8f93c59dfd791f62d41f332db9e306bc1422/src/java.management/share/classes/com/sun/jmx/remote/security/MBeanServerAccessController.java#L646
 jmx.remote.x.mlet.allow.getMBeansFromURL=false
-openjpa.Multithreaded=true
\ No newline at end of file
+openjpa.Multithreaded=true
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
\ No newline at end of file
diff --git a/server/apps/memory-app/sample-configuration/jvm.properties 
b/server/apps/memory-app/sample-configuration/jvm.properties
index 8a4c348b36..1b41447b6d 100644
--- a/server/apps/memory-app/sample-configuration/jvm.properties
+++ b/server/apps/memory-app/sample-configuration/jvm.properties
@@ -52,4 +52,8 @@ james.jmx.credential.generation=true
 jmx.remote.x.mlet.allow.getMBeansFromURL=false
 
 # Default charset to use in JMAP to present text body parts
-# james.jmap.default.charset=US-ASCII
\ No newline at end of file
+# james.jmap.default.charset=US-ASCII
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
\ No newline at end of file
diff --git 
a/server/apps/scaling-pulsar-smtp/sample-configuration/jvm.properties 
b/server/apps/scaling-pulsar-smtp/sample-configuration/jvm.properties
index 4fb3f69a0f..cf4fe46592 100644
--- a/server/apps/scaling-pulsar-smtp/sample-configuration/jvm.properties
+++ b/server/apps/scaling-pulsar-smtp/sample-configuration/jvm.properties
@@ -43,3 +43,7 @@
 # JMX, when enable causes RMI to plan System.gc every hour. Set this instead 
to once every 1000h.
 #sun.rmi.dgc.server.gcInterval=3600000000
 #sun.rmi.dgc.client.gcInterval=3600000000
+
+# On Java >= 9 Netty requires the io.netty.tryReflectionSetAccessible system 
property to be set to true to enable
+# This setting was taken from Cassandra jvm11-server.option
+io.netty.tryReflectionSetAccessible=true
diff --git a/server/apps/spring-app/pom.xml b/server/apps/spring-app/pom.xml
index 26bdaf8dcd..4f1aa1988a 100644
--- a/server/apps/spring-app/pom.xml
+++ b/server/apps/spring-app/pom.xml
@@ -50,11 +50,12 @@
         
<javamail.system-property10>-Dmail.mime.address.strict=false</javamail.system-property10>
         
<javamail.system-property11>-Djmx.remote.x.mlet.allow.getMBeansFromURL=false</javamail.system-property11>
         
<javamail.system-property12>-Djames.jmx.unregister.log4j.mbeans=true</javamail.system-property12>
+        
<javamail.system-property13>-Dio.netty.tryReflectionSetAccessible=true</javamail.system-property13>
         <javamail.system-properties>${javamail.system-property1} 
${javamail.system-property2}
             ${javamail.system-property3} ${javamail.system-property4} 
${javamail.system-property5}
             ${javamail.system-property6} ${javamail.system-property7} 
${javamail.system-property8}
             ${javamail.system-property9} ${javamail.system-property10} 
${javamail.system-property11}
-            ${javamail.system-property12}
+            ${javamail.system-property12} ${javamail.system-property13}
         </javamail.system-properties>
 
         <!-- JMX system properties -->


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to