[cfaussie] Re: Site-wide Error Handler

2006-03-14 Thread Charlie Arehart

Pardon the long note, folks, but Scott's problem has several implications. Let 
me try to address a few.

Scott, yes, the site-wide error handler works just like CFERROR 
type=exception, at least as regards what you can do in
the template--which is anything. You control what the user sees, and you 
control what other processing you do from that
page (like CFMAIL, CFQUERY to insert error data into a database, CFLOG, etc.)

I should note that some readers may be confused, thinking that you can't do 
CFML in an error handler. That's the way it
was prior to CF 4, when all we had was CFERROR type=request. I realize that's 
not your concern, Scott. Just clarifying
for others.

As for your problem, it sounds like you're saying that it seems that some 
errors are just not being caught by the
site-wide error handler. That's unusual, but not unheard of. 

First, and perhaps most important, the problem could simply be that you have an 
error in the error handler. :-) Sadly,
in that case, the error handler is ignored and the normal error screen dump 
is what the user sees, and you get no
notification.

Second, be careful about confirming that the error handler you *think* should 
be working is indeed the one that is. For
instance, change it to do nothing but say I'm here, then run a page with an 
error (such as a one line template doing
cfset x=y, which if y is undefined will get an error.) Do you get the error 
handler? If not, then maybe some OTHER
error handler is the real culprit. 

The CFMX Admin console help indicates that the site-wide handler is relative to 
the web root.

Third, the admin help also says, If the user is running Internet Explorer with 
Show Friendly HTTP error messages
enabled in advanced settings (the default), Internet Explorer displays this 
page only if it contains more than 512
bytes. Perhaps that could be tripping you up.

Fourth, I've seen instances where the site-wide error, and even CFERROR, don't 
catch a given error. It's rare, but
happens. Again, if you first confirm that the really simple error handler 
works, then test your real code to see if
it catches that. If it does not, you may have some other problem.

Finally, if anyone wants to learn more about error handling (site-wide, 
cferror, and cftry/cfcatch), I wrote a series of
articles quite some time ago, but they're still relevant:

Toward Better Error Handling - Part 1 (Admin Settings)
http://www.sys-con.com/story/?storyid=41977DE=1

Toward Better Error Handling - Part 2 (Error Handling Templates)
http://www.sys-con.com/story/?storyid=41844DE=1

Toward Better Error Handling - Part 3 (Application-Level Error Handling)
http://www.sys-con.com/story/?storyid=41870DE=1DE=1

Toward Better Error Handling - Part 4 (Page-Level Error Handling)
http://www.sys-con.com/story/?storyid=41772DE=1

Hope some of that's helpful.

Charlie Arehart
CTO, New Atlanta Communications, makers of BlueDragon
(678) 256-5395 [EMAIL PROTECTED]
www.newatlanta.com/bluedragon/

 

 -Original Message-
 From: cfaussie@googlegroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Scott Thornton
 Sent: Tuesday, March 14, 2006 12:31 AM
 To: cfaussie@googlegroups.com
 Subject: [cfaussie] Site-wide Error Handler
 
 
 Hi,
 
 I am investigating the use of the Site-wide Error Handler 
 template that can be defined in CFMX admin in 6.1 
 
 I would be interested in hearing from people who have it in 
 use. with repesct to what information is presented to the 
 user, and what information (if any) can be sent to the 
 administrator\developer via cfmail or other methods.
 
 As the project go-live is fairly recent, we are still finding 
 bugs that cause ODBC errors, currently these errors cause the 
 typical coldfusion error which shows sql etc, that we use to 
 fix errors, also we occasionally get the native thread 
 error, for which I would like to present 'nicer' error messages for.
 
 I appreaciate any thoughts\experiences offered
 
 Thanks heaps.
 
 
 
 
 
 Scott Thornton, Programmer
 Application Development
 Information Services and Telecommunications Hunter-New 
 England Area Health Service
 p: +61 2 49813589
 m: 0413800242
 e: scott.thornton at hnehealth.nsw.gov.au
 
 
 
 


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] CFEXECUTE .bat files

2006-03-14 Thread cfgroupie

Hi guys,

My little team has decided to build an installer for our web
application. We got it down pat, execpt one little issue with .bat
files.

We are looping over environments i.e. Test, Train, Production. Each one
we need to copy over code to the relevant environment. What we have
found is that coldfusion is to fast for the .bat file to run its xcopy
commands.

Is there a way to wait for the .bat to finish before we go to the next
instance of the loop?

cfexecute name=c:\copyit.bat timeout=600/cfexecute

Jeremy


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] Re: CFEXECUTE .bat files

2006-03-14 Thread Steve Onnis

why not just put it in one bat file?

-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]
Behalf Of cfgroupie
Sent: Wednesday, March 15, 2006 12:44 PM
To: cfaussie
Subject: [cfaussie] CFEXECUTE .bat files



Hi guys,

My little team has decided to build an installer for our web
application. We got it down pat, execpt one little issue with .bat
files.

We are looping over environments i.e. Test, Train, Production. Each one
we need to copy over code to the relevant environment. What we have
found is that coldfusion is to fast for the .bat file to run its xcopy
commands.

Is there a way to wait for the .bat to finish before we go to the next
instance of the loop?

cfexecute name=c:\copyit.bat timeout=600/cfexecute

Jeremy






--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] Re: CFEXECUTE .bat files

2006-03-14 Thread cfgroupie

Because we are changing contents of files for each environment i.e.
Production, Train, Test. Therefore we need to loop over it each time.

I have found other thing which I find odd. In our development
environment when I use cfexecute it seems to be trying to execute it
from the following path.
C:\JRun4\binxcopy c:\2_3 c:\2_4 /e /i /y

When in my code I tell it to run from the cmd...what the?


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] Re: CFEXECUTE .bat files

2006-03-14 Thread Toby Tremayne

Hi Jeremy,

there's still no guaranteed way to have coldfusion pause, but you  
can do something like have your batch file create an empty file, and  
have coldfusion loop until that file exists - then deleting it and  
moving on.

cheers,
Toby

On 15/03/2006, at 12:44 PM, cfgroupie [EMAIL PROTECTED] wrote:


 Hi guys,

 My little team has decided to build an installer for our web
 application. We got it down pat, execpt one little issue with .bat
 files.

 We are looping over environments i.e. Test, Train, Production. Each  
 one
 we need to copy over code to the relevant environment. What we have
 found is that coldfusion is to fast for the .bat file to run its xcopy
 commands.

 Is there a way to wait for the .bat to finish before we go to the next
 instance of the loop?

 cfexecute name=c:\copyit.bat timeout=600/cfexecute

 Jeremy





---

Life is poetry, write it in your own words

---

Toby Tremayne
Senior Technical Consultant
Lyricist Software
0416 048 090
ICQ: 13107913



--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] Re: CFEXECUTE .bat files

2006-03-14 Thread Dale Fraser

It does wait for the call to finish, so if it's not waiting, then your
batch file is returning instantly.


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~--~~~~--~~--~--~---



[cfaussie] Re: Problem with Groups

2006-03-14 Thread Lindsay Evans
If this gets through, then no :pSending from GMailOn 3/15/06, Dale Fraser [EMAIL PROTECTED] wrote:
Anyone else having this problem, if you are you won't be able to reply.
-- Lindsay Evanshttp://lindsayevans.com/

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cfaussie  -~--~~~~--~~--~--~---