[coldbox:14942] Re: [Coldbox 3.1] First date with AOP

Did you compare the invokeMethod method signature between your aspect and the interface in the error message?

Brad

Yep. I see no differences.

Nolan Dubeau

Load .,8,1

What about the output=“false”

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

Here is the interceptor code:

var refLocal = {};

var debugString = “target: #arguments.invocation.getTargetName()#,method: #arguments.invocation.getMethod()#,arguments:#serializeJSON(arguments.invocation.getArgs())#”;

// log incoming call

log.debug(debugString);

// proceed execution

refLocal.results = arguments.invocation.proceed();

// result logging and returns

if( structKeyExists(refLocal,“results”) ){

if( instance.logResults ){

log.debug("#debugString#, results:", refLocal.results);

}

return refLocal.results;

}

Ok, it works for me nolan. What version of CF you using.

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

Adobe CF 9.0.1, with CB 3.1

I copied everything straight from the wiki page. Should I post my binder configuration?

Thoughts?

Thanks.

Nolan

Ohh, 3.1 I tried with 3.5

You should upgrade :slight_smile:

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

I knew you were going to say that! I was in the process but started getting wierd errors with the renderer so I halted until could free up more time. I’ll carve out some time this weekend.

Nolan Dubeau

Load .,8,1

Hey, didn’t you suggest the subject line convention to preface what version we’re using??? Must have been you or that Greenlee character :wink:

Nolan Dubeau

Load .,8,1

LOL!!

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

HI guys,

So I have finally upgraded to 3.5 (3.5.2 actually) and am back working on AOP. The original error has gone away however now the AOP aspect does not seem to be firing at all.

I have retraced the steps as outlined in the wiki but to no avail. Can someone recommend how I might be able to debug why the aspect isn’t executing?

Thank you.

Nolan