CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
file, but the real problem is I wrapped this in a cftry / cfcatch (as shown below) and it's ignoring the CFTRY and giving me a hard error. cftry cfscript function get_imageinfo(imgfile

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Cameron Childress
If there is an error in your error handling code you will get a hard error. It may be because you are still attempting to work with the corrupt file in your catch. Change this: cfcatch type=Anycfset get_imginfo.ImgWidth=0cfset get_imginfo.ImgHeight=0/cfcatch To this: cfcatch type=Any/cfcatch

RE: CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -Original Message- From: Cameron Childress [mailto:camer...@gmail.com] Sent: Tuesday, September 09, 2014 1:25 PM To: cf-talk Subject: Re: CFTRY / CFCATCH not working If there is an error in your error

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Money Pit
Any particular reason you are not using cfscript versions of try/catch? Old version of CF? try { code goes here } catch(Any excpt) { code goes here } Given any thought to a different image processor to see if you get a different result? I'm thinking cfimage, assuming you are using at

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Byron Mann
, September 09, 2014 1:25 PM To: cf-talk Subject: Re: CFTRY / CFCATCH not working If there is an error in your error handling code you will get a hard error. It may be because you are still attempting to work with the corrupt file in your catch. Change this: cfcatch type=Anycfset

RE: CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison
It's a seven year old site but it's on a CF10 server. Tried using CFIMAGE but it's too slow. Robert Harrison Director of Interactive Services Austin Williams Advertising I Branding I Digital I Direct   125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119   F

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Money Pit
Looks like the code you are using is bhImgInfo() from cflib, with only very slight changes. There's more than one way to skin that cat: https://gist.github.com/vikaskanani/6256084 looks more robust in the catch department. Maybe a little too robust, but it also separates out the file read

Re: CFTRY / CFCATCH not working

2014-09-09 Thread Russ Michaels
not an answer to your question, but have you tried using ImageMagick or cfx_openimage instead ? I have found both to be more reliable than CF's built in image handling. On Tue, Sep 9, 2014 at 6:56 PM, Robert Harrison rob...@austin-williams.com wrote: It's a seven year old site but it's on a

Re: cfcatch DB connection failure - for failover

2011-07-06 Thread eric.da...@vmmc.org eric.da...@vmmc.org
=10 timeout=2 Select * from testdb /cfquery cfcatch cfquery name=testme datasource=datasource2 maxrows=10 timeout=5 Select * from testdb /cfquery /cfcatch /cftry Hi a bit stuck at the moment, I am trying to implement a DB fail over to a slave database through CF 9. I am

cfcatch DB connection failure - for failover

2011-07-05 Thread Sebastian Powell
trying to get CF to change the datasource to the failover database. All that happens is the site keeps trying to connect to the main db without updating the db datasource in the cfcatch. Note: this code below works if i have a syntax error in the query, but not for a DB connection failure. See

Re: CFFILE / CFCATCH

2011-07-04 Thread Mack
On Fri, Jul 1, 2011 at 4:16 AM, morgan l greyk...@gmail.com wrote: Looks like you're the victim of scenario #2 in this KB article: http://kb2.adobe.com/cps/181/tn_18171.html That article applies to CF5 and I doubt Jenny is running CF5. -- Mack

RE: CFFILE / CFCATCH

2011-07-01 Thread Jenny Gavin-Wear
Many thanks for your reply, interesting article. I think this article would only apply if I was losing all session variables? -Original Message- From: morgan l [mailto:greyk...@gmail.com] Sent: 01 July 2011 02:16 To: cf-talk Subject: Re: CFFILE / CFCATCH Looks like you're

RE: CFFILE / CFCATCH

2011-06-30 Thread Andrew Scott
Jenny, I am going to assume that you have tried to cfdump and abort in the cfcatch to see what the message contains. Failing that I do know that some of these messages have hidden characters and will not match even if you try. I don't have the link handy at the moment, but I did write a blog

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
session.sysmessage = Please upload images of type: .jpg, .gif or .png cflocation url=folder-view.cfm /cfif Having said that, I concur with Andrew: try to cfdump and abort in the cfcatch to see what the message contains. On Thu, Jun 30, 2011 at 1:56 AM, Andrew Scott andr...@andyscott.id.auwrote: Jenny, I

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
Hi John, Thanks for the reply. Yes, I dumped the results of the cfcatch. Strangely, the cflocation is working, but the session.sysmessage is not working. So although the use correctly gets returned to the calling page I'm unable to let them know why. If you have a link to your blog I'd

RE: CFFILE / CFCATCH

2011-06-30 Thread Andrew Scott
: Friday, 1 July 2011 12:11 AM To: cf-talk Subject: RE: CFFILE / CFCATCH Hi John, Thanks for the reply. Yes, I dumped the results of the cfcatch. Strangely, the cflocation is working, but the session.sysmessage is not working. So although the use correctly gets returned

Re: CFFILE / CFCATCH

2011-06-30 Thread John M Bliss
Perhaps do this...? cflocation url=folder-view.cfm addtoken=true On Thu, Jun 30, 2011 at 9:10 AM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Hi John, Thanks for the reply. Yes, I dumped the results of the cfcatch. Strangely, the cflocation is working

Re: CFFILE / CFCATCH

2011-06-30 Thread Michael Grant
+1. cfdump var=#cfcatch#/ cfabort / Also, you can drop the extraneous cfoutput around the cffile. Variables are automatically outputted if used as an attribute value in a cftag and wrapped in #. Sent from my iPhone. On 2011-06-30, at 2:56 AM, Andrew Scott andr...@andyscott.id.au wrote

RE: CFFILE / CFCATCH

2011-06-30 Thread Jenny Gavin-Wear
Thanks Michael, I looked for the dump first. The only problem is the session variable not being set inside the cfcatch. I'm sure I am catching the error for the cflocation to trigger. Jenny -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: 01 July 2011 00:04

Re: CFFILE / CFCATCH

2011-06-30 Thread morgan l
not being set inside the cfcatch. I'm sure I am catching the error for the cflocation to trigger. Jenny -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: 01 July 2011 00:04 To: cf-talk Subject: Re: CFFILE / CFCATCH +1. cfdump var=#cfcatch#/ cfabort / Also

CFFILE / CFCATCH

2011-06-29 Thread Jenny Gavin-Wear
I'm trying to cfcatch cffile mime type errors. I can't see where I'm going wrong. cftry cfoutput cffile action=upload attributes=normal destination=#session.currentDirectory# filefield=form.fileField nameconflict=overwrite accept=image/jpeg, image/jpg, image/pjpeg, image/gif, image/png

sql method in cfcatch

2010-04-28 Thread fun and learning
Hi All - I am using try/catch around a cfquery. When I am trying to output #cfcatch.sql# or #cfcatch.where#, I get an error that SQl or where is undefined in cfcatch. These two used to work for me before. I have no issues with cfcatch.message or cfcatch.detail. Can anyone let me know what

cfcatch issue

2010-04-28 Thread fun and learning
hi all- I am using try/catch around a cfquery, and when I use #cfcatch.SQl# within cfcatch, I get an error saying sql is undefined in cfcatch. The same happens with #cfcatch.where#. Everything is fine with #cfcatch.detail#, #cfcatch.message#. I have been working with #cfcatch.sql

RE: cfcatch issue

2010-04-28 Thread Paul Alkema
Are you on CF8 or higher? Try dumping the cfcatch scope and see what you get. Paul Alkema PaulAlkema.com -Original Message- From: fun and learning [mailto:funandlrnn...@gmail.com] Sent: Wednesday, April 28, 2010 4:26 PM To: cf-talk Subject: cfcatch issue hi all- I am using try

Re: sql method in cfcatch

2010-04-28 Thread Barney Boisvert
checks before you use them. cheers, barneyb On Wed, Apr 28, 2010 at 1:11 PM, fun and learning funandlrnn...@gmail.com wrote: Hi All - I am using try/catch around a cfquery. When I am trying to output #cfcatch.sql# or #cfcatch.where#, I get an error that SQl or where is undefined in cfcatch

Re: cfcatch issue

2010-04-28 Thread Dave Watts
I am using try/catch around a cfquery, and when I use #cfcatch.SQl# within cfcatch, I get an error saying sql is undefined in cfcatch. The same happens with #cfcatch.where#. Everything is fine with #cfcatch.detail#, #cfcatch.message#. I have been working with #cfcatch.sql

Cannot declare local variable cfcatch twice

2009-08-19 Thread SANJEEV SINGLA
Hi All, I migrated my CFMX6.1 application to CF8 on my local dev machine and getting the following error. Cannot declare local variable cfcatch twice. Local variables cannot have the same names as parameters or other local variables. Please let me know how it can be resolved. Thanks

RE: Cannot declare local variable cfcatch twice

2009-08-19 Thread Adrian Lynch
Can we see your code? -Original Message- From: SANJEEV SINGLA [mailto:planetsanj...@gmail.com] Sent: 19 August 2009 07:43 To: cf-talk Subject: Cannot declare local variable cfcatch twice Hi All, I migrated my CFMX6.1 application to CF8 on my local dev machine and getting

Re: Cannot declare local variable cfcatch twice

2009-08-19 Thread Matt Quackenbush
The code would certainly help pinpoint exactly where the issue lies, but as the error message indicates, it is caused by the fact that somewhere in your code a variable is declared twice within a function. This can be caused by several factors. Here are a couple of examples that will do it.

Re: Cannot declare local variable cfcatch twice

2009-08-19 Thread Kevin Pepperman
This question was cross posted at the same time and answered on cfaussies' group almost immediately. But was not followed through with. On Wed, Aug 19, 2009 at 3:04 PM, Matt Quackenbush quackfu...@gmail.comwrote: The code would certainly help pinpoint exactly where the issue lies, but as the

cfcatch type= problem

2008-11-21 Thread Adrian Lynch
[ARGUMENTS.service] = CreateObject(component, cfc.#ARGUMENTS.service#Service).init() cfcatch type=any cfthrow type= message=No such service: #ARGUMENTS.service#br /#GetCurrentTemplatePath()# /cfcatch /cftry /cfif The try/catch is there to trap calls

RE: cfcatch type= problem

2008-11-21 Thread Adrian Lynch
Thanks James! I've changed the try/catch to: cftry cfset VARIABLES.services[ARGUMENTS.service] = CreateObject(component, cfc.#ARGUMENTS.service#Service).init() cfcatch type=any cfif CFCATCH.Message EQ Could not find the ColdFusion Component or Interface cfc

Re: cfcatch

2008-07-17 Thread Brian Dumbledore
I always thought any error generated can be cfdump'd by dumping cfcatch obj. Every now and then I get [unknown type] when I dump cfcatch and that always stumped me. However, when I output cfcatch. Message and cfcatch.Detail, they always work. What am I missing?? I see it mostly on CFMX

cfcatch

2008-07-16 Thread Brian Dumbledore
I always thought any error generated can be cfdump'd by dumping cfcatch obj. Every now and then I get [unknown type] when I dump cfcatch and that always stumped me. However, when I output cfcatch.Message and cfcatch.Detail, they always work. What am I missing?? I see it mostly on CFMX

Re: cfcatch

2008-07-16 Thread Charlie Griefer
On Wed, Jul 16, 2008 at 6:58 AM, Brian Dumbledore [EMAIL PROTECTED] wrote: I always thought any error generated can be cfdump'd by dumping cfcatch obj. Every now and then I get [unknown type] when I dump cfcatch and that always stumped me. However, when I output cfcatch.Message

Re: cfcatch

2008-07-16 Thread s. isaac dealey
I always thought any error generated can be cfdump'd by dumping cfcatch obj. Every now and then I get [unknown type] when I dump cfcatch and that always stumped me. However, when I output cfcatch.Message and cfcatch.Detail, they always work. What am I missing?? I see it mostly on CFMX

Re: cftry and cfcatch

2006-02-25 Thread John Lucania
Thank you so much, Pine et al. It works wonderful. jl On 2/8/06, John McKown [EMAIL PROTECTED] wrote: Sounds like you do not want TRY/CATCH... that is triggered on a failure. You really want to use CFSWITCH/CFCASE. -- John McKown President, Delaware.Net ICQ: 1812513 We host Fusebox.org

RE: cftry and cfcatch

2006-02-08 Thread PINE Phyo Z
I'm guessing here but I think your two queries are using stored procedures. So, use cfstoredproc to check the return values. Then, your first issue will be resolved. Then use nested cftry and cfcatch for each stored proc to resolve the second issue. So probably something like this: cftry

RE: cftry and cfcatch

2006-02-08 Thread PINE Phyo Z
I was in a hurry when I typed the previous response and found a glitch in the logic. In the inner cfcatch blocks, I am throwing the errors. So, whenever there is a problem, the yourOwnError exception will be thrown. That means you will never see Send MSSQLSERVER Not Avail and Agent Not Avail

Re: cftry and cfcatch

2006-02-08 Thread John McKown
Sounds like you do not want TRY/CATCH... that is triggered on a failure. You really want to use CFSWITCH/CFCASE. -- John McKown President, Delaware.Net ICQ: 1812513 We host Fusebox.org and all of our apps are Fusebox/ColdFusion/BlueDragon compliant. John Lucania wrote: I have two queries:

cftry and cfcatch

2006-02-07 Thread John Lucania
I have two queries: cfquery name=checksrv datasource=master SELECT @@SERVICENAME; /cfquery cfquery name=checkage datasource=master SELECT count (program_name) FROM master.dbo.sysprocesses WITH (NOLOCK) WHERE program_name LIKE '%Agent%' /cfquery I want to be notified through cfmail if 1) query

CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?

2005-12-29 Thread Reed Powell
Hello all - I've googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified

Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?

2005-12-29 Thread Nathan Strutz
googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm

RE: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?

2005-12-29 Thread Dave Watts
Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap errors, or to simply have a CFERROR page specified in application.cfm (and only use CFTRY/CFCATCH in specific pieces of code that might need

Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?

2005-12-29 Thread John Paul Ashenfelter
On 12/29/05, Reed Powell [EMAIL PROTECTED] wrote: Hello all - I've googled the heck out of this topic, and there are more opinions than I can count! Is there any definitive info on whether it is more efficient to put a CFTRY around an entire page's contents, with a CFCATCH at the end to trap

Re: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?

2005-12-29 Thread Matt Robertson
, although as you say its a dumb thing to do, once you know better. When you wrap the entire page in CFTRY, your problem could be on line 2 or line 200. Yes indeed, but cfcatch-scope variables will tell you precisely where the error occurred, and why, just like you'd get with an error-scope message

RE: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?

2005-12-29 Thread Dave Watts
written to deal with anything that happens within the entire page. Yes indeed, but cfcatch-scope variables will tell you precisely where the error occurred, and why, just like you'd get with an error-scope message. Pretty sure you even get a stack trace so you can drill down to the include

cftry/cfcatch - what the heck?

2005-11-11 Thread John Beynon
ok, here's a chunk of code; cftryPrices: pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)# - pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#/p cfcatch!--- invisibly catch errors---/cfcatch/cftry If the data

Re: cftry/cfcatch - what the heck?

2005-11-11 Thread Ryan Guill
; cftryPrices: pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)# - pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#/p cfcatch!--- invisibly catch errors---/cfcatch/cftry If the data is not present in the application

Re: cftry/cfcatch - what the heck?

2005-11-11 Thread John Beynon
nevermind, senior moment - need more coffee! ok, here's a chunk of code; cftryPrices: pound;#numberformat(application.siteCodes. sitecode[thissitecode].pricerange.minprice)# - pound;#numberformat(application.siteCodes.sitecode[thissitecode]. pricerange.maxprice)#/p cfcatch!--- invisibly

Re: cftry/cfcatch - what the heck?

2005-11-11 Thread Sean Corfield
On 11/11/05, John Beynon [EMAIL PROTECTED] wrote: ok, here's a chunk of code; cftryPrices: pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)# - pound;#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#/p cfcatch

RE: CFCs and cftry/cfcatch

2005-10-13 Thread Andy
Are you sure an error is being thrown? I recommend you comment all code out betweent the CFTRY and CFCatch and add a CFTHROW to force a specific error type. -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 12, 2005 9:26 PM To: CF-Talk

Re: CFCs and cftry/cfcatch

2005-10-13 Thread Rob Richardson
Bryan--- I'm coming in on the tail end of this conversation, but noticed in your code sample that you were trying to cfdump the cfcatch structure. I ran into problems with cfdump/cfcatch that was ultimately confirmed by Macromedia to be a bug in CFMX6.1 that isn't corrected by one of their hot

Re: cfcatch/cfdump weirdness

2005-10-13 Thread Rob Richardson
. This is a bug in CF 6.1. However, it has been fixed in CF 7.0, i.e. I see all the output beyond the cfcatch. I can enter this as a bug against 6.1 and I am curious to know if you can move to CF 7.0 to resolve this OR can you work around this OR how should we proceed? We often patch CF 6.1

RE: CFCs and cftry/cfcatch

2005-10-13 Thread Kerry
I thought there was a patch for this? http://www.macromedia.com/go/1a9c83c Or are you referring to another bug? -Original Message- From: Rob Richardson [mailto:[EMAIL PROTECTED] Sent: 13 October 2005 15:17 To: CF-Talk Subject: Re: CFCs and cftry/cfcatch Bryan--- I'm coming

Re: CFCs and cftry/cfcatch

2005-10-13 Thread Rob Richardson
I have 6.1, with updater hot fixes, including 1a9c83c. MM confirmed this bug is in addition to list of known updater issues posted on their site. This bug is not yet listed online. I thought there was a patch for this? http://www.macromedia.com/go/1a9c83c Or are you referring to another

CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
Hey All, I'm having some issues trying to get a try/catch block to work correctly (i.e. doesn't catch a dang thing) in a method in one of my CFCs. I haven't tried this before...are there any gotchas? can it be done (don't see why not)? TIA Cheers Bryan Stevenson B.Comm. VP Director of

RE: CFCs and cftry/cfcatch

2005-10-12 Thread Kerry
try catch definitely works in a cfc. can you post your code? -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: 12 October 2005 18:37 To: CF-Talk Subject: CFCs and cftry/cfcatch Hey All, I'm having some issues trying to get a try/catch block to work correctly (i.e

Re: CFCs and cftry/cfcatch

2005-10-12 Thread John C. Bland II
cffunction name=blah cftry !--- do stuff here --- cfcatch type=any!--- handle error ---/cfcatch /cftry /cffunction Do you have something like that? We do cftry/catch in cfc's all of the time. On 10/12/05, Bryan Stevenson [EMAIL PROTECTED] wrote: Hey All, I'm having some issues trying to get

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com - Original Message - From: Kerry [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, October 12, 2005 10:40 AM Subject: RE: CFCs and cftry/cfcatch try catch definitely works in a cfc. can

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
(ARGUMENTS.user,ARGUMENTS.pwd,activityID) !--- lookup hail in record --- cfelseif Trim(ARGUMENTS.hailType) eq IN cfset qGetHail = CreateObject(component,appcfcs.fos.hails).getHailIn(ARGUMENTS.user,ARGUMENTS.pwd,activityID) /cfif cfreturn qGetHail cfcatch type

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
Bugger!! I think I may have figured it out...there is a site-wide error handler in place that may be messing with the try/catch *insert my red face here*. I'll check into itbut in the meantime if anyone sees a problem with my code...feel free to enlighten me ;-) Cheers Bryan Stevenson

RE: CFCs and cftry/cfcatch

2005-10-12 Thread Ian Skinner
Bugger!! I think I may have figured it out...there is a site-wide error handler in place that may be messing with the try/catch *insert my red face here*. I'll check into itbut in the meantime if anyone sees a problem with my code...feel free to enlighten me ;-) Cheers Well the one

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
@houseoffusion.com Sent: Wednesday, October 12, 2005 11:08 AM Subject: RE: CFCs and cftry/cfcatch Bugger!! I think I may have figured it out...there is a site-wide error handler in place that may be messing with the try/catch *insert my red face here*. I'll check into itbut in the meantime if anyone

RE: CFCs and cftry/cfcatch

2005-10-12 Thread Ian Skinner
FYI there is s site-wide error handlerturned it off and found there is some other error handler that I can't find (previous developer)so I'm still tracking that down. Look for cferror tags as well as other cftry blocks that may be surrounding this code, especially in included templates

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
Yes John...exactly like your example (I'm not new to try/catchjust haven't used inside a cffunction before). The weird part is the catch doesn't fire off ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax:

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems.com - Original Message - From: Ian Skinner [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Wednesday, October 12, 2005 11:25 AM Subject: RE: CFCs and cftry/cfcatch FYI there is s

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Ken Ferguson
So, when I want to use a try/catch in a function, I usually do it like this: cfunction cfargument cfset var cftry do stuff cfcatch cfreturn cfcatch /cfcatch cfreturn intededReturnVariable /cffunction This way, if I do catch an error I'm returning the cfcatch info. I guess you will have

Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
exactly what I'm doing Kenand I think I have it all working now (didn't have cfreturn as part of my catchtry when the remote machine connection is restored)DOH! I'm having one of thse days today ;-) Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge

SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
Let's just say it works as intended and leave it at that ;-) Thanks to all that replied Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web:

RE: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Andrew Scott
/cfcatch Let's just say it works as intended and leave it at that ;-) Thanks to all that replied Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web

Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
output of true wouldn't work anyways?? All is workinig now though...essentially by not having a cfreturn as part of the cfcatch, I was causing an error of the wrong datatype being returned (i.e. nothing being returned when it should have been a query). I've seen lots of complaints about

RE: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Andrew Scott
Bryan, If you don't have a return, it should have fallen through to the nearest return. I take it that in the cfcatch you also had a cfabort then? Which would explain why you need the return. Regards, Andrew Scott Quote of the Day: IBM: Increasingly Banal Movement -Original Message

Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
nope...the proper return bailed (intentionally so I could test the try/catch) casuing the cfcatch to fire off...it had no return so I still ended up with a method returning something not of type query just my own stupidity...it happens...sh ;-) Bryan Stevenson B.Comm. VP Director of E

RE: [Norton AntiSpam] Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Andrew Scott
Bryan, That’s because after looking at the code, you had the return prior to the cactch. This is what I always do. cffunction cftry Logic /cftry cfcatch Catch Error /cfcatch cfreturn retValue / /cffunction Now as this was a query you could defined the retValue as an empty

Re: [Norton AntiSpam] Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

2005-10-12 Thread Bryan Stevenson
yep...what I'm doing is essentially the same thing.6 of one half dozen of another ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web:

CFTRY and CFCATCH

2005-10-10 Thread Mickael
Hi All, I have never really had a good handle on CFTRY and CFCATCH. If I have an error on my website as follows The request has exceeded the allowable time limit Tag: CFQUERY What type of cfcatch is that? Or can that not be caught by CFCatch? Mike

RE: CFTRY and CFCATCH

2005-10-10 Thread Dawson, Michael
Try CFDUMP on the CFCATCH structure. That should show you the type of the exception. cftry cfquery ...SQL... /cfquery cfcatch type=any cfdump var=#cfcatch# /cfcatch /cftry I would say, in this case, it is probably a database exception. M!ke -Original Message- From

cfcatch/cfdump weirdness

2005-09-08 Thread Timothy Heald
Afternoon folks! We have run into some really strange problems with cfdump-ing a cfcatch structure. It is almost as though at the end of cfdump var=#cfcatch# is cfsetiing enablecfoutputonly=yes. We are running this and getting the same results on 2 different servers. Both are on CFMX 6.1

Re: cfcatch/cfdump weirdness

2005-09-08 Thread Barney Boisvert
a cfcatch structure. It is almost as though at the end of cfdump var=#cfcatch# is cfsetiing enablecfoutputonly=yes. We are running this and getting the same results on 2 different servers. Both are on CFMX 6.1, one is windows 2000, one is 2003. Here are three test cases: -- Barney

RE: cfcatch/cfdump weirdness

2005-09-08 Thread Loathe
Nope. Commented out the logic in the app.cfm for just that reason and just left in cfset temp = so it wouldn't blow up. -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, September 08, 2005 4:49 PM To: CF-Talk Subject: Re: cfcatch/cfdump weirdness I see

Dump CFCATCH

2005-06-28 Thread Trevor Orr
When I try to do CFDUMP VAR=#CFCATCH# I get the following [Unknown Type] when I used to get the entire CFCatch structure dumped, anyone have any ideas why I am now getting this. Trevor Orr Summit Projects [EMAIL PROTECTED] 541.387.8883 x213

Dump CFCATCH

2005-06-28 Thread Rob Barthle
We recently heard from some people in our OPS department that mentioned this was happening as well. Personally, I've been using the following template for CFCATCH dumps. Have not had a problem so far with it. cfswitch expression=#cfcatch.Type# cfcase value=application

Re: Dump CFCATCH

2005-06-28 Thread Aaron Rouse
[EMAIL PROTECTED] wrote: When I try to do CFDUMP VAR=#CFCATCH# I get the following [Unknown Type] when I used to get the entire CFCatch structure dumped, anyone have any ideas why I am now getting this. Trevor Orr Summit Projects [EMAIL PROTECTED] 541.387.8883 x213

Re: Dump CFCATCH

2005-06-28 Thread Charlie Griefer
yeah, for some reason on 6.1 (i believe after the updater), you can no longer dump the cfcatch scope. you do still have all of the values (cfcatch.error, cfcatch.message, etc) available tho. just don't have the convenience of dumping 'em all out in one swell foop. On 6/28/05, Aaron Rouse

Re: Dump CFCATCH

2005-06-28 Thread Nathan Strutz
There is a hotfix out to patch 6.1+updater for cfcatch to display what it's supposed to in a cfdump. -nathan strutz Charlie Griefer wrote: yeah, for some reason on 6.1 (i believe after the updater), you can no longer dump the cfcatch scope. you do still have all of the values

Re: Dump CFCATCH

2005-06-28 Thread Aaron Rouse
Yeah, I just saw that, but also noticed ours says [empty string] and the hotfix is to fix [unknown type] wonder if it fixes both. On 6/28/05, Nathan Strutz [EMAIL PROTECTED] wrote: There is a hotfix out to patch 6.1+updater for cfcatch to display what it's supposed to in a cfdump

RE: Dump CFCATCH

2005-06-28 Thread Trevor Orr
We are running 6.1, will try the hotfix on our dev servers and see what happens. -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 11:17 AM To: CF-Talk Subject: Re: Dump CFCATCH What version of CF are you using? I have some code that pretty

Re: Dump CFCATCH

2005-06-28 Thread Chris Norloff
The HotFix fixes the [unknown type] error if you've applied the Updater to v6.1. [empty string] sounds like there's nothing in the cfcatch scope - it's a transient scope that exists only right after a cfcatch is called Chris Norloff -- Original Message

Re: Dump CFCATCH

2005-06-28 Thread Chris Norloff
ColdFusion MX 6.1 Updater: Hot fix for cfdump throwing unknown type error for cfcatch structure http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=1a9c83c -- Original Message -- From: Trevor Orr [EMAIL PROTECTED] Reply-To: cf-talk

Re: Dump CFCATCH

2005-06-28 Thread Aaron Rouse
thanks, now to just see if I can get them to apply it On 6/28/05, Chris Norloff [EMAIL PROTECTED] wrote: ColdFusion MX 6.1 Updater: Hot fix for cfdump throwing unknown type error for cfcatch structure http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=1a9c83c

dumping cfcatch - UndefinedElementException

2005-06-28 Thread Russ
below. I'm just dumping #cfcatch#. Why is it different in this case and how do I get the template and line numbers? Russ object of coldfusion.runtime.UndefinedElementException Methods getMessage (returns java.lang.String) getResolvedname (returns java.lang.String) getErrNumber (returns

Re: dumping cfcatch - UndefinedElementException

2005-06-28 Thread S . Isaac Dealey
is the error below. I'm just dumping #cfcatch#. Why is it different in this case and how do I get the template and line numbers? Even with CF7, cfcatch objects still frequently don't function as expected... The best answer I've been able to come up with is this: function getError(err) { var

RE: CFTRY/CFCATCH exposing CF errors?

2005-04-08 Thread Micha Schopman
Matt, We also had this type of issue a while ago, were cftry/cfcatch didn't suppress the error. We tried everything but with no results on the cf side. We did a workaround in the presentation layer (the logic consisted in outputting raw xml strings). It was definitely a bug, but we couldn't

Re: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-08 Thread Sean Corfield
On Apr 7, 2005 5:42 PM, Matt Robertson [EMAIL PROTECTED] wrote: OK its very simple code. I'll send it over. Mostly what I posted already. But it doesn't happen on my live server. Only my dev box here on my desktop, where I could put in a simple s/w error handler on a relatively clean

Re: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-08 Thread Matt Robertson
Thanks again for taking the time to look this over, Sean! -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and

CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
Hey All, PROBLEM: An Oracle connection refused error was displayed in a production system (yes all the lovely SQL exposed to the public..bad, bad, bad), when the code that attempted the connection was wrapped in a CFTRY/CFCATCH...that runs an error handling tag on error. The tag is supposed

RE: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Michael T. Tangorre
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] So...how can a standard CF error be displayed when a CFTRY/CFCATCH is setup specifically to NOT show actual CF error messages? What kind of exception are you catching with the cfcatch tag? Any? Database? Check that first... Mike

Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
refused error was displayed in a production system (yes all the lovely SQL exposed to the public..bad, bad, bad), when the code that attempted the connection was wrapped in a CFTRY/CFCATCH...that runs an error handling tag on error. The tag is supposed to display a user-friendly message and e

Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
Another thing: I *think* a site-wide error handler in place would act as a backup as well. And this could happen inside of OnRequestEnd.cfm too. -- --mattRobertson-- Janitor, MSB Web Systems mysecretbase.com ~| Logware

  1   2   3   4   >