KB Article #177814

Ehcache fails to replicate even though RMI port has been opened at firewall

Problem

* Even though the distributed cache's RMI port has been opened in both directions at the firewall, the cache fails to replicate and errors like the following are observed in the trace file:

Exception on replication of putNotification. Connection refused to host: 10.0.0.1; nested exception is: java.net.ConnectException: Connection timed out.


Resolution

-- Ehcache also has a remote object port which should be specified and opened so you can ensure that it passes your firewall. Add remoteObjectPort=40002 (or any other available port number) to the properties for the Event Listener in the distributed cache's configuration, open that port in your firewalls, then deploy and replication will no longer be blocked.