[CB 3.8.1] "coldbox.system.orm.hibernate.WBEventHandler is not a valid ORM event handler."

I recently upgraded from CF10 to CF11. All seems to be working fine until I try to run a CB App and get the following error:

# coldbox.system.orm.hibernate.WBEventHandler is not a valid ORM event handler.#

It must implement interface cfide.orm.IEventHandler

I checked, and WBEventHandler does implement cfide.orm.IEventHandler

Line 57: component implements=“CFIDE.orm.IEventHandler”{

Does anyone have any idea what might be happening here? I have tried copying CFIDE folder into the web root from ColdFusion/cfusion/wwwroot… have tried setting up a mapping in Applicaiton.cfc, but nothing I try seems to make a difference.

Has anyone come across this before? Any pointers?

Many Thanks

Yes, there are a few new events you need to add to the Event Handler.

Hi Jason,

Looks like methods implemented are mismatched.

Please check coldbox.system.orm.hibernate.WBEventHandler have all implemented method… Attched EventHandler.cfc from cborm module, i think there are 2 extra methods in CF11 which should be in WBEventHandler.cfc . Compare both files

EventHandler.cfc (5.04 KB)

That was it.

I just needed to add a preFlush and postFlush method to by ColdBox Event Handlers and all working fine.

Many Thanks for our help! Really Appreciated!!

Jason, I would encourage you to upgrade to ColdBox 4.1 with the new cborm module as it is updated for the latest versions of Adobe CF.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Thanks Brad. Would love to. We are actually trying to talk client into moving over to Lucee and would upgrade to cb4 as a part of this. While I have you, would upgrading be as simple as replacing the coldbox folder?

Since ColdBox 4 is a major release, there are some upgrade tasks you would need to perform. The amount of work depends on what features your app uses. Read through our compatibility guide here:

http://coldbox.ortusbooks.com/content/introduction/upgrading_to_coldbox_400.html

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com