Issues
- ORMEvictEntity throws Unknown Entity for All EntitiesLDEV-1984Resolved issue: LDEV-1984Michael Offner
- crash viewing debugging logs, with modern template and metrics and reference disabledLDEV-1955Resolved issue: LDEV-1955
- Admin debugging logs, detail view is empty when no debugging template has been configuredLDEV-1954Resolved issue: LDEV-1954Pothys - MitrahSoft
- Datasource JDBC Type 4 driver mysql lucee admin page is wrong on some features nowLDEV-1953Resolved issue: LDEV-1953Michael Offner
- Direct Java access required for lucee admin update page now?LDEV-1952Resolved issue: LDEV-1952Pothys - MitrahSoft
5 of 5
ORMEvictEntity throws Unknown Entity for All Entities
Fixed
Description
Environment
None
is duplicated by
Details
Assignee
Michael OffnerMichael OffnerReporter
Samuel W. KnowltonSamuel W. KnowltonPriority
BlockerLabels
Fix versions
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
Sprint
None
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Samuel W. Knowlton
Samuel W. KnowltonPriority
Labels
Fix versions
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
Sprint
None
Created 4 September 2018 at 11:51
Updated 22 November 2018 at 16:01
Resolved 12 October 2018 at 09:59
Activity
Show:
Samuel W. Knowlton5 November 2018 at 15:11Edited
This issue is marked as fixed in 5.3.1.80 and Hibernate 3.5.5.73, but it still occurs in 5.3.1.87-RC, 5.3.2.4-SNAPSHOT, and 5.3.2.8-SNAPSHOT with Hibernate 3.5.5.73-SNAPSHOT.
Samuel W. Knowlton26 October 2018 at 15:11
Is this fix going to make it into 5.2 or just 5.3?
Samuel W. Knowlton12 October 2018 at 10:52
I don't know about the test case but we were using the correct case. Incorrect case in ORM entities causes plenty of other problems so we are pretty careful about it.
Michael Offner12 October 2018 at 09:29
Michael Offner12 October 2018 at 09:14
problem is in that case the name of the entity is case sensitive, so workaround make sure you are using the correct case for the name
(copied with some updates from the Hibernate Extension project as it didn't get filed there)
Tested in 5.2.8+50 and 5.3.1+38. For a test case, add an ORMEvictEntity("validEntity") call to any ORM app (e.g. a stock Contentbox install).
Any call to ORMEvictEntity will result in the following error. Note that the mapping is valid and we can perform an EntityLoad("School") immediately prior to the error being thrown. We can also dump the ORM Session factory for mapped beans and see the one we've requested.
Note that this also happens even if second level caching is disabling in Application.cfc or Lucee admin. As a quick workaround fix, you might just dodge whatever Lucee is doing here if L2 caching is disabled since ORMEvictEntity doesn't do anything and can be disregarded.