OnRequest intercepts the calls, and as such your remote Object call is 
never made.

  This is clearly documented somewhere, I'm sure.  There was a lot of 
"Blog Heat" About it when Application.cfc was introduced.

Chad Gray wrote:
> 
> 
> What is up with flex and application.cfc's onRequest function? I get the 
> below error unless I comment out the onRequest function when trying to 
> connect to a CFC.
> 
> <cffunction name="onRequest" returnType="void">
> <cfargument name="thePage" type="string" required="true">
> <cfinclude template="#arguments.thePage#">
> 
> </cffunction>
> 
> [RPC Fault faultString="Unable to invoke CFC - Event handler exception." 
> faultCode="Server.Processing" faultDetail="An exception occurred when 
> invoking a event handler method from Application.cfc. The method name 
> is: onRequest."]
> at 
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler
>  
> <http://www.adobe.com/2006/flex/mx/internal::faultHandler>()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:216]
> at 
> mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]
> at 
> mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
> at 
> NetConnectionMessageResponder/statusHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:523]
> at 
> mx.messaging::MessageResponder/status()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 
<http://www.adobe.com/communities/experts/members/JeffryHouser.html>
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>

Reply via email to