[Coldbox-4.1] _targetAction ERROR

10 views
Skip to first unread message

XERRANO

unread,
Oct 29, 2015, 7:32:08 PM10/29/15
to ColdBox Platform
When I go to production Railo 4.1 and set handlerCatching = true
In one route this error shows up:

76: any function _privateInvoker( required method, required argCollection ){
77: var _targetAction = variables[ arguments.method ];
78: var _targetResults = _targetAction( argumentCollection=argCollection );
79: if( !isNull( _targetResults ) ){ return _targetResults; }
80: }

The route was:
addRoute(pattern="/portfolio/design", handler="Portfolio", action="design");

The Handledr was:
<cffunction name="graphicDesign" access="public" output="false" returnType="void">
.....
</cffunction>

If I turn: handlerCatching = false all works, but I wanted to be true.

FUNNY THING:

If I change my route from "design" to "graphicDesign"
and also my Handler from "design" to  "graphicDesign"

All works, is "design" private in coldbox?



Thanks

xerrano

Brad Wood

unread,
Oct 29, 2015, 7:42:38 PM10/29/15
to col...@googlegroups.com
What's the actual error? Perhaps it's because I'm reading this on my phone, but I don't see the actual error message anywhere in your post.
To answer your question, that shouldn't be a reserved word at all, but I'm not in front of a computer to test it.


Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
--
--
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/b37982f5-0290-488c-9122-a29cb9d079cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

XERRANO

unread,
Oct 30, 2015, 12:38:05 AM10/30/15
to ColdBox Platform
Sorry about that Brad,

Forgot to paste that, the error was something like [_targetAction] function not found

Luis Majano

unread,
Nov 2, 2015, 10:16:26 PM11/2/15
to coldbox
What version of ColdBox are you using?
--
--
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.

br...@bradwood.com

unread,
Nov 2, 2015, 10:19:23 PM11/2/15
to col...@googlegroups.com
According to his subject line conventions, 4.1.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Luis Majano

unread,
Nov 3, 2015, 3:03:28 PM11/3/15
to coldbox
I would look at your var scoping and variables scope issues.  It might seem you are overriding the name of an action somehow.,

br...@bradwood.com

unread,
Nov 3, 2015, 3:35:55 PM11/3/15
to col...@googlegroups.com
Good call Luis, I think the last time we saw an error like this, someone had a variable in the variables scope with the same name as a function in the CFC.
--------- Original Message ---------
Reply all
Reply to author
Forward
0 new messages