*sigh*
On 5/15/07, Taco Fleur [EMAIL PROTECTED] wrote:
This is interesting and looks like what I'm experiencing.
http://www.cfcdeveloper.com/index.cfm/2006/2/24/Applicationcfc-onError-tweaks
On 5/15/07, Chris Velevitch [EMAIL PROTECTED] wrote:
Try replacing references to
On 5/15/07, Taco Fleur [EMAIL PROTECTED] wrote:
This is interesting and looks like what I'm experiencing.
http://www.cfcdeveloper.com/index.cfm/2006/2/24/Applicationcfc-onError-tweaks
I'm curious as to how you found this?
Chirs
--
Chris Velevitch
Manager - Sydney Flash Platform Developers
Mr Buzzy, don't be offended mate. I'm very busy. At the moment I am not
getting any errors anymore, so something is fixed (for me at this stage that
is enough till I have more time). And I am now mailing
arguments.exception.RootCause as well, thanks pointing that out to me..
On 5/15/07, MrBuzzy
Actually good point.
On 5/14/07, Taco Fleur [EMAIL PROTECTED] wrote:
?? even on that link the onSesisonEnd does not return anything.
cffunction name=onSessionEnd returnType=void output=false
cfargument name=sessionScope type=struct required=true
cfargument name=appScope type=struct
Taco, I'd just like to know if you tried my suggestion or not?
Thanks.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Actually good point.
On 5/14/07, Taco Fleur [EMAIL PROTECTED] wrote:
?? even on that link the onSesisonEnd does not return anything.
cffunction
Andrew,
cffunction
name=onError
returntype=void
output=true
cfargument
name=Exception
required=true
cfargument
name=EventName
type=string
required=true
cfset variables.referenceNumber = lsDateFormat( now(), mmdd )
lsTimeFormat( now(), hhmmss )
cfif len(
Hi,
To be honest, no I haven't.
Don't think it would make a difference.
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Taco, I'd just like to know if you tried my suggestion or not?
Thanks.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Actually good point.
On 5/14/07, Taco
Well you can't be helped then.
I thought you actually wanted to fix the problem instead of to-ing and
fro-ing about stuff that is already well documented.
This is (one of) your problems;
cfquery
name=rsInsert
datasource=#application
.system.Datasource.getName()#
You can not
That is assuming that OnError is being invoked when the real error happens
in OnSessionEnd, or OnApplicationEnd.
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Well you can't be helped then.
I thought you actually wanted to fix the problem instead of to-ing and
fro-ing about stuff that is
Hmm...
One would expect that being within a cftry would stop it, seeing as the
cfcatch does nothing.
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Well you can't be helped then.
I thought you actually wanted to fix the problem instead of to-ing and
fro-ing about stuff that is already well
Why do you fellas over complicate things?
I mean thing about it? OnRequestEnd? OnSessionEnd?
The only to really end a session with CF is to use J2EE sessions.
Browser is closed - session is ended. Of course depending on how you
code your app this may not bet the case.
My host no longer allows
lol...
I think you will find that the onSessionEnd, when an excpetion is thown the
onError event will fire again.
I would be asking the question, why is it erroring in there. Eveything seems
to be around a cftry block, could be a bug within the application.cfc. I
mean would it be possible that
Am not using any of that (during dev only of course) I like the quick and
dirty error messages. Of course I am so good at coding I never have errors
(cough cough). After 12 years CF I can write errors so good, I should retire
and write a book about it!
You can not reference the application
scope from inside OnsessionEnd.
Yes because by the time OnSessionEnd (or OnSessionEnd.cfm) everything
has finished.
Application.cfm (fired first - before any other template) -
OnRequestEnd.cfm (fired right at the end).
Get your hear around that before you
Andrew.. you might be right - bringing me back to my original point;
1. remove OnError.
2. try/catch/dump/email in the OnSessionEnd method for debugging purposes
and to hopefully end the 'over complication'.
Peter, sessions end (j2ee or not) when they 'expire' too. This is when the
on
Peter,
You are only half right, only persistant variables no longer exist the
application is not finished to its finished. Meaning an event can still be
fired within, you have to remember that these are event methods, which fire
when one of the conditions is met So if any Event is running, it can
Peter, who are you talking to exactly? I'm so confused on this whole
thing... but I'm not giving up on trying to help on this, coz helping is
meant to to somehow make the world go round.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
You can not reference the application
scope from
What do you want to persist? Do you want it to consume RAM? Is it just like
a DATASOURCENAME var? If so why scope it beyond request?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this
MrBuzzy with all attention and admiration... Who are you lol?
On 14/05/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Time for a beer I think - after 9pm - hmmm Tooheys Red will have to suit.
--
Peter Tilbrook
ColdGen Internet Solutions
President, ACT and Region ColdFusion Users Group
PO Box
Peter your getting stranger and stranger than ever before, first you don't
make sense then you get something wrong and then you asked about persisant
and you didn't even understood what was said.
The thing is persistant scope variables, are persistant for for a reason.
But when they expire, they
Ah! Thanks! Man of Constant Sorrow helps with my current mood ;) And
Straight Lines by Silverchair.
But I ask you both - why not examine the Request scope? Why consume RAM
for a one off? I rarely use App/Server scope anymore.
On 14/05/07, Andrew Scott [EMAIL PROTECTED] wrote:
Peter your
Hmm... I hate this stuff sometimes - so much can be misconstrued, I'm not
sure you're being sincere? But that's cool.
I was genuinely asking if you were talking to me, Andrew or Taco.
Can't be me coz I've never used CF3 ;)
I'm just nobody special. I choose to remain anonymous, sorry. What's in a
cfsilent
cfapplication name=ACTCFUG_WWW_11MAY2007 setclientcookies=yes
setdomaincookies=yes sessionmanagement=Yes clientmanagement=yes
clientstorage=cookie
cfparam name=Request.DataSourceName default=ACTCFUG2006
cfparam name=Request.DomainPrefix default=ACTCFUG
cfparam
Taco has been quite of late - at least to me lol - his absence has been noted.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaussie@googlegroups.com
To
Wow, imagine how much extra memory that really does take up?
But really what has that got to do with Taco's problem?
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
cfsilent
cfapplication name=ACTCFUG_WWW_11MAY2007 setclientcookies=yes
setdomaincookies=yes sessionmanagement=Yes
Okay let's try to help him out then. Please bear with me.. here goes.
Observe the following code (which I just wrote and tested). Make an
Appication.cfc with ONLY this code;
cfset this.name = ApplicationName
cfset this.sessionManagement = true
cfset this.sessionTimeout = createTimeSpan(0,0,0,1)
Well the request scope does not, as they say, consume memory as it is used
for the request (top to bottom) and then it is gone.
Of course you could use App or Ser vars. But why? No locking required (even
with the J2EE enabled CF). Yes Session and other scope vars might be
required but after 12
I made a typo
Some might expect session ended to be logged.
should have said
Some might expect somethingnasty to be logged.
The rest still applies.
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Okay let's try to help him out then. Please bear with me.. here goes.
Observe the following code
Thats the way I excpected it to flow... Except what puzzles me is that the
cflog didn't finish, does that mean that cflog was halted because an error
was thrown?
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Okay let's try to help him out then. Please bear with me.. here goes.
Observe the
If the request is terminated (eg CFABORT - a handy tag sometimes) then
your code will not be executed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to
Peter, there seems to be something wrong with what you are saying there.
Closing a browser can not trigger a session end event. It however will
assign a new session id via CFID CFToken.. but the actuall session
variables still exist in the persistant scope until they expire by the
server during
Andrew, what do you mean cflog didn't finish? It does and it did.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Thats the way I excpected it to flow... Except what puzzles me is that the
cflog didn't finish, does that mean that cflog was halted because an error
was thrown?
On 5/14/07,
Peter it might help leaving what you are replying too. We have no idea WTF
your talking about and to whom you are talking too.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
If the request is terminated (eg CFABORT - a handy tag sometimes) then
your code will not be executed.
--
Well I was going by your first comment until you corrected it, thats what I
was thinking.
On 5/14/07, MrBuzzy [EMAIL PROTECTED] wrote:
Andrew, what do you mean cflog didn't finish? It does and it did.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Thats the way I excpected it to
cfset this.sessionTimeout = createTimeSpan(0,0,0,1)
Um x,x,x,x
You might be pushing your luck setting it to, what, one second?
Would have to review the CF docs but even that might be bit... too quick.
--~--~-~--~~~---~--~~
You received this message because you
Yes it can. But you must use J2EE sessions. This is an option in the CF
Administrator. Is it foolproof? Seems to work better than any client side
solution I've encountered in my 12 years CF usage.
On 14/05/07, Andrew Scott [EMAIL PROTECTED] wrote:
Peter, there seems to be something wrong with
Doesn't matter Peter, it is illustrating the code and is a very good debug
method.
*s* Peter your beging to make my cooment awhile ago even more pronounced.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
cfset this.sessionTimeout = createTimeSpan(0,0,0,1)
Um x,x,x,x
You might be
Are you talkin' to me... are you talking to ME.
Yeah, nothing will run after you use cfabort that's the point of cfabort.
Seems irrelevant to the discussion, but happy to have read it.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Andy I think I am talking to Mr Buzzy. Does that assist?
OK this is getting interesting. Am assuming MX 7.x and not Scorpio.
And you blokes should be testing it like us other poor bastards!
There ARE issues with Java - CF8 is using 1.6 so find an issue and chances
are even Java will be plugged.
--~--~-~--~~~---~--~~
Really have no idea what that is meant to mean Peter.
test like who and what is that all about?
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
OK this is getting interesting. Am assuming MX 7.x and not Scorpio.
And you blokes should be testing it like us other poor bastards!
There
Damon Cooper says G'day and appreciates our beta test efforts. You are
assisting in that regard surely?
On 14/05/07, MrBuzzy [EMAIL PROTECTED] wrote:
Are you talkin' to me... are you talking to ME.
Yeah, nothing will run after you use cfabort that's the point of cfabort.
Seems irrelevant to
(Peter, I don't agree with you comment about j2ee being too fast, sorry)
If you're taling to me, I am testing Scorpio, but I was talking about mx7.
Btw, The code I posted has the same behaviour whether J2ee sessions are
turned on or not.
I wish Taco would come back :)
On 5/14/07, Peter
Let us all ask Mike Kear - a certifiable Advanced Developer (gotta love
Sydney I guess).
He would know.
I could always ask Ben or Damon - or in a bind - Tim Buntel.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
WTF?
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Damon Cooper says G'day and appreciates our beta test efforts. You are
assisting in that regard surely?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
WTF?
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Let us all ask Mike Kear - a certifiable Advanced Developer (gotta love
Sydney I guess).
He would know.
I could always ask Ben or Damon - or in a bind - Tim Buntel.
--
Senior Coldfusion Developer
Aegeon Pty. Ltd.
You must see... this...
http://www.actcfug.com/
(click on Flash movie at bottom - Tim Buntel does all the voices - is funny)
On 14/05/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Heh has me wondering! Hmmm Not Scotty Barnes surely as he has no
scruples!
--
Peter Tilbrook
Okay, that was pretty funny-ish.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
You must see... this...
http://www.actcfug.com/
(click on Flash movie at bottom - Tim Buntel does all the voices - is
funny)
On 14/05/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
Heh has me
Tim actually quit Adobe (why - fool) and came back. He did all the voices
too. Too good to lose.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to
My Buzzy - after some research - I know who you really are.
Your secret is safe with moi!
For now.
--
Peter Tilbrook
ColdGen Internet Solutions
President, ACT and Region ColdFusion Users Group
PO Box 2247
Queanbeyan, NSW, 2620
AUSTRALIA
http://www.coldgen.com/
http://www.actcfug.com/
Tel:
I'm going to finish with this...
TACO: The answer to your problem is in this thread, if you care come back
and read it. I was trying to help, you ignored my suggestion and we all
wasted a lot of time.
If you don't want the background, just add this (or something like this) to
your OnError html
Bloody Google.
Just becuase you know my (very common) name doesn't mean you know who I
am... and that's pretty much the point of it.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
My Buzzy - after some research - I know who you really are.
Your secret is safe with moi!
For now.
--
Sorry was busy interviewing Tim Buntel.
So who is angry tonight? Not Tim, not myself, and not Taco I think.
But I am just listening to the music of the night - so do not listen.
--
Peter Tilbrook
ColdGen Internet Solutions
President, ACT and Region ColdFusion Users Group
PO Box 2247
Queanbeyan,
Was worth the small and pathetic attempt!
!!!
On 14/05/07, MrBuzzy [EMAIL PROTECTED] wrote:
Bloody Google.
Just becuase you know my (very common) name doesn't mean you know who I
am... and that's pretty much the point of it.
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
My
Sorry not completely following? Was watching Boston Legal.
I dunno about angry... confused maybe.
Are you and Tim having a sleep over?
On 5/14/07, Peter Tilbrook [EMAIL PROTECTED] wrote:
No beer in heaven (aparently)!
--~--~-~--~~~---~--~~
You received
PROTECTED] On Behalf
Of Peter Tilbrook
Sent: Monday, May 14, 2007 7:54 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: onSessionEnd Error
Yes it can. But you must use J2EE sessions. This is an option in the CF
Administrator. Is it foolproof? Seems to work better than any client side
solution
Wow, thats quite a long thread with lots of stuff in it now.
MrBuzzy - I'll have a look at what your suggesting.
I believe the following is what you are suggesting, I like the (or
something like this) bit...
-
If you don't want the background, just add this (or something like
Try replacing references to arguments.exception with
#textDump(arguments.Exception)#
where the function textDump is:-
cffunction name=textDump
cfargument name=pValue
cfargument name=pPrefix default=
cfif pPrefix neq ''
cfset pPrefix=#pPrefix#.
This is interesting and looks like what I'm experiencing.
http://www.cfcdeveloper.com/index.cfm/2006/2/24/Applicationcfc-onError-tweaks
On 5/15/07, Chris Velevitch [EMAIL PROTECTED] wrote:
Try replacing references to arguments.exception with
#textDump(arguments.Exception)#
where the
I've noticed there is no cgi referer or remote address, so I've just made a
rule to block emails when an error occurs that has no referer or remote
address. I'm thinking that its caused by ColdFusion task scheduler, I have a
task that runs every 5 minutes.
hhmmm, I guess no error would contain
It doesn't seem right to hide the errors just because you cant find
the cause.. I'd like to help more but i don't think you've posted
enough info for anyone to work it out. So what else can you give us?
On 5/14/07, Taco Fleur [EMAIL PROTECTED] wrote:
I've noticed there is no cgi referer or
Agreed, but here is the scenario again;
The onError method in Application.cfc sends an email when an error occurs,
one of the errors is as following (copied and pasted exactly as per the way
we get it);
browser:
reference number: 20070508103502
Date: 8/05/2007 10:35
Event Handler Exception.
Taco,
If this is a scheldued CF event, then I can understand why there is no
session and the onSessionEnd is being fired. Now I know this is not a
problem normally, but maybe the scheduled event requires the cfreturn true
/ have you tried that, in the method in Application.cfc? not sure if you
This is what I output from the Exception
#arguments.Exception.message#
#arguments.Exception.detail#
On 5/14/07, Chris Velevitch [EMAIL PROTECTED] wrote:
You don't seem to be dumping the contents of the exception object. Are
you dumping the exception object? What is in the exception object?
Andrew,
a onSessionEnd method should not return anything ;-)
And yes it exists in my Application.cfc.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Taco,
If this is a scheldued CF event, then I can understand why there is no
session and the onSessionEnd is being fired. Now I know this
Where do you get that info from? When I was beta testing CFMX7.0 all the
developer notes and docs said otherwise.
So all my methods are like this.
http://ray.camdenfamily.com/downloads/app.pdf
notice the methods return true!!
On 5/14/07, Taco Fleur [EMAIL PROTECTED] wrote:
Andrew,
a
Put a try/catch INSIDE on session end method. Dump cfcatch. Mail it to
your self. Use html mail format. The link i sent days ago is the
correct format for application.cfc.
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Where do you get that info from? When I was beta testing CFMX7.0 all the
?? even on that link the onSesisonEnd does not return anything.
cffunction name=onSessionEnd returnType=void output=false
cfargument name=sessionScope type=struct required=true
cfargument name=appScope type=struct required=false
/cffunction
On 5/14/07, Andrew Scott [EMAIL PROTECTED] wrote:
Do you have a cftry type=any block and cflog all the attributes
of cfcatch?
Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
m: 0415 469 095
www.flashdev.org.au
--~--~-~--~~~---~--~~
You received this message because you are subscribed
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.cfc The method name
is: onSessionEnd.
I get the same for
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
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'
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
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
Well yes I assumed, maybe not a good idea that there was sensitive code that
was omitted:-(
And I am too, about why there is no excpetion error in the logs and how he
knows there is one as those functions don't output to the browser... Very
curious is the word.
On 5/8/07, MrBuzzy [EMAIL
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
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
I'll see if I can dig some more up, but honestly I could not find anything
in the log, and what I sent is all I receive via email, which I believe is
the detail and message from the cferror tag.
On 5/8/07, Andrew Scott [EMAIL PROTECTED] wrote:
Ok, sounds like the error is elsewhere then.
Any
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
Hi David,
the methods are called naturally by the application.
On 5/9/07, David Harris [EMAIL PROTECTED] wrote:
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
79 matches
Mail list logo