IOC error after upgrade

I’m getting IOC error after upgrading from 3.1 to 3.7:

# Required argument mismatch.
The invokeMethod function does not specify the same required value for the invocation argument in the model.aop.AuditAdvice ColdFusion component and the coldbox.system.aop.MethodInterceptor ColdFusion interface.

The error occurred inC:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/core/util/Util.cfc: line 305
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/ioc/config/Mapping.cfc: line 578
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/ioc/config/Binder.cfc: line 886
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/ioc/Injector.cfc: line 157
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/ioc/Injector.cfc: line 92
Called fromC:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/web/services/LoaderService.cfc: line 175
Called fromC:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/web/services/LoaderService.cfc: line 78
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/Coldbox.cfc: line 71
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/system/coldbox/system/Coldbox.cfc: line 102
Called from C:/ColdFusion10/cfusion/wwwroot/pcrms/predictmrs/apps/BasePredictApplication.cfc: line 70
|


<br>303 : <cfset md = getMetaData(component)><br>304 : <cfelse><br>**305 : <cfset md = getComponentMetaData(component)>**<br>306 : </cfif><br>307 : </cfif><br>

|

Here’s the relevant line in Wirebox.cfc:

mapAspect("AuditAdvice").to("model.aop.AuditAdvice");

And this is AuditAdvice.cfc:

<cfcomponent output="false" implements="coldbox.system.aop.MethodInterceptor" autowire="true" classMatcher="regex:dao$" methodMatcher="regex:^save">
<cffunction name="init" output="false" access="public" returntype="any" hint="Constructor">
<cfscript>
return this;
</cfscript>
</cffunction>

<cffunction name="invokeMethod" output="false" access="public" returntype="any" hint="Invoke an AOP method invocation">
<cfargument name="invocation" type="any" hint="The method invocation object: coldbox.system.aop.MethodInvocation">
<cfscript>
arguments.invocation.proceed();
</cfscript>
</cffunction>
</cfcomponent>

Any idea?

It must meet this:

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Ah so that’s what the error meant. Thanks Luis.