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: www.electricedgesystems.com 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220868
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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.



    Logic
 
 
    Catch Error

 


Now as this was a query you could defined the retValue as an empty query,
then if the cacth is being caught it would fall through and return an empty
query. Otherwise the query will be returned populated.


Regards,
Andrew Scott
 
Quote of the Day:
Your manuscript is both good and original, but the part that is good is 
not original and the part that is original is not good.
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 13 October 2005 8:14 AM
To: CF-Talk
Subject: [Norton AntiSpam] Re: [Norton AntiSpam] SOLVED: Re: CFCs and
cftry/cfcatch

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-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220867
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220866
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 13 October 2005 8:01 AM
To: CF-Talk
Subject: Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch

> Just a FYI. Even if you have a site wide error handling, or even a cferror
> tag, a cftry/cfcacth will override those.

Yep...that's why I couldn't figure out what was up...but I did know what 
"should" take precedence

 As you really never explained the
> error, and there was the possibility that you didn't have output='true' 
> then
> I can also assume that you haven't patched your server with the cfdump in 
> a
> cftry block bug.

Not sure about the patch (on MX 7)but I know I've seen cfdump work 
inside a cftry.  The biggie I never mentioned is that this is a 
webservice...so I would assume 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 debugging webservices in CFI'm 
starting to understand why ;-)

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: www.electricedgesystems.com 




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220865
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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

2005-10-12 Thread Bryan Stevenson
> Just a FYI. Even if you have a site wide error handling, or even a cferror
> tag, a cftry/cfcacth will override those.

Yep...that's why I couldn't figure out what was up...but I did know what 
"should" take precedence

 As you really never explained the
> error, and there was the possibility that you didn't have output='true' 
> then
> I can also assume that you haven't patched your server with the cfdump in 
> a
> cftry block bug.

Not sure about the patch (on MX 7)but I know I've seen cfdump work 
inside a cftry.  The biggie I never mentioned is that this is a 
webservice...so I would assume 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 debugging webservices in CFI'm 
starting to understand why ;-)

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: www.electricedgesystems.com 


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220864
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


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

2005-10-12 Thread Andrew Scott
Bryan,

Just a FYI. Even if you have a site wide error handling, or even a cferror
tag, a cftry/cfcacth will override those. As you really never explained the
error, and there was the possibility that you didn't have output='true' then
I can also assume that you haven't patched your server with the cfdump in a
cftry block bug.


Regards,
Andrew Scott
 
Quote of the Day:
Me and my two friends... GIF and Wesson.
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 13 October 2005 6:32 AM
To: CF-Talk
Subject: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/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: www.electricedgesystems.com



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220862
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54