RE: CFCs and cftry/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 Subject: Re: CFCs and cftry/cfcatch 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 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:220873 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: CFCs and cftry/cfcatch
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 fixes and I'm having to hack around since we won't be moving to 7.0 anythime soon. See thread (http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:42124#217681) for details. I'll update that thread with the response from MM. Good luck with this.--- Rob ~| 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:220894 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: CFCs and cftry/cfcatch
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 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 fixes and I'm having to hack around since we won't be moving to 7.0 anythime soon. See thread (http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:42124 #217681) for details. I'll update that thread with the response from MM. Good luck with this.--- Rob ~| 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:220901 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: CFCs and cftry/cfcatch
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 bug? ~| 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:220921 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: CFCs and cftry/cfcatch
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. 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 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:220830 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: CFCs and cftry/cfcatch
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 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 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 http://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:220832 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: CFCs and cftry/cfcatch
Thanks KerryI may have a different problem than I thoughtif I don't get it sorted ASAP I'll fire up the code and see what the list has to say ;-) 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 - 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 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. 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 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:220833 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: CFCs and cftry/cfcatch
OK...I give uphere's the code: cffunction name=getHail access=remote returntype=query output=false hint=Retrieves a core hail out record (hail numbers/licences/trip types/periods can be retrieved via other available methods). If a hailID and hailNumber are passed in, the hailID will be used instead of the hailNumber cfargument name=user type=string required=yes cfargument name=pwd type=string required=yes cfargument name=hailNum type=numeric required=yes hint=hail number of desired hail record (pass a zero if you want to ignore this argument) cfargument name=hailID type=numeric required=yes hint=activity ID of desired hail record (pass a zero if you want to ignore this argument) cfargument name=hailType type=string required=yes hint=type of hail (valid values are OUT and IN) cftry !--- we will lookup hail by activity ID for provided hail number - lookup activity ID --- cfif Len(Trim(ARGUMENTS.hailNum)) AND NOT Len(Trim(ARGUMENTS.hailID)) cfquery name=qGetActID datasource=#datasource# username=#ARGUMENTS.user# password=#ARGUMENTS.pwd# SELECT act_act_id FROM #oschema#.hail_number WHERE haiul_no = cfqueryparam value=#ARGUMENTS.hailNum# cfsqltype=CF_SQL_NUMERIC /cfquery cfset activityID = qGetActID.act_act_id !--- hail number and hail ID (activity ID) passed to method - ignore hail number and use hail ID to lookup hail --- cfelseif Len(Trim(ARGUMENTS.hailNum)) AND Len(Trim(ARGUMENTS.hailID)) cfset activityID = ARGUMENTS.hailID /cfif !--- lookup hail out record --- cfif Trim(ARGUMENTS.hailType) eq OUT cfset qGetHail = CreateObject(component,appcfcs.fos.hails).getHailOuty(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=any !--- cfset qGetHail = packageError(cfcatch.errorMessage) --- cfdump var=#cfcatch#cfabort /cfcatch /cftry /cffunction I have forced an error by calling getHailOuty instead of getHailOut (this condition is met cfif Trim(ARGUMENTS.hailType) eq OUT). The cfcatch does NOT fire off and no dump of cfcatch scope occursinstead I get a standard fairly useless CF webservice error. Anybody? 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:220836 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: 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 sees a problem with my code...feel free to enlighten me ;-) 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:220838 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: 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 sees a problem with my code...feel free to enlighten me ;-) Cheers Well the one thing I noticed is that you have output=false on the function, this blocks all output, even cfdumps. So you need to either temporarily turn on the output, or return the error to the calling code in some way. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| 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:220840 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: CFCs and cftry/cfcatch
Well the one thing I noticed is that you have output=false on the function, this blocks all output, even cfdumps. So you need to either temporarily turn on the output, or return the error to the calling code in some way. and this is why you show your codeto find the stupid things you shoulda seen ;-) I'll give that a whirl 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. Bah...all this for something that should be so simple ;-) 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 - Original Message - From: Ian Skinner [EMAIL PROTECTED] To: CF-Talk cf-talk@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 sees a problem with my code...feel free to enlighten me ;-) Cheers Well the one thing I noticed is that you have output=false on the function, this blocks all output, even cfdumps. So you need to either temporarily turn on the output, or return the error to the calling code in some way. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| 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:220841 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: CFCs and cftry/cfcatch
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 such as application.cfm. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| 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:220843 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: CFCs and cftry/cfcatch
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: 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:220846 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: CFCs and cftry/cfcatch
Look for cferror tags as well as other cftry blocks that may be surrounding this code, especially in included templates such as application.cfm. First thing I didnada ;-) 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 - 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 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 such as application.cfm. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| 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:220850 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: CFCs and cftry/cfcatch
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 to do something a little different since you're returntype is set to query. I guess you could create a query object from the cfcatch information to return. Also, you're just doing an output-style dump, but your cffunction tag has output=false. I'm thinking that's not what you want to do. --Ferg Bryan Stevenson wrote: OK...I give uphere's the code: cffunction name=getHail access=remote returntype=query output=false hint=Retrieves a core hail out record (hail numbers/licences/trip types/periods can be retrieved via other available methods). If a hailID and hailNumber are passed in, the hailID will be used instead of the hailNumber cfargument name=user type=string required=yes cfargument name=pwd type=string required=yes cfargument name=hailNum type=numeric required=yes hint=hail number of desired hail record (pass a zero if you want to ignore this argument) cfargument name=hailID type=numeric required=yes hint=activity ID of desired hail record (pass a zero if you want to ignore this argument) cfargument name=hailType type=string required=yes hint=type of hail (valid values are OUT and IN) cftry !--- we will lookup hail by activity ID for provided hail number - lookup activity ID --- cfif Len(Trim(ARGUMENTS.hailNum)) AND NOT Len(Trim(ARGUMENTS.hailID)) cfquery name=qGetActID datasource=#datasource# username=#ARGUMENTS.user# password=#ARGUMENTS.pwd# SELECT act_act_id FROM #oschema#.hail_number WHERE haiul_no = cfqueryparam value=#ARGUMENTS.hailNum# cfsqltype=CF_SQL_NUMERIC /cfquery cfset activityID = qGetActID.act_act_id !--- hail number and hail ID (activity ID) passed to method - ignore hail number and use hail ID to lookup hail --- cfelseif Len(Trim(ARGUMENTS.hailNum)) AND Len(Trim(ARGUMENTS.hailID)) cfset activityID = ARGUMENTS.hailID /cfif !--- lookup hail out record --- cfif Trim(ARGUMENTS.hailType) eq OUT cfset qGetHail = CreateObject(component,appcfcs.fos.hails).getHailOuty(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=any !--- cfset qGetHail = packageError(cfcatch.errorMessage) --- cfdump var=#cfcatch#cfabort /cfcatch /cftry /cffunction I have forced an error by calling getHailOuty instead of getHailOut (this condition is met cfif Trim(ARGUMENTS.hailType) eq OUT). The cfcatch does NOT fire off and no dump of cfcatch scope occursinstead I get a standard fairly useless CF webservice error. Anybody? 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:220851 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: CFCs and cftry/cfcatch
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 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:220852 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
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:220858 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
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
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 ~| 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
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
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] Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch
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 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] Re: [Norton AntiSpam] SOLVED: Re: CFCs and cftry/cfcatch
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