ORM cache error when secondary cache is enabled and autoManageSession/flushAtRequestEnd are false

Description

The following ORM settings...

...cause the following org.hibernate.cache.CacheException on OrmReload():

There is no workaround other than to disable the secondary cache, which has performance implications.

Previously raised in

Config:
Lucee 5.2.6.59
Hibernate: 3.5.5.70
ehCache: 2.10.0.30

Environment

None

Activity

Show:
Michael Offner
June 4, 2018, 6:46 AM

sorry i missed the comment.
In Lucee 5 hibernate is no longer part of the core, it was moved to an extension, as you can see in the ticket it was fixed in Hibernate 3.5.5.62.
Latest release of the hibernate extension is 3.5.5.70 and latest snapshot is 3.5.5.71.
This versions are also bundled with the latest release and snapshot. In the server admin under extension you can see what version you have bundled and you can update if necessary.

Seth Johnson
June 5, 2018, 2:54 AM

,

We are using 3.5.5.70 when this error is occurring.

Pothys - MitrahSoft
June 5, 2018, 5:50 AM

Hi ,

I've added test case for this ticket & confirmed the issue happened on Hibernate 3.5.5.71-SNAPSHOT & 3.5.5.70-SNAPSHOT versions.

Issues is reproduced only when we use this.ormsettings.cacheconfig = "ehcache.xml", While two application use same ehcache issue is reproduced once again.

If we doesn't use this.ormsettings.cacheconfig = "ehcache.xml" in application.cfc two or more application use the same ehcache without any issues

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

Seth Johnson
June 6, 2018, 11:36 PM

Hi ,

We are not defining the cacheconfig in the ormsettings, we are just using whatever Lucee (or Hibernate) generates.

In this case: ta_3E15565AB9FF39E2B40EBAFD3DF355F6.xml

Pothys - MitrahSoft
September 6, 2018, 11:51 AM

Hi ,

I couldn't able to reproduce without the cache config. Can you please test with above zip file. Or post your application here if you can.

Fixed

Assignee

Michael Offner

Reporter

Seth Johnson

Priority

Blocker

Labels

Fix versions

Configure