-
Notifications
You must be signed in to change notification settings - Fork 73
Coherence FAQ
- Question: Not able to start/join a cluster using the default multicast networking?
- Question: I’m getting IllegalAccessExceptions when running with JDK 17 (or newer)?
- Question: I’m getting java.io.InvalidClassException: filter status: REJECTED when using Coherence with Helidon 3.x and JDK 17. How do I resolve this?
- Question: Are there any articles/presentations/demos about Coherence?
For example, if you are trying to start a cluster on a dev machine when connected to a VPN.
Answer: Start coherence using the following system properties:
-Dcoherence.ttl=0
-Djava.net.preferIPv4Stack=true
-Dcoherence.localhost=127.0.0.1
-Dcoherence.wka=127.0.0.1
Answer: At the moment, the following JVM options must be included to resolve this issue:
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
--add-exports=java.management/sun.management=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
To debug these types of issues, you can also include --illegal-access=debug
to provide
additional details.
Question: I’m getting java.io.InvalidClassException: filter status: REJECTED when using Coherence with Helidon 3.x and JDK 17. How do I resolve this?
Answer: This exception is raised due to the serialization filtering being enabled. To resolve this, add the following system property when starting the JVM:
-Djdk.serialFilter=*;!*
See Serialization Filtering for more details on this feature.
Presentations:
Articles:
-
Hello Coherence, Part 1 (server-side implementation of To Do List with Helidon)
-
Hello Coherence, Part 2 (front-end implementation with React and JavaFX)
-
Hello Coherence, Part 3 (deployment to Kubernetes, scaling and monitoring)
-
Hello, Coherence — Now with Micronaut! (server-side implementation of To Do List with Micronaut)
-
Hello Coherence - Bootiful Spring (server-side implementation of To Do List with Spring Boot)
Demos:
Sock Shop - a full-fledged microservices app with 6 services. The demo comes in a variety of flavors:
ToDo List - A simple ToDo application that demonstrated using various technologies and languages