Hi Taco,

>From what you have said there is actually code in those functions.
Check that the "onSessionEnd" doesn't attempt to reference the
"session" scope, as it won't exist.
Same with "onApplicationEnd" can't reference the "Application" scope
either.

You said "when invoking" the methods.
Do you mean you are actually calling the methods, or are you meaning
when the methods are called "naturally" by CF when either of those
situations happen?
I suspect if you call the "onSessionEnd" in code, the session will be
available to the function.
Also you will need to pass the session scope to the function...

HTH

Andrew Scott wrote:
> Ok, sounds like the error is elsewhere then.
>
> Any chance of giving us more of the error rather than an exception has
> occured?
>
>
>
> On 5/8/07, Taco Fleur <[EMAIL PROTECTED]> wrote:
> >
> > I also have a onError
> >
> > I also received the same error when I did not have those two functions in
> > there, the only reason I put them in is because I was tired of seing the
> > error (they get send to us each time).
> >
> >
> >  On 5/8/07, MrBuzzy <[EMAIL PROTECTED]> wrote:
> >
> > > Ahem, you suggested the cfreturn Andrew :P
> > >
> > > Removing them IS a solution if you don't know why they were there to
> > > start with (and they do nothing).
> > >
> > > Taco, do you also have an OnError method too? I've hit these sort of
> > > errors before, I just can't remember exactly how to diagnose it, sorry. It
> > > might come to me later.
> > >
> > > I'm still a bit confused about where you're seeing these errors if not
> > > in the logs.
> > >
> > >
> > > On 5/8/07, Andrew Scott < [EMAIL PROTECTED] > wrote:
> > > >
> > > > Yeah I must admit I doubt that the cfreturn was necessary either..
> > > >
> > > > But removing them if not used is not a solution, but would be
> > > > interesting to see if the error does go. I have them in my
> > > > Application.cfc as well with no problems. But Taco, how do you know
> > > > your getting an exception error? Those are usually fired with no display
> > > > output as far as I know.
> > > >
> > > >
> > > >
> > > > On 5/8/07, MrBuzzy <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Howdy, I don't think you need cfreturn's.
> > > > >
> > > > > Check here to be sure (Ray's quick ref. for Applicaton.cfc );
> > > > > http://ray.camdenfamily.com/downloads/app.pdf
> > > > >
> > > > > If your OnApplicationEnd/OnSessionEnd functions do nothing, then
> > > > > maybe you should just remove them...?
> > > > >
> > > > > Also running your server in 'console mode' might reveal more errors.
> > > > >
> > > > >  On 5/8/07, Andrew Scott < [EMAIL PROTECTED] > wrote:
> > > > >
> > > > > >  lol, i find it hard to believe an excpetion was thrown an nothing
> > > > > > is in the logs.
> > > > > >
> > > > > > But I doubt this would be the case, but I noticed from your code
> > > > > > that there is no cfreturn true in the functions either.
> > > > > >
> > > > > >
> > > > > >  On 5/8/07, Taco Fleur < [EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > >  They say email CFAUSSIE ;-)
> > > > > > >
> > > > > > > There is nothing in the log.
> > > > > > >
> > > > > > >
> > > > > > >   On 5/8/07, Andrew Scott < [EMAIL PROTECTED] > wrote:
> > > > > > >
> > > > > > > >   What do the logs say Taco?
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >   On 5/8/07, Taco Fleur < [EMAIL PROTECTED] > wrote:
> > > > > > > >
> > > > > > > > >   Hello all,
> > > > > > > > >
> > > > > > > > > I keep getting the following errors, and I have no idea why.
> > > > > > > > >
> > > > > > > > > An exception occurred
> > > > > > > > >
> > > > > > > > > when invoking a event handler method from Application.cfcThe 
> > > > > > > > > method name is: onSessionEnd.
> > > > > > > > > I get the same for onApplicationEnd. Following is what they
> > > > > > > > > look like.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >  <cffunction
> > > > > > > > >   name="onSessionEnd"
> > > > > > > > >   returntype="void"
> > > > > > > > >   output="false">
> > > > > > > > >
> > > > > > > > >   <cfargument
> > > > > > > > >    name="SessionScope"
> > > > > > > > >    required="yes">
> > > > > > > > >   <cfargument
> > > > > > > > >    name="ApplicationScope"
> > > > > > > > >    required="no">
> > > > > > > > >
> > > > > > > > >  </cffunction>
> > > > > > > > >
> > > > > > > > >  <cffunction
> > > > > > > > >   name="onApplicationEnd"
> > > > > > > > >   returntype="void"
> > > > > > > > >   output="false">
> > > > > > > > >
> > > > > > > > >   <cfargument
> > > > > > > > >    name="ApplicationScope"
> > > > > > > > >    required="yes">
> > > > > > > > >
> > > > > > > > >  </cffunction>
> > > > > > > > >
> > > > > > > > > Anyone any idea? thanks in advance.
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Taco Fleur - http://www.pacificfox.com.au
> > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > > > > > > > Internet Solutions
> > > > > > > > > an industry leader with commercial IT experience since 1994
> > > > > > > > > ...
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > www.aegeon.com.au
> > > > > > > > > Phone:      +613  8676 4223
> > > > > > > > > Mobile:           0404 998 273
> > > > > > > > >  http://www.pacificfox.com.au
> > > > > > > > > Web Design, Web development, Graphic Design and Complete
> > > > > > > > > Internet Solutions
> > > > > > > > > an industry leader with commercial IT experience since 1994
> > > > > > > > > ...
> > > > > > > > > Senior Coldfusion Developer
> > > > > > > > > Aegeon Pty. Ltd.
> > > > > > > > > www.aegeon.com.au
> > > > > > > > > Phone:      +613  8676 4223
> > > > > > > > > Mobile:           0404 998 273
> > > > > > > > >
> > > > > > > > >
> > > > >
> > > > > www.aegeon.com.au
> > > > > Phone:    +613  8676 4223
> > > > > Mobile:      0404 998 273
> > > > >
> > > > >
> > >
> > >
> > > an industry leader with commercial IT experience since 1994 ...
> > > > >
> > >
>
>
> --
>
>
>
> Senior Coldfusion Developer
> Aegeon Pty. Ltd.
> www.aegeon.com.au
> Phone: +613  8676 4223
> Mobile: 0404 998 273


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to