EHCache replication works only for simple datatypes


For a simple CachePut with Datatypes String and Number, the values are replicated asap to the other instance.
If I put more complex values to the Cache with CachePut (Arry, Struct, Datetime Object) the data was stored in the local Cache, but not replicated to the other caches.

Code to reproduce, String and Number ok, other not ok.


CentOS in a VirtualBox with Lucee updated with lco file and EHCache Extension Version and OSGi EHCache Implementation Version 2.10.3. Two instances in parallel on same System, ports 8888 and 9999


Alexander Diedler
November 6, 2017, 11:18 AM

Thank you to confirm. I have no idea how to write a UnitTest for that, because it was only reproducable with Cluster. Is there a Chance to have a fix this week for a quick implementation.

Michael Offner
November 6, 2017, 7:00 PM

that is what is happening, the thread created by RMI does not use our classloader.

Alexander Diedler
March 15, 2018, 9:13 AM

Could you push these issue to one of the next sprints? We used EHCache since Railo exists and with the EOL for Railo and starting with Lucee, the problems starts also for us and the customers. We hanging with a cluster project now for more than one year because we cannot finish the cluster setup in case of missing issue like this.

Michael Offner
September 3, 2018, 7:14 PM

most likely a fix is not possible , we need to update to EHCache 3 that is OSGi ready to solve this.
Sadly there are big differences between EHCache 2 and 3, there is no caching configuration on object level anymore.
So an update without breaking compatibility is not possible.

Michael Offner
September 6, 2018, 9:25 PM


Michael Offner


Alexander Diedler




Fix versions



Affects versions