Failed initializing component ThreadPool in protocol UDP #687
-
Hello all, After upgrading org.jgroups:jgroups:jar:5.2.9.Final to version 5.2.10.Final when using new JChannel() I am getting: Caused by: java.lang.IllegalArgumentException: failed initializing component ThreadPool in protocol UDP: java.lang.IllegalStateException: failed to create virtual thread pool: java.lang.UnsupportedOperationException: Preview Features not enabled, need to run with --enable-preview I see : Preview Features not enabled, need to run with --enable-preview Thanks for any response. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
OK, so when running under a JDK that has virtual threads available, there's 2 things you can do:
If you run in a JVM that doesn't have virtual threads, you don't need to do anything and virtual thread won't (and can't) be used. |
Beta Was this translation helpful? Give feedback.
OK, so when running under a JDK that has virtual threads available, there's 2 things you can do:
use_virtual_threads="true"
inUDP
and use--enable-preview
use_virtual_threads="false"
inUDP
If you run in a JVM that doesn't have virtual threads, you don't need to do anything and virtual thread won't (and can't) be used.