Coldfusion ORM: Failed to lazily initialize a collection of role…..

Coldfusion 10 was giving me the following error. 

Application Execution Exception
Error Type: org.hibernate.LazyInitializationException : [N/A]
Error Messages: failed to lazily initialize a collection of role: blm_doc.blm_doc_cases, no session or session was closed

The problem was that following property of the ORM object that was being saved did not have the ormtype set in the property.

property name=”declined_date”
column=”DECLINED_DATE”
sqltype=”DATE”
ormtype=”date”;

The problem only occurred when I tried to save with the declined_date value filled in, otherwise it saved just fine.

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s