Working on a project today I came across a strange issue so I thought I would get everyones opinion on it. I am not really sure if its something I am doing wrong, a bug or maybe I am just missing something. In this application I have event handling turned on.
So for nothing special and up until this point everything has been working fine. Today I am adding some ajax via everyone's favorite framework (jQuery of course) and I came across something. This is my ajax call to my remote method. And my remote method that does a join to pull all users who have a role id equal to the argument passed.
If you were to turn event handling off this works fine but with it on I am seeing the following error.
coldfusion.runtime.TemplateProxy$InvalidRemoteAccessException: The method 'preLoad' in component D:\websites\extranetsteriscom\cfc\com\*****\*****\events\EventHandler.cfc cannot be accessed remotely.Now in my event handler I have preLoad defined (because you have to when you implement another component) but it's not doing anything. Am I to believe that If I use event handling in my application I can't use ORM for any remote functions? I can certainly get down and write some sql but thats no fun :) Anyways, just thought I would share this and get your thoughts.

#1 by Raymond Camden on 3/4/10 - 11:13 AM
#2 by Dan Vega on 3/4/10 - 11:17 AM
#3 by Raymond Camden on 3/4/10 - 11:19 AM
#4 by Sam Farmer on 3/4/10 - 11:21 AM
Also, I think if you made the call through a framework or via a cfm file, rather than direct to User.cfc, then I don't think it would be a problem.
#5 by Dan Vega on 3/4/10 - 11:29 AM
#6 by Dan Vega on 3/4/10 - 11:31 AM
#7 by Sam Farmer on 3/4/10 - 11:38 AM
#8 by Dan Vega on 3/4/10 - 11:39 AM
#9 by Raymond Camden on 3/4/10 - 11:47 AM
#10 by Ben Nadel on 3/4/10 - 11:48 AM
#11 by Sam Farmer on 3/4/10 - 11:55 AM
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef...
Scroll down to Interface requirements
#12 by Sam Farmer on 3/4/10 - 11:56 AM
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef...
Scroll down to Implementation Requirements
#13 by Sam Farmer on 3/4/10 - 11:58 AM
Go to CFML Ref > cfinterface
Scroll down to Implementation Requirements
#14 by Raymond Camden on 3/4/10 - 12:00 PM
#15 by Sam Farmer on 3/4/10 - 12:09 PM
Also sorry about the multiple comment posting. It wasn't showing up at first and I thought that was due to the link.
#16 by Terrence Ryan on 3/4/10 - 12:34 PM
Discovered it all yesterday. Haven't had time to figure out if it is bugs or what.
#17 by Dan Vega on 3/4/10 - 12:57 PM
#18 by Rupesh Kumar on 3/5/10 - 7:28 AM
#19 by Dan Vega on 3/5/10 - 8:57 AM
Can anyone let me know if they are seeing the same issues as me? Rupesh said he tried it from an Ajax + Flex client and was not seeing the same results.
#20 by Raymond Camden on 3/5/10 - 9:21 AM
#21 by Dan Vega on 3/9/10 - 7:51 AM