tracker issue : CF-3855838

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

org.hibernate.WrongClassException

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Timothy Knell / Timothy Knell (timknell)

Created: 11/21/2014

Components: ORM Support

Versions: 9.0.1

Failure Type: Crash

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description: A hibernate error occurs occasionally. Restarting the ColdFusion server is the only way we know to make the error go away.

Steps to Reproduce: Unknown. This error happens without any known pattern.

Actual Result: An exception occurs on all requests to any ColdFusion resources: org.hibernate.WrongClassException: Object with id: 26 was not of the specified subclass: Firm (loaded object was of wrong class class coldfusion.orm.PersistentTemplateProxy). This or a similar error occurs.

Expected Result: No error.

Any Workarounds:
Restart ColdFusion.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3855838

External Customer Info:
External Company:  
External Customer Name: timknell
External Customer Email:  
External Test Config: My Hardware and Environment details: Running ColdFusion 9.0.2 on Windows Server 2008 x64 in a virtual environment (although we encountered the same error on a physical environment).

Attachments:

Comments:

Our application occasionally produces errors similar to the one below. It happens randomly as far as we can tell (meaning there doesn’t seem to be any event that causes this to happen, although it’s possible that it is related to deploying new code to production). We are able to resolve the immediate issue by restarting the ColdFusion instance, which of course is not optimal, but it does make the error go away. The only place online that I could find people discussing this issue is here: : https://groups.google.com/forum/#!topic/cf-orm-dev/f3Dj-2kFoIk. We are running CF9.0.2 Enterprise in multi-instance mode. org.hibernate.WrongClassException: Object with id: 26 was not of the specified subclass: Firm (loaded object was of wrong class class coldfusion.orm.PersistentTemplateProxy) coldfusion.orm.hibernate.HibernatePersistenceManager$EntityLoadException: Error while loading the entity. at coldfusion.orm.hibernate.HibernatePersistenceManager.load(HibernatePersistenceManager.java:403) at coldfusion.orm.hibernate.HibernatePersistenceManager.load(HibernatePersistenceManager.java:353) at coldfusion.orm.ORMUtils._entityLoad(ORMUtils.java:131) at coldfusion.orm.ORMUtils.entityLoad(ORMUtils.java:107) at coldfusion.runtime.CFPage.EntityLoad(CFPage.java:7657) at cfcreateOrder2ecfc782630026$funcCREATEORDERRESTRICTIONS.runFunction([...obfuscated...])
Comment by External U.
9984 | November 21, 2014 08:22:09 AM GMT
Hi Tim, Can you please provide a sample code along with settings summary using which I can try to repro this issue ?
Comment by Nimit S.
9985 | June 19, 2015 03:52:06 AM GMT
Hi Tim, Please provide a sample code along with settings summary using which I can try to repro this issue.
Comment by Nimit S.
9986 | August 03, 2015 08:55:44 AM GMT
Hi Tim, It has been a long time since we have received any update on this. So we are closing this bug. If you are still facing this issue please feel free to reach us.
Comment by Nimit S.
9987 | August 19, 2015 01:03:52 AM GMT
This issue has started occurring on CF11, for no apparent reason. (No code changes related to the entity it's doing it with.) It's unfortunately not possible to get a reproducible test case out of this application, but there is a whole bunch of info in the following mailing list thread which should help with narrowing down what the cause is: https://groups.google.com/forum/#!topic/cf-orm-dev/f3Dj-2kFoIk
Comment by External U.
9988 | February 11, 2016 07:12:59 AM GMT