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
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
://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
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
, 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
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
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
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
=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
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
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
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
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
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
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
: 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
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
+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
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
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
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
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
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
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
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
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
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
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
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.
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
[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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
, 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
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
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
;
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
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
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
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
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
. 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
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
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
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
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
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
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
(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
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
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
@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
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
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:
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
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
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
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:
/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
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
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
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
Bryan,
Thats 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
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:
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 359 matches
Mail list logo