Upgrading from CF10 To 2016 with ColdBox

101 views
Skip to first unread message

chase

unread,
Sep 15, 2016, 11:46:26 PM9/15/16
to ColdBox Platform
Hey everyone!

I'm new to this group and was hoping someone might be able to provide some assistance with an issue I'm currently experiencing. I'm in the process of upgrading a server from CF10 to CF2016 using Coldbox 3.8.1. Unfortunately, after configuring the settings I'm getting this error. Could anyone point me in the direction of what's breaking? We're using ORMServices but the system was working correctly in the previous state so I'm assuming theirs a deeper issue other then the preFlush method not being implemented.

Thank you in advanced for any feedback!


Error creating validatorModel: model.SecurityService

Error building: coldbox.system.plugins.ORMService -> CFC coldbox.system.orm.hibernate.EventHandler does not implement the interface CFIDE.orm.IEventHandler. The preFlush method is not implemented by the component or it is declared as private. with constructor arguments: {controller={[(Component=coldbox.system.web.Controller)]}}Mapping: {PATH={coldbox.system.plugins.ORMService},MIXINS={[]},THREADSAFE={false},DISETTERS={[]},PROVIDERMETHODS={[]},AUTOWIRE={true},SCOPE={singleton},ALIAS={[]},VALUE={},AUTOINIT={true},DSL={},DICONSTRUCTORARGS={[{JAVACAST={null},REF={null},SCOPE={variables},REQUIRED={true},VALUE={[(Component=coldbox.system.web.Controller)]},DSL={null},ARGNAME={},NAME={controller}}]},TYPE={cfc},DIPROPERTIES={[]},EXTRAATTRIBUTES={{MODULE={},CUSTOM={false},ISPLUGIN={true},PLUGINPATH={coldbox.system.plugins.ORMService}}},CACHE={{LASTACCESSTIMEOUT={},PROVIDER={},TIMEOUT={},KEY={}}},ONDICOMPLETE={[]},NAME={coldbox.system.plugins.ORMService},EAGERINIT={false},METHOD={},VIRTUALINHERITANCE={coldbox.system.Plugin},ASPECT={false},AUTOASPECTBINDING={true},CONSTRUCTOR={init},DIMETHODARGS={[]},DISCOVERED={true},METADATA={{INHERITANCETRAIL={[coldbox.system.plugins.ORMService, coldbox.system.orm.hibernate.BaseORMService, WEB-INF.cftags.component]},PATH={c:/wwwroot/coldbox/system/plugins/ORMService.cfc},PROPERTIES={[{TYPE={string},DEFAULT={ORMService.defaultCache},HINT={The queryCacheRegion name property for all query caching produced in this service},NAME={queryCacheRegion}}, {TYPE={boolean},DEFAULT={false},HINT={The bit that tells the service to enable query caching, disabled by default},NAME={useQueryCaching}}, {TYPE={boolean},DEFAULT={true},HINT={The bit that enables event handling via the ORM Event handler such as interceptions when new entities get created, etc, enabled by default.},NAME={eventHandling}}, {HINT={The system ORM event handler to transmitt ORM events to},NAME={ORMEventHandler}}, {HINT={The system ORM utility object},NAME={ORM}}, {TYPE={boolean},DEFAULT={true},HINT={The bit that enables automatic hibernate transactions on all save, saveAll, update, delete methods},NAME={useTransactions}}, {TYPE={boolean},DEFAULT={true},HINT={The bit that determines the default return value for list(), createCriteriaQuery() and executeQuery() as query or array},NAME={defaultAsQuery}}, {TYPE={struct},HINT={All calculated and parsed dynamic finders' and counters' HQL will be stored here for easier execution},NAME={HQLDynamicCache}}]},HINT={<!----------------------------------------------------------------------- ******************************************************************************* Copyright 2005-2008 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.coldbox.org | www.luismajano.com | www.ortussolutions.com 

c:/wwwroot/coldbox/system/FrameworkSupertype.cfc: line 469

467 : 		<cfargument name="detail" 	type="string" 	required="no" default="">
468 : 		<cfargument name="type"  	type="string" 	required="no" default="Framework">
469 : 		<cfthrow type="#arguments.type#" message="#arguments.message#"  detail="#arguments.detail#">
470 : 	</cffunction>

br...@bradwood.com

unread,
Sep 15, 2016, 11:52:01 PM9/15/16
to col...@googlegroups.com
Here is the meat of the error:
 
coldbox.system.orm.hibernate.EventHandler does not implement the interface CFIDE.orm.IEventHandler. The preFlush method is not implemented by the component or it is declared as private. with constructor arguments: 
 
The ORM event handler interface has been updated and it looks like you're on an older version of ColdBox (3.x).  I'm not sure when we added the preFlush method to our ORM event handler, but as a quick fix, you can add that method to coldbox.system.orm.hibernate.EventHandler.  The long term fix for you is to upgrade to the latest version of ColdBox, however in ColdBox 4, the ORM services are broken out into the cborm module so there's a small amount of changes on your part most likely to get that up and running.
 
Check out this upgrade guide for ColdBox 4 which contains a section on ORM:

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/f1d734c3-7045-47c4-8bf2-8cb368932a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chase

unread,
Sep 19, 2016, 8:24:11 PM9/19/16
to ColdBox Platform
Worked perfectly!

Thank you so much for the quick response Brad
Reply all
Reply to author
Forward
0 new messages