EHCache in Distribution mode throws NullPointerException

Description

Create a distributed cache with mode = auto and a custom Port 4471 and time to live same subnet it throws an error, if I set only one of 8 caches to distribution mode = auto.
Error message "there is no cache with name accessrights" and the cache I test have the name accessRights.
If I put all caches to Distributed, then I got the message NullPointerException for the cache.

If I try to verify the cache in Web Admin, I found also in exception.log:

Environment

RedHat Enterprise Linux x64 7.3
2 node cluster in same subnet and with deactivated firewalls.

Activity

Show:

Michael Offner 19 May 2017 at 20:58

see

Pothys - MitrahSoft 8 May 2017 at 15:24
Edited

I've added test case for this ticket & confirmed the issue.
If we try to create EHcache in application cfc distribution mode = 'true'.
It throw error like

If I create two EHcache with distribution mode = 'true' via admin. After EHcache creation, I want to verify both cache. It throws error for two EHcache
For the First cache:

For the second cache:

It's working fine with distribution = 'off' & distribution = 'manual'.

Pull Request: https://github.com/lucee/Lucee/pull/232

Alexander Diedler 8 May 2017 at 12:59

Update: With current release 5.1.4.19, I got more descriptive error message in Lucee Web admin:
Unable to load class org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory. Initial cause was org.lucee.extension.cache.eh.LuceeRMICacheReplicatorFactory not found by org.lucee.ehcache [78]
Test case: Download Lucee Express 5.1.4.19
Unzip and start with startup.bat
Create a new Cache name "myCache" als normal cache, it works
Edit cache myCache and set to distribution mode = auto and port to 4471 can be saved, but validation in list throws excetion se above.

Duplicate

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 3 May 2017 at 15:42
Updated 3 November 2017 at 09:59
Resolved 19 May 2017 at 20:58