tracker issue : CF-4198563

select a category, or use search below
(searches all categories and all time range)
Title:

Update 23 Ehcache Configuration Error

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Jack Cambridge / Jack Cambridge ()

Created: 04/26/2017

Components: Caching

Versions: 10.0

Failure Type: Others

Found In Build/Fixed In Build: https://helpx.adobe.com/coldfusion/kb/coldfusion-10-update-23.html /

Priority/Frequency: Normal /

Locale/System: / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:
After upgrading to ColdFusion 10 Update 23, we get the following error on all of our pages:
net.sf.ehcache.config.InvalidConfigurationException - in ....cfm : line ...
     There is one error in your configuration:
  * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager

We downgraded to Update 22, which fixes the error.

Steps to Reproduce:
After updating to ColdFusion 10 Update 23 use cfquery caching.

Actual Result:
The error above.

Expected Result:
No error

Any Workarounds:
Downgrade to Update 22

Attachments:

  1. April 27, 2017 00:00:00: auth-ehcache.xml
  2. April 27, 2017 00:00:00: ehcache.xml

Comments:

@Jack - Would it possible for you to share some code snippet, error logs? is your code using maxelementsinmemory property. If yes, note that this has been renamed to maxentrieslocalheap since ehCahce has deprecated the same. Also, if ehCache.xml has been modified, it would help if you can share the same as well.
Comment by Poonam J.
887 | April 27, 2017 08:22:18 AM GMT
The code does not use maxelementsinmemory. It is simply doing a cfquery with the cachedwithin parameter. I have attached our auth-ehcache.xml and ehcache.xml, that we have not modified. I have attached some relevant log entries: "Information","ajp-bio-8012-exec-5","04/26/17","00:08:35",,"Session rotated successfully." "Error","ajp-bio-8012-exec-5","04/26/17","00:16:10",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Information","ajp-bio-8012-exec-9","04/26/17","00:16:53",,"Session rotated successfully." "Error","ajp-bio-8012-exec-3","04/26/17","00:20:00",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-9","04/26/17","00:22:03",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-5","04/26/17","00:24:52",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-11","04/26/17","00:25:00",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-1","04/26/17","00:25:17",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-13","04/26/17","00:26:27",,"Exception thrown by error-handling template:" "Error","ajp-bio-8012-exec-13","04/26/17","00:26:27",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 21 " "Error","ajp-bio-8012-exec-13","04/26/17","00:26:27",,"File not found: /content/customerservice/timberland-gifts.cfm The specific sequence of files included or processed is: ...'' " "Error","ajp-bio-8012-exec-7","04/26/17","00:30:30",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-10","04/26/17","00:30:34",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-2","04/26/17","00:30:35",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Information","ajp-bio-8012-exec-6","04/26/17","00:30:58",,"Session rotated successfully." "Error","ajp-bio-8012-exec-5","04/26/17","00:31:05",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-6","04/26/17","00:31:09",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-7","04/26/17","00:31:11",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-10","04/26/17","00:31:16",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-2","04/26/17","00:31:23",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-3","04/26/17","00:31:35",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-7","04/26/17","00:31:44",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-7","04/26/17","00:31:58",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-8","04/26/17","00:32:01",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-2","04/26/17","00:32:03",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-4","04/26/17","00:32:10",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-5","04/26/17","00:32:34",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Error","ajp-bio-8012-exec-1","04/26/17","00:33:16",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Information","ajp-bio-8012-exec-8","04/26/17","00:38:09",,"Session rotated successfully." "Error","ajp-bio-8012-exec-4","04/26/17","00:38:27",,"There is one error in your configuration: * Cache 'QUERY' error: MaxElementsInMemory is not compatible with MaxBytesLocalHeap set on cache manager The specific sequence of files included or processed is: ..., line: 15 " "Information","ajp-bio-8012-exec-7","04/26/17","00:45:06",,"Session rotated successfully."
Comment by Jack C.
888 | April 27, 2017 03:37:59 PM GMT
@Jack: Are you using any Ehcache.xml at application level also? Also, Can you provide me the Ehcache jar version. You can get the version at CF admin-> system info ->CF Server java class level path.
Comment by Poonam J.
889 | May 02, 2017 09:01:57 AM GMT
Note that we currently downgraded to Update 22 to fix this issue. On Update 22, we have the following in the class path: ehcache-core-2.6.6.jar and ehcache-web-2.0.4.jar. After we upgrade to Update 23, that is when the problem occurs, however we are not using that version now because it causes the issue.
Comment by Jack C.
890 | May 02, 2017 08:34:34 PM GMT
@Jack: Can you please replace all the occurrences of maxelementsinmemory with maxentrieslocalheap in ehcache.xml file? After this step update your ColdFusion to update 23 and restart your server. Let us know if this fixes the issue.
Comment by Poonam J.
891 | May 09, 2017 04:11:54 AM GMT
@Jack, did you get a chance to try the suggestion by Poonam, and if yes, did it work?
Comment by Vamseekrishna N.
892 | May 23, 2017 07:58:13 AM GMT