EHCache java.lang.NullPointerException


EHCache connections have been stable until upgrading to EHCache Extension version The prior version we were running was, and we never had any problems. After upgrading, we began experiencing a general instability with all EHCache instances defined on the server. We have not determined the cause of the problem, but rolling back to seems to have removed the issue.

The symptoms are:

1. Verifying cache connections in the server/web admin results in a: "Error java.lang.NullPointerException"
2. Calling cachePut() throws the same error.
3. Verifying an EHCache connection immediately after creating a new one generates the same error.

Symptoms do not go away unless you restart Lucee FROM WITHIN THE SERVER ADMIN. Restarting the Lucee Service on Windows does not clean the EHCache state. This was confusing because I always thought that restarting Lucee from the Services snap in does restart Lucee, but apparently that is not entirely true.


Windows 7 x64
NOTE: This issue does occur on Lucee v., but also occurs on the lower version of v., which is what I have installed, but I cannot enter this in the "Affects Version/s" pull down above because this version is not listed.


Michael Offner
November 10, 2017, 3:00 PM

it only happens when a cache is defined in server admin

Michael Offner
November 10, 2017, 3:00 PM

as workaround define caches only in web admin

Michael Offner
November 10, 2017, 9:20 PM

This fix is only available as SNAPSHOT yet, mean you cannot install in Lucee 5.2 Admin (only in 5.3).
This means you have do download the fix here:
and copy to "/lucee-server/deploy".

A release will follow on a later time

Michael Offner
November 10, 2017, 9:53 PM

Lucee version bundles that Extension, means when you update to you will have that version.

November 11, 2017, 5:02 AM

Now I can't get any ehcache's to work using Lucee and EHCache, which I thought were the stable versions. I wonder if I somehow corrupted my cache settings. How might I reset them? My C:\lucee\tomcat\lucee-server\context\ehcache folder is empty.



Michael Offner






Fix versions



Affects versions