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 
wrote:

>
> 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 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austi
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359262
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 from the createObject statement.

-- 
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359261
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austi

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359259
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFTRY / CFCATCH not working

2014-09-09 Thread Byron Mann

"Numbers of source Raster bands and source color space components do not
match null"

Where do you see this error? In the exception logs?  Or is the thread just
dying and outputting this and not continuing on?

Also what CF Version, I know older versions seemed to have many more
problems reading image files than more recent version.

On Tue, Sep 9, 2014 at 1:33 PM, Robert Harrison 
wrote:

>
> Thanks, but that had no effect at all.
>
> 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 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://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 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:
>  get_imginfo.ImgHeight=0>
>
> To this:
> 
>
> ...and see if it makes the error go away.
>
> -Cameron
>
> On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison <
> rob...@austin-williams.com>
> wrote:
>
> >
> > I have a script that returns image properties to me (below).   After
> years
> > of using it I've hit some sort of file that crashes it.  The error I'm
> > getting is:
> >
> >     Numbers of source Raster bands and source color space
> > components do not match null
> >
> > I'm assuming that from a corrupt image 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.
> >
> >
> > 
> > 
> > function get_imageinfo(imgfile){
> >   jFileIn =
> > createObject("java","java.io.File").init(imgfile);
> >   ImageInfo = StructNew();
> >   ImageObject =
> > createObject("java","javax.imageio.ImageIO").read(jFileIn);
> > <-THIS IS THE OFFENDING LINE
> >   imageFile = CreateObject("java",
> > "java.io.File");
> >   imageFile.init(imgfile);
> >   sizeb = imageFile.length();
> >   sizekb = numberformat(sizeb / 1024,
> > "9.99");
> >   sizemb = numberformat(sizekb / 1024,
> > ".99");
> >   get_imginfo = StructNew();
> >   get_imginfo.ImgWidth =
> > ImageObject.getWidth();
> >   get_imginfo.ImgHeight =
> > ImageObject.getHeight();
> >   get_imginfo.SizeKB = sizekb;
> >   get_imginfo.SizeMB = sizemb;
> >   get_imginfo.ImageFormat =
> > ListLast(ListLast(imgfile, "\"), ".");
> > }
> > 
> >  > get_imginfo.ImgWidth=0>
> > 
> >
> >
> > It runs this in a loop over a bunch of images and works until it hits
> > the bad file... but it's ignoring my CFTRY and still throwing a hard
> error.
> >
> > Anyone have any ideas on why the CRFTY/CFCATCH is not working.  Is
> > there a problem because I'm catching a cfscript block?
> >
> > Thanks
> >
> > 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 631.434.7022
> > http://www.austin-williams.com
> >
> > Blog:  http://www.austin-williams.com/blog
> > Twitter:  http://www.twitter.com/austin_williams
> >
> >
> >
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359258
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 least
CF8.

-- 
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359257
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison

Thanks, but that had no effect at all. 

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 631.434.7022   
http://www.austin-williams.com

Blog:  http://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 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:


To this:


...and see if it makes the error go away.

-Cameron

On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison 
wrote:

>
> I have a script that returns image properties to me (below).   After years
> of using it I've hit some sort of file that crashes it.  The error I'm 
> getting is:
>
> Numbers of source Raster bands and source color space 
> components do not match null
>
> I'm assuming that from a corrupt image 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.
>
>
> 
> 
> function get_imageinfo(imgfile){
>   jFileIn = 
> createObject("java","java.io.File").init(imgfile);
>   ImageInfo = StructNew();
>   ImageObject = 
> createObject("java","javax.imageio.ImageIO").read(jFileIn);
> <-THIS IS THE OFFENDING LINE
>   imageFile = CreateObject("java", 
> "java.io.File");
>   imageFile.init(imgfile);
>   sizeb = imageFile.length();
>   sizekb = numberformat(sizeb / 1024, 
> "9.99");
>   sizemb = numberformat(sizekb / 1024, 
> ".99");
>   get_imginfo = StructNew();
>   get_imginfo.ImgWidth = 
> ImageObject.getWidth();
>   get_imginfo.ImgHeight = 
> ImageObject.getHeight();
>   get_imginfo.SizeKB = sizekb;
>   get_imginfo.SizeMB = sizemb;
>   get_imginfo.ImageFormat = 
> ListLast(ListLast(imgfile, "\"), ".");
> }
> 
>  get_imginfo.ImgWidth=0>
> 
>
>
> It runs this in a loop over a bunch of images and works until it hits 
> the bad file... but it's ignoring my CFTRY and still throwing a hard error.
>
> Anyone have any ideas on why the CRFTY/CFCATCH is not working.  Is 
> there a problem because I'm catching a cfscript block?
>
> Thanks
>
> 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 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359256
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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:


To this:


...and see if it makes the error go away.

-Cameron

On Tue, Sep 9, 2014 at 1:02 PM, Robert Harrison 
wrote:

>
> I have a script that returns image properties to me (below).   After years
> of using it I've hit some sort of file that crashes it.  The error I'm
> getting is:
>
> Numbers of source Raster bands and source color space components
> do not match null
>
> I'm assuming that from a corrupt image 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.
>
>
> 
> 
> function get_imageinfo(imgfile){
>   jFileIn =
> createObject("java","java.io.File").init(imgfile);
>   ImageInfo = StructNew();
>   ImageObject =
> createObject("java","javax.imageio.ImageIO").read(jFileIn);
> <-THIS IS THE OFFENDING LINE
>   imageFile = CreateObject("java",
> "java.io.File");
>   imageFile.init(imgfile);
>   sizeb = imageFile.length();
>   sizekb = numberformat(sizeb / 1024,
> "9.99");
>   sizemb = numberformat(sizekb / 1024,
> ".99");
>   get_imginfo = StructNew();
>   get_imginfo.ImgWidth =
> ImageObject.getWidth();
>   get_imginfo.ImgHeight =
> ImageObject.getHeight();
>   get_imginfo.SizeKB = sizekb;
>   get_imginfo.SizeMB = sizemb;
>   get_imginfo.ImageFormat =
> ListLast(ListLast(imgfile, "\"), ".");
> }
> 
>  get_imginfo.ImgWidth=0>
> 
>
>
> It runs this in a loop over a bunch of images and works until it hits the
> bad file... but it's ignoring my CFTRY and still throwing a hard error.
>
> Anyone have any ideas on why the CRFTY/CFCATCH is not working.  Is there a
> problem because I'm catching a cfscript block?
>
> Thanks
>
> 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 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359255
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFTRY / CFCATCH not working

2014-09-09 Thread Robert Harrison

I have a script that returns image properties to me (below).   After years of 
using it I've hit some sort of file that crashes it.  The error I'm getting is: 

Numbers of source Raster bands and source color space components do not 
match null 

I'm assuming that from a corrupt image 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. 




function get_imageinfo(imgfile){
  jFileIn = 
createObject("java","java.io.File").init(imgfile);
  ImageInfo = StructNew();
  ImageObject = 
createObject("java","javax.imageio.ImageIO").read(jFileIn);  
<-THIS IS THE OFFENDING LINE
  imageFile = CreateObject("java", 
"java.io.File"); 
  imageFile.init(imgfile); 
  sizeb = imageFile.length(); 
  sizekb = numberformat(sizeb / 1024, 
"9.99");
  sizemb = numberformat(sizekb / 1024, 
".99");
  get_imginfo = StructNew();
  get_imginfo.ImgWidth = ImageObject.getWidth();
  get_imginfo.ImgHeight = 
ImageObject.getHeight();
  get_imginfo.SizeKB = sizekb;
  get_imginfo.SizeMB = sizemb;
  get_imginfo.ImageFormat = 
ListLast(ListLast(imgfile, "\"), ".");
}





It runs this in a loop over a bunch of images and works until it hits the bad 
file... but it's ignoring my CFTRY and still throwing a hard error.  

Anyone have any ideas on why the CRFTY/CFCATCH is not working.  Is there a 
problem because I'm catching a cfscript block?

Thanks

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 631.434.7022   
http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_williams 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359254
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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

2005-12-29 Thread Dave Watts
> Actually you can nest try/catch (wrap whole page, with individual code
> blocks wrapped inside of that) and its not a problem, although as you
> say its a dumb thing to do, once you know better.

Sure, you can do that. But it adds unnecessary complication to error
handling, and can cause some odd problems. For example, if you write an
exception handler that doesn't know what to do with the exception it's
caught, it should kick the exception to a higher level. If that higher level
is your page-wide exception handler, it might not be able to respond in an
especially useful manner, since it's 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 or module that *really* caused the problem.

Yes, the exception itself will provide descriptive information, which is
good to have after the fact. But one of the primary purposes of exception
handling is to deal with problems as they occur, and to do this you have to
have a pretty good idea in advance of what kinds of problems you can expect.
Wrapping an entire page in CFTRY indicates that you don't actually have any
idea what's going to go wrong, and can't really do anything other than
report the exceptions it receives.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
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:227958
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: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about e xcessive CFOUTPUTs?

2005-12-29 Thread Matt Robertson
On 12/29/05, Dave Watts <[EMAIL PROTECTED]> wrote:
> However,
> wrapping a CFTRY around a page is bad, bad, bad! That's not what it's for -
> that's why we have CFERROR.

As obsessed as I am about error handling, it unfortunately took me a
long time to learn this, and I am still pulling try/catch statements
out of old code I come across.  I did it for years.  With that in
mind...

> Wrapping a CFTRY around a page prevents you from
> using CFTRY usefully within that page.

Actually you can nest try/catch (wrap whole page, with individual code
blocks wrapped inside of that) and its not a problem, 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.  Pretty sure you even get a stack trace so you can drill down
to the include or module that *really* caused the problem.

--
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:227957
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: 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 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 special error handling procedures)?  In other words,
> what is the performance cost for code that is executing within a CFTRY
> block?

I'd go with the CFERROR and specific CFTRY/CATCH regardless of
performance details.

> I'm interested in this because the CF server that I've just recently started
> working with seems to be having periodic performance problems (still trying
> to determine what "periodic" actually means), and noticed that a lot of the
> application's pages have a single CFTRY around them.

In general with performance optimization, you figure out what you're
working on -- without a good idea about *what* the issue is, you're
shooting in the dark and just as likely to cause newer/different
problems.

I'd start by turning on slow page logging and slow query logging (if
you db supports) as well to start. If you see pages that are
consistently problematic, you know where to start spending some time
-- if it seems truly random, you probably want to do some
process/cpu/etc monitoring to see if its *another* process (e.g. the
automatic virus scanner someone installed) that's eating your
performance.

And of course you need to cross-index this with load.

As far as noticing a lot of CFTRY around entire pages, that to me
seems like it's a bad idea as a general practice -- but you should get
*consistent* performance, even if it's slower.


> I've also noticed excessive use of CFOUTPUT tags.  Is it worth consolidating
> these to help performance?  I've seen as many as 5 in a block of code that's
> only 30 lines long, where only 1 was needed.


> What about excessive # marks?  It makes me crazy to see code like
>  ...
> But does that also make CF crazy?  I'd think that this goofiness would not
> actually filter down to the Jrun code that actually executes, right?

Once you're compiled down to java classes, a lot of this stuff is
irrelevant. Again, I think you're looking in the wrong place -- you
don't even know for a fact that it's ColdFusion that's causing your
problem.

> Any good MX7 performance/tuning papers running around?  I checked on the
> macromedia website, and with google, but only found info on older versions.

There are lots of things you can do to change performance -- move SQL
to stored procs, cache things, tune the JVM, etc, etc. But all of it
is pointless until you can narrow down *what* and *where* your problem
is -- everything else is code-and-hope.

In my experience, sporadic performance problems have nothing to do
with  style, # marks, etc and far more with
bad/poor/inefficient SQL (#1 issue with CF code imho). Or with other
processes running on the server/network segment you forgot about (the
massive backup that runs hourly, the automatic defragger/etc someone
set up, the daily email blast that saturates your outbound pipe, etc).


--
John Paul Ashenfelter
CTO/Transitionpoint
(blog) http://www.ashenfelter.com
(email) [EMAIL PROTECTED]

~|
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:227956
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: 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 special error handling
> procedures)? In other words, what is the performance cost for 
> code that is executing within a CFTRY block?
> 
> I'm interested in this because the CF server that I've just 
> recently started working with seems to be having periodic 
> performance problems (still trying to determine what "periodic" 
> actually means), and noticed that a lot of the application's 
> pages have a single CFTRY around them.

I think you're asking the wrong question. I seriously doubt whether there
are any significant performance implications one way or the other. However,
wrapping a CFTRY around a page is bad, bad, bad! That's not what it's for -
that's why we have CFERROR. Wrapping a CFTRY around a page prevents you from
using CFTRY usefully within that page. The purpose of exception handling is
to let you identify and trap specific problems, and provide specific
solutions for those problems. When you wrap the entire page in CFTRY, your
problem could be on line 2 or line 200. Plus, it means that you have to
manage generalized error handling within each page, which is unnecessarily
complicated.

> I've also noticed excessive use of CFOUTPUT tags. Is it worth 
> consolidating these to help performance? I've seen as many as 
> 5 in a block of code that's only 30 lines long, where only 1 
> was needed.

I doubt you'd see any significant difference here, either.
 
> What about excessive # marks?  It makes me crazy to see code like
>...
> But does that also make CF crazy?  I'd think that this 
> goofiness would not actually filter down to the Jrun code that 
> actually executes, right?

I don't think this makes any significant difference either.

> Any good MX7 performance/tuning papers running around? I 
> checked on the macromedia website, and with google, but only 
> found info on older versions.

To the extent that those older versions address CFMX 6.1, they should still
be largely valid for 7. There isn't that much difference, really. In
general, you're far more likely to improve performance by examining data
access and caching more closely.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~|
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:227954
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: CF performance tuning: CFTRY/CFCATCH vs CFERROR? What about excessive CFOUTPUTs?

2005-12-29 Thread Nathan Strutz
The try/catch vs cferror page - it's really about what works best for
you, what is more manageable, and what gives the best results for you.
Try/catch isn't really made for wrapping whole pages, but it won't
cause errors or problems. It's just not as manageable as cferror.

Same with multiple cfoutputs and over-usage of #'s. When it gets
translated down into java, it really doesn't matter anymore.

If there is a performance benifit, it happens when the page is parsed
(once per template, until it is modified next or the service
restarts).

The real issue is what is most readable and manageable for you, the developer.

As for your servers, make sure your server is all patched up and has
the latest database drivers, otherwise, it's a little hard to say from
the info you gave us

-nathan strutz
http://www.dopefly.com/



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 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 special error handling procedures)?  In other words,
> what is the performance cost for code that is executing within a CFTRY
> block?
>
> I'm interested in this because the CF server that I've just recently started
> working with seems to be having periodic performance problems (still trying
> to determine what "periodic" actually means), and noticed that a lot of the
> application's pages have a single CFTRY around them.
>
> I've also noticed excessive use of CFOUTPUT tags.  Is it worth consolidating
> these to help performance?  I've seen as many as 5 in a block of code that's
> only 30 lines long, where only 1 was needed.
>
> What about excessive # marks?  It makes me crazy to see code like
>  ...
> But does that also make CF crazy?  I'd think that this goofiness would not
> actually filter down to the Jrun code that actually executes, right?
>
> Any good MX7 performance/tuning papers running around?  I checked on the
> macromedia website, and with google, but only found info on older versions.
>
> TIA for any hints!
> Reed
>
>
>
>
> 

~|
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:227953
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


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 in application.cfm (and only use CFTRY/CFCATCH in specific pieces
of code that might need special error handling procedures)?  In other words,
what is the performance cost for code that is executing within a CFTRY
block?

I'm interested in this because the CF server that I've just recently started
working with seems to be having periodic performance problems (still trying
to determine what "periodic" actually means), and noticed that a lot of the
application's pages have a single CFTRY around them.

I've also noticed excessive use of CFOUTPUT tags.  Is it worth consolidating
these to help performance?  I've seen as many as 5 in a block of code that's
only 30 lines long, where only 1 was needed.

What about excessive # marks?  It makes me crazy to see code like
 ...
But does that also make CF crazy?  I'd think that this goofiness would not
actually filter down to the Jrun code that actually executes, right?

Any good MX7 performance/tuning papers running around?  I checked on the
macromedia website, and with google, but only found info on older versions.

TIA for any hints!
Reed




~|
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:227949
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: 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;
>
> Prices: 
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)#
> - 
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#
> 
>
> If the data is not present in the application scope what would you
> expect to see?
>
> 1. Nothing
> 2. Prices:

(2) because the output of the string Prices: succeeds and then the
next piece of code fails. cfcatch doesn't rollback execution of any
successful code that was executed prior to the exception being thrown.

(Just in case others are puzzled by this, since John didn't explain
*why* he's not still looking for a solution)
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~|
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:223959
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: cftry/cfcatch - what the heck?

2005-11-11 Thread John Beynon
nevermind, senior moment - need more coffee!

> ok, here's a chunk of code;
> 
> Prices: £#numberformat(application.siteCodes.
> sitecode[thissitecode].pricerange.minprice)#
> - £#numberformat(application.siteCodes.sitecode[thissitecode].
> pricerange.maxprice)#
> 
> 
> If the data is not present in the application scope what would you
> expect to see?
> 
> 1. Nothing
> 2. Prices:
> 
> In all my dealings previously if the cftry fails then it all fails 
> and
> then the cfcatch handles it - why then am I seeing Prices: displayed
> on my screen
> 
> thanks,
> 
> john.

~|
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:223940
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: cftry/cfcatch - what the heck?

2005-11-11 Thread Ryan Guill
It sounds like the data does not exist in the variable, but that the
variable does exist... is that possible?

A better way to do that would be to use structKeyExists() around your
variables and test for them first.


On 11/11/05, John Beynon <[EMAIL PROTECTED]> wrote:
> ok, here's a chunk of code;
>
> Prices: 
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)#
> - 
> £#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#
> 
>
> If the data is not present in the application scope what would you
> expect to see?
>
> 1. Nothing
> 2. Prices:
>
> In all my dealings previously if the cftry fails then it all fails and
> then the cfcatch handles it - why then am I seeing Prices: displayed
> on my screen
>
> thanks,
>
> john.
>
> 

~|
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:223939
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


cftry/cfcatch - what the heck?

2005-11-11 Thread John Beynon
ok, here's a chunk of code;

Prices: 
£#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.minprice)#
- 
£#numberformat(application.siteCodes.sitecode[thissitecode].pricerange.maxprice)#


If the data is not present in the application scope what would you
expect to see?

1. Nothing
2. Prices:

In all my dealings previously if the cftry fails then it all fails and
then the cfcatch handles it - why then am I seeing Prices: displayed
on my screen

thanks,

john.

~|
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:223937
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

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 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

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 in on the tail end of this conversation, but noticed in
your code sample that you were trying to  the cfcatch structure.  I
ran into problems with /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

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  the cfcatch structure.  I ran 
into problems with /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

2005-10-12 Thread Andy
Are you sure an error is being thrown?  I recommend you comment all code out
betweent the  and   and add a  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: [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


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: 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: 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 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


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:






do stuff





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:
>
>  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">
>
>
>  
>hint="hail number of desired hail record (pass a zero if you want to ignore 
>this argument)">
>hint="activity ID of desired hail record (pass a zero if you want to ignore 
>this argument)">
>hint="type of hail (valid values are OUT and IN)">
>
>
>
>  
>  Len(Trim(ARGUMENTS.hailID))>
>
>username="#ARGUMENTS.user#" password="#ARGUMENTS.pwd#">
>  SELECT act_act_id
>FROM #oschema#.hail_number
>   WHERE haiul_no = cfsqltype="CF_SQL_NUMERIC">
>   
>
>
>  
>  Len(Trim(ARGUMENTS.hailID))>
>
>  
>
>  
>  
>CreateObject("component","appcfcs.fos.hails").getHailOuty(ARGUMENTS.user,ARGUMENTS.pwd,activityID)>
>  
>  
>CreateObject("component","appcfcs.fos.hails").getHailIn(ARGUMENTS.user,ARGUMENTS.pwd,activityID)>
>  
>
>  
>
>  
>   
>
>  
>
>
>
>  
>
>I have forced an error by calling "getHailOuty" instead of "getHailOut" 
>(this condition is met ).  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

2005-10-12 Thread Bryan Stevenson
> Look for  tags as well as other  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" 
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  tags as well as other  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

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: 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

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  tags as well as other  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

2005-10-12 Thread Bryan Stevenson
> 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" 
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

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 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

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 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

2005-10-12 Thread Bryan Stevenson
OK...I give uphere's the code:

  


  






  
  


  SELECT act_act_id
FROM #oschema#.hail_number
   WHERE haiul_no = 
   


  
  

  

  
  

  
  

  

  

  
   

  



  

I have forced an error by calling "getHailOuty" instead of "getHailOut" 
(this condition is met ).  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

2005-10-12 Thread Bryan Stevenson
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" 
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

2005-10-12 Thread John C. Bland II







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 
>
> 

~|
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

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. 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


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 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:220829
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: 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 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:202028
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: 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 system.  The live box is probably better patched
> than this desktop.

Here's the result of my tests:

CF7 - works just fine.
CF6.1 Updater 1 (6,1,0,83762) - works just fine.
CF6 unpatched (6,1,0,63958) - random behavior including hangs,
apparent right behavior (followed by a crash) etc.

So it looks like a bug that got fixed - and is not longer present in
CFMX 6.1 Updater 1 (nor CFMX 7).
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~|
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:201995
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 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
reproduce it in other scenarios. 

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380

~|
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:201968
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Paul Vernon
Sorry, my typo in the mail... I did try both combinations of incorrect code
and didn't see a raw dump of an error.

My CF version is reported as 6,1,0,hf56580_611 which is I believe as of now,
a fully patched box. This is the dev box and it gets everything that
production gets at least a week before unless the patch is uber urgent then
its more like a few hours before

Paul


~|
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:201966
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
Your first example is correct cfcode.  Maybe a typo when you wrote the
msg?  Should be

#cgi.http_user_agent#http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201965
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Paul Vernon
Hi Matt,

With your example, every which way I try it, the sitewide error handler runs
and I don't see any extra raw error like you see in your screenshot...

Both 

#cgi.http_user_agent# 

and 

cfoutput>#cgi.http_user_agent#

simply dump the scopes you are referencing in the error handler code.

I've tested this in MX 6.1 fully patched and MX 7.

Paul 

-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Friday, 08 April 2005 01:17
To: CF-Talk
Subject: Re: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

Here's a gif of what it looks like on my dev server

http://foohbar.com/kaboom/errorscreen.gif

And to stir the pot further, Its NOT doing it on my live server.  I
uploaded the same bad code to a live web site and my own site-wide
error handler works fine.  It may be that the for-real error handler i
have runs thru a cfswitch, which then branches out to different
cfincludes to do stuff depending on what domain is involved

cfswitch expression=#cgi.http_server_name#
cfcase value=foohbar.com
   cfinclude template=cfdumper.cfm
   cfinclude template=dumpemailer.cfm
   cfinclude template=friendlyerrorscreen.cfm
/cfcase
/cfswitch

so maybe if you run thru other templates like this the problem never
happens.  Talk about an obscure bug.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201964
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
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 system.  The live box is probably better patched
than this desktop.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201963
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
Here's a gif of what it looks like on my dev server

http://foohbar.com/kaboom/errorscreen.gif

And to stir the pot further, Its NOT doing it on my live server.  I
uploaded the same bad code to a live web site and my own site-wide
error handler works fine.  It may be that the for-real error handler i
have runs thru a cfswitch, which then branches out to different
cfincludes to do stuff depending on what domain is involved

cfswitch expression=#cgi.http_server_name#
cfcase value=foohbar.com
   cfinclude template=cfdumper.cfm
   cfinclude template=dumpemailer.cfm
   cfinclude template=friendlyerrorscreen.cfm
/cfcase
/cfswitch

so maybe if you run thru other templates like this the problem never
happens.  Talk about an obscure bug.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201961
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Sean Corfield
And if you can create a relatively self-contained reproducible test
case with instructions, send it to me and I'll test it on various CF
versions and if it's still broken in CF7, I'll file a bug!

On Apr 7, 2005 5:05 PM, Paul Vernon <[EMAIL PROTECTED]> wrote:
> I follow all that... I'll see if I can re-create it here...

~|
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:201960
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Paul Vernon
Ok,

I follow all that... I'll see if I can re-create it here...

Paul


~|
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:201958
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
I am setting up the site-wide error handler in the CF Administrator. 
Its called whammo.cfm and its code is displayed in my original post on
this.

Then there's the try/catch error handler.  Thats oops.cfm and its
declared at the bottom of /Application.cfm.  It has the same code as
whammo.cfm only it displays 'oops' instead of 'whammo'  so I can be
sure which template is firing.  Then there's oops.html.  Its just an
html display page whose sole purpose is to tell me when what I'm
seeing is coming from cferror.  I'd do more of course in a real app
and not a demo like this.

> The thing with the errors that you are creating is that the two mods to the
> code you made will have very different results and I don't think the error
> handlers that are declared in your pages will ever fire under the
> circumstances you are describing...

I know.  I'm not expecting them to.  I'm expecting the site-wide error
handler to pick it up.  And it is.  *But* its also exposing raw
ColdFusion messages in one specific circumstance.  *Thats* the deal
here: Raw errors can make it to the screen even if you have a
site-wide error handler, which is never supposed to happen.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201957
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Paul Vernon
Are you declaring your site wide error handlers in the application file or
are you declaring them in the CFADMIN area?

The thing with the errors that you are creating is that the two mods to the
code you made will have very different results and I don't think the error
handlers that are declared in your pages will ever fire under the
circumstances you are describing...

Also I just spotted this







You are referencing an oops.html and an oops.cfm file in the same template
as different error handlers... Is that correct???

Paul


~|
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:201956
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
Paul,

What I was getting at is not that the template wasn't doing its catch
thing due to malformed CF.  I understand why that won't compile.  The
issue I found is that I can also cause the sidte-wide error handler to
break as well, but break in an odd way that exposes a raw CF error
message AFTER it runs.

The site-wide handler runs some CF, and then has a cfabort in it for
good measure.  Only it doesn't cfabort.  It runs its CF (which in this
case displays the error and/or catch scopes) and THEN displays the raw
cf error message.  This is a separate template from the one with the
malformed code.  Further, by altering the location of the error I can
get the site-wide error handler to function properly again.

Its not something that is going to happen often, I think.  The message
I suppose is never screw up a CF tag before a CFCATCH or your raw
error is going onscreen.

I did all this on a copy of 6.1.  Is this by chance an issue at all in CF7?

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201954
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
I've got part of the answer.  Its a bug in ColdFusion.  In the
previous example I created an error just in front of the CFCATCH
statement, so the value of error.message is

Invalid token 'c' found on line 6 at column 2.

Line 8 is  and is the highlighted line on the raw
CF error message.

If instead I cause the error to the opening cfoutput instead of the
closing one just before the cfcatch line, like this:

cfoutput>#cgi.http_user_agent#

The cfcatch template doesn't fire, but the site-wide error handler
fires properly and doesn't display a raw message.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201953
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
and it's very unlikely (even with minor testing) that a malformed tag 
would make it into production ;-)

I think Paul's answer is a good one for all to remember..CF can only do so 
much...and it sure can't read your mind and extrapolate what the rest of the 
code in the file should be...hehe

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:201952
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Paul Vernon
Correct me if I misunderstood what you are getting with your last example
but from what I can tell the explanation below seems reasonable to me


Because your last example doesn't even get compiled due to the closing >
being missing on the cfoutput, CF doesn't see any code that you have in that
template at all... Therefore the http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201951
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
I've been playing around with this and I see a problem can't solve.  I
can force a raw CF error to screen, regardless of whether you have
try/catch, a site-wide error handler or cferror (or all three).

I start out with this /Application.cfm



#haha.notexists#


which has a query loop to a nonexistent query.  I get a raw cf error. 
Fine.  Then I change the file to hold a cferror statement and a
try/catch





#haha.notexists#






The catch template kicks in and takes precedence.  Fine again.  If I
remove try/catch, leave in the cferror statement and plug in a
sitewide error handler  then the site-wide error handler is *ignored*
and the cferror statement fires.  That was an ugly surprise, but
either by luck or design (I forget to be honest) I only use cferror on
my own servers for validation, but on the commercial stuff I use it as
a backup as described.  Better write some more docs (it makes sense
since CF is just doing what I told it).  Removing the CFERROR
statement caused the site-wide template to finally fire.

Now for the real nasty.  If I deliberately malform a CF tag like this
I can force the error to come out raw again (note the unclosed
/cfoutput):




#cgi.http_user_agent#




Then the cfcatch routine is ignored, as is the cferror statement.  The
site-wide error handler fires AND the raw cf error is displayed.  My
site-wide 'handler' is below.

WHAMMO



 



How did something like this happen and how can it be prevented?

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201950
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Sean Corfield
On Apr 7, 2005 2:37 PM, Matt Robertson <[EMAIL PROTECTED]> wrote:
> What you can't do is put your try in /Application.cfm and your catch
> in OnRequestEnd.cfm.  Thinking on it I can't see a reason why
> /Application.cfm can't have its own try/catch, unless there's a cf
> rule somewhere that says so.

Each file must be a syntactically valid unit of ColdFusion code: you
can't open a tag in one file and close it in another. Each file is
compiled separately (which is why it must be syntactically valid).
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~|
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:201948
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
Hey Matt...it does work..and it's already in production ;-)

Thanks

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:201947
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: SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
On Apr 7, 2005 10:48 AM, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> Thanks Matt ;-)

No problem, and you were right that something was off in that
try/catch thing I was talking about.  I was going off hazy memory. 
What you can't do is put your try in /Application.cfm and your catch
in OnRequestEnd.cfm.  Thinking on it I can't see a reason why
/Application.cfm can't have its own try/catch, unless there's a cf
rule somewhere that says so.

I use cferror now but I'm going to look at wrapping an entire
/Application.cfm in a try/catch.  May still be a reason it doesn't
work but its something I've let sit as-is for so long its probably a
little fossilized.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:201946
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Douglas Knudsen
I think Matt was refereing to where in the applicatiion.cfm file the cferror 
tag is located. errors above the cferror tag will not be caught. I use a 
sitewide one, catches everything.

D

On Apr 7, 2005 2:17 PM, Bryan Stevenson <[EMAIL PROTECTED]> 
wrote:
> 
> > When it blows inside of /Application.cfm, which isn't subject to
> > try/catch. I try to but up a backup cferror statement inside of that
> > file as high up as possible for just that reason.
> 
> Matt you sem to say CFTRY/CATCH doesn't work in Application.cfm..well I 
> just
> tested...and it does?? ;-)
> 
> 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:201930
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Gaulin, Mark
We use a site-wide error handler (and generally don't use cfcatch), but I seem 
to recall that an error in the error handler code itself can cause the original 
error to be displayed.  

Mark

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 1:19 PM
To: CF-Talk
Subject: CFTRY/CFCATCH exposing CF errors?


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 to display a user-friendly message 
and e-mail the error to the developers (and works 99.9% of the time).

So...how can a standard CF error be displayed when a CFTRY/CFCATCH is setup 
specifically to NOT show actual CF error messages?

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



~|
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:201929
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch.  I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.

Matt you sem to say CFTRY/CATCH doesn't work in Application.cfm..well I just 
tested...and it does?? ;-)

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:201928
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


SOLVED: Re: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch.  I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.

My bad...it is crashing inside Application.cfm...so it's off to implement a 
CFERROR solution

Thanks Matt ;-)

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/tiny.cfm/54 


~|
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:201924
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
> When it blows inside of /Application.cfm, which isn't subject to
> try/catch.  I try to but up a backup cferror statement inside of that
> file as high up as possible for just that reason.

hmmm..not 100% sure...but I think the error happened outside of 
application.cfm

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:201922
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Bryan Stevenson
Catching "Any"

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: "Michael T. Tangorre" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, April 07, 2005 10:25 AM
Subject: RE: CFTRY/CFCATCH exposing CF errors?


>> 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
>
>
>
>
> 

~|
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:201921
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: 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 (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:201919
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: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Matt Robertson
When it blows inside of /Application.cfm, which isn't subject to
try/catch.  I try to but up a backup cferror statement inside of that
file as high up as possible for just that reason.

On Apr 7, 2005 10:18 AM, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> 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 to display a user-friendly 
> message and e-mail the error to the developers (and works 99.9% of the time).
> 
> So...how can a standard CF error be displayed when a CFTRY/CFCATCH is setup 
> specifically to NOT show actual CF error messages?
> 
> 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
> 
> 

~|
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:201918
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: 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




~|
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:201917
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


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 to display a user-friendly message 
and e-mail the error to the developers (and works 99.9% of the time).

So...how can a standard CF error be displayed when a CFTRY/CFCATCH is setup 
specifically to NOT show actual CF error messages?

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

~|
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:201912
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: cftry/cfcatch known bug?

2005-02-20 Thread Micha Schopman
I found while googling for similair experiences another person having issues. 
He seems to have a similair issue with cfcatch, cftry.

My code can be tested on everyone machine, because it should simply trigger the 
cfcatch part when the session call errors.

The corresponding post from Tony Weeg
http://www.revolutionwebdesign.com/blog/

Tomorrow I wil try to execute this on a CF5 machine, I am interested if that 
one will handle it like I would expect.


~|
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:195680
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: cftry/cfcatch known bug?

2005-02-19 Thread Micha Schopman
>Parse errors are not caught with cftry/cfcatch. Reason being, the page 
>couldn't compile, so it couldn't even try/catch anything.
>
>-nathan strutz
>http://www.dopefly.com/
>
>Micha Schopman wrote:
>>

There are no parse errors involved. An expired session variable, in this case 
session.cultureid should trigger the cfcatch part. The code runs perfectly when 
the session.cultureid is available, but when it is not, I like to output a xml 
node stating the error.

I can understand when you try to parse invalid cfml, cftry and cfcatch does not 
get executed, but in the case of a missing variable on runtime I would expect 
cfcatch to execute, or else cfcatch would be completely useless.

~|
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:195548
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: cftry/cfcatch known bug?

2005-02-18 Thread Nathan Strutz
Parse errors are not caught with cftry/cfcatch. Reason being, the page 
couldn't compile, so it couldn't even try/catch anything.

-nathan strutz
http://www.dopefly.com/

Micha Schopman wrote:
> I have errors which slip through ctry tags. The provided cfcatch part is not
> executed and the source shows the error in the cftry part. Did anyone
> experience similair behavior? I provided the responsible code below where
> session.cultureid has not been filled in;
> 
>  
> 
> 
> 
> 
> 
>  
> label="Articles in
> (#evaluate("session.configuration.root.articles.culture_" &
> session.cultureid)#)" 
> 
>  
> src="object.cfm?object=article&template=treenodes&parentid=#evaluate
> ("session.configuration.root.articles.culture_" & session.cultureid)#" 
> 
> icon="styles/blue/gfx/domain.gif"
> 
> iconopen="styles/blue/gfx/domain.gif"
> 
>  
> instanceid="#evaluate("session.configuration.root.articles.culture_" &
> session.cultureid)#"
> 
> joininstanceid="#session.culturejoininstanceid#"
> 
> objecttype="2"
> 
> objectname="shared"
> 
> basedir="core.domain"
> 
> onloadevent="this.expand()"
> 
> />
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> label="error:#xmlFormat(cfcatch.message)#"
> 
>  item="cfcatchAttribute">
> 
> 
> 
>  
> #cfcatchAttribute#="#xmlFormat(cfcatch[cfcatchAttribute])#"
> 
> 
> 
>  to="#ArrayLen(cfcatch[cfcatchAttribute])#" index="i">
> 
>  isStruct(cfcatch[cfcatchAttribute][i])>
> 
>  collection="#cfcatch[cfcatchAttribute][i]#" item="cfcatchSubAttribute">
> 
>  
> #cfcatchAttribute#_#i#_#cfcatchSubAttribute#="#xmlFormat(cfcatch[cfcatchAttr
> ibute][i][cfcatchSubAttribute])#"
> 
> 
> 
>  isSimpleValue(cfcatch[cfcatchAttribute][i])>
> 
>  
> #cfcatchAttribute#_#i#="#xmlFormat(cfcatch[cfcatchAttribute][i])#"
> 
> 
> 
> 
> 
> 
> 
> 
> 
> icon="styles/blue/gfx/error.gif"
> 
> iconopen="styles/blue/gfx/error.gif" 
> 
> iserror="true" 
> 
> onloadevent="new function(){alert('show skinned
> error dialog here')}"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

~|
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:195514
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


cftry/cfcatch known bug?

2005-02-18 Thread Micha Schopman
I have errors which slip through ctry tags. The provided cfcatch part is not
executed and the source shows the error in the cftry part. Did anyone
experience similair behavior? I provided the responsible code below where
session.cultureid has not been filled in;

 



















 
#cfcatchAttribute#="#xmlFormat(cfcatch[cfcatchAttribute])#"









 
#cfcatchAttribute#_#i#_#cfcatchSubAttribute#="#xmlFormat(cfcatch[cfcatchAttr
ibute][i][cfcatchSubAttribute])#"





 
#cfcatchAttribute#_#i#="#xmlFormat(cfcatch[cfcatchAttribute][i])#"









icon="styles/blue/gfx/error.gif"

iconopen="styles/blue/gfx/error.gif" 

iserror="true" 

onloadevent="new function(){alert('show skinned
error dialog here')}"/>









~|
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:195495
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: cftry/cfcatch around cfmail

2005-02-11 Thread Tony Weeg
the query is this...

select emailAddress
from Table where emailAddress like '[EMAIL PROTECTED]'

now, i know this doesnt validate, but at least weeds out the
malformed, or n/a or whatevers... there is a regex that removes the
invalids after the sql filter is applied... i just didnt show that
code... thats all :)

but, i got it working now, all is well!

:) thank ya

tw


On Fri, 11 Feb 2005 10:49:43 -0500, Joe Eugene <[EMAIL PROTECTED]> wrote:
> > the problem is that there is an invalid email address in there
> > , not in its form, or whatever, it'll validate just fine
> 
> What are you using to validate the email address, i dont see where
> are validating the email address comming out of the DB Query.
> 
> > > > > 
> To: "CF-Talk" 
> Sent: Thursday, February 10, 2005 10:00 PM
> Subject: Re: cftry/cfcatch around cfmail
> 
> > joe,
> >
> > this isnt the problem...
> >
> > the problem is that there is an invalid email address in there
> > , not in its form, or whatever, it'll validate just fine, its just that
> > the mail server rejects it... the email address is local to the mail
> > server that they cfmx server uses...
> >
> > tw
> >
> >
> > On Thu, 10 Feb 2005 21:41:55 -0500, Joe Eugene <[EMAIL PROTECTED]>
> wrote:
> > > 1. Write a simple method to validate emails boolean return type.
> > > isEmailAddress(String emAddr){}
> > >i cant remember but there is a good regular expresssion out there.
> > >
> > > 2. Develop a concrete method to send emails instead of having reduntant
> code
> > > all over the place to send emails.
> > >sendEmail(){}
> > >Within the sendEmail, you can invoke isEmailAddress and boolean
> return
> > > type, if the validation fails,
> > >You can also send an errMessage back to the view - > "Your email
> address
> > > is Invalid, please correct"
> > >
> > > The above is a working solution.
> > >
> > > HTH.
> > > Joe
> > >
> > >
> > > - Original Message -
> > > From: "Tony Weeg" <[EMAIL PROTECTED]>
> > > To: "CF-Talk" 
> > > Sent: Thursday, February 10, 2005 9:08 PM
> > > Subject: Re: cftry/cfcatch around cfmail
> > >
> > > > the problem is, its a bad email address, so i dont know until the
> > > > email tries to go out... and its like i get an IMMEDIATE no-go from
> > > > the mail server (all the emails for this test, are local to the mail
> > > > server that im sending through, so it knows RIGHT AWAY).
> > > >
> > > > man this is strange...
> > > >
> > > > tw
> > > >
> > > >
> > > > On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael
> <[EMAIL PROTECTED]>
> > > wrote:
> > > > > I've seen this before.  I can't remember if I ever found a
> work-around
> > > > > or not.  You can set a variable in the catch block, then call the
> cfmail
> > > > > tag after you are done looping.
> > > > >
> > > > > It would make a little more sense to send a single email with all
> the
> > > > > errors than an email for each error.  Just as Matt said previously.
> > > > >
> > > > > -Original Message-
> > > > > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, February 10, 2005 7:09 PM
> > > > > To: CF-Talk
> > > > > Subject: Re: cftry/cfcatch around cfmail
> > > > >
> > > > > sup barney... thats what ive got...
> > > > >
> > > > >  datasource="#usersDatasource#">
> > > > > select email from regions where email like '[EMAIL PROTECTED]'
> > > > > 
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > >
> > > > > > > > > subject="Test, please disregard" spoolenable="No">This is a test,
> please
> > > > > disregard.
> > > > >
> > > > > This worked!
> > > > >
> > > > > 
> > > > >
> > > > > This error happened on
> > > > > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > > > > Message: #cfcatch.message#
> > > > > Detail: #cfcatch.detail#
>

Re: cftry/cfcatch around cfmail

2005-02-11 Thread Joe Eugene
> the problem is that there is an invalid email address in there
> , not in its form, or whatever, it'll validate just fine

What are you using to validate the email address, i dont see where
are validating the email address comming out of the DB Query.

> > > > 
To: "CF-Talk" 
Sent: Thursday, February 10, 2005 10:00 PM
Subject: Re: cftry/cfcatch around cfmail


> joe,
>
> this isnt the problem...
>
> the problem is that there is an invalid email address in there
> , not in its form, or whatever, it'll validate just fine, its just that
> the mail server rejects it... the email address is local to the mail
> server that they cfmx server uses...
>
> tw
>
>
> On Thu, 10 Feb 2005 21:41:55 -0500, Joe Eugene <[EMAIL PROTECTED]>
wrote:
> > 1. Write a simple method to validate emails boolean return type.
> > isEmailAddress(String emAddr){}
> >i cant remember but there is a good regular expresssion out there.
> >
> > 2. Develop a concrete method to send emails instead of having reduntant
code
> > all over the place to send emails.
> >sendEmail(){}
> >Within the sendEmail, you can invoke isEmailAddress and boolean
return
> > type, if the validation fails,
> >You can also send an errMessage back to the view - > "Your email
address
> > is Invalid, please correct"
> >
> > The above is a working solution.
> >
> > HTH.
> > Joe
> >
> >
> > - Original Message -
> > From: "Tony Weeg" <[EMAIL PROTECTED]>
> > To: "CF-Talk" 
> > Sent: Thursday, February 10, 2005 9:08 PM
> > Subject: Re: cftry/cfcatch around cfmail
> >
> > > the problem is, its a bad email address, so i dont know until the
> > > email tries to go out... and its like i get an IMMEDIATE no-go from
> > > the mail server (all the emails for this test, are local to the mail
> > > server that im sending through, so it knows RIGHT AWAY).
> > >
> > > man this is strange...
> > >
> > > tw
> > >
> > >
> > > On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael
<[EMAIL PROTECTED]>
> > wrote:
> > > > I've seen this before.  I can't remember if I ever found a
work-around
> > > > or not.  You can set a variable in the catch block, then call the
cfmail
> > > > tag after you are done looping.
> > > >
> > > > It would make a little more sense to send a single email with all
the
> > > > errors than an email for each error.  Just as Matt said previously.
> > > >
> > > > -Original Message-
> > > > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, February 10, 2005 7:09 PM
> > > > To: CF-Talk
> > > > Subject: Re: cftry/cfcatch around cfmail
> > > >
> > > > sup barney... thats what ive got...
> > > >
> > > > 
> > > > select email from regions where email like '[EMAIL PROTECTED]'
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > > > > subject="Test, please disregard" spoolenable="No">This is a test,
please
> > > > disregard.
> > > >
> > > > This worked!
> > > >
> > > > 
> > > >
> > > > This error happened on
> > > > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > > > Message: #cfcatch.message#
> > > > Detail: #cfcatch.detail#
> > > > 
> > > >
> > > >   This didnt work.
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > > and what happens is... it looks like its worked, as i see 10 "This
> > > > worked" on the screen, and only one "This didnt work", but @ the
bottom
> > > > of the screen in the debugging output, and exception error...
> > > > and no emails go out at all :( ?
> > > >
> > > > tw
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

~|
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:194399
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: cftry/cfcatch around cfmail

2005-02-11 Thread Matt Robertson
Well, that ain't right.  I know Imail releases tend to be pretty
buggy, so I didn't upgrade until 8.10.  What you are experiencing may
be due to the early-release nature of the s/w.

I'm only dimly aware of spoolenable and its implications.  Anyone with
a better understanding of it and mail servers out there want to hazard
a guess on this?  Seems to me if CF can send the mail directly to the
mail server's queue it should also be able to spool it and then send. 
Can't think of anything inside of Imail offhand that would influence
this.  Either IMail is told to allow a connection in or the connection
is never allowed in.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:194351
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: cftry/cfcatch around cfmail

2005-02-11 Thread Tony Weeg
8.00 2003.03.03.28

port 25

with spoolenable = no all systems go.
with spoolenable = yes or not there at all since its default anyway,
all systems NO GO.

tw



On Fri, 11 Feb 2005 09:33:05 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> On Fri, 11 Feb 2005 10:52:29 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > if i dont spoolenable... my imail server just doesnt work... with cfmx
> 
> Hmmm... I've used Im,ail for years with CF.  I'm running Imail 8.11
> with MX 6.1 Updater 1 (soon to be CF7 :D)
> 
> In fact now that I have converted my client/human-driven mail to
> Smartermail I have dedicated my Imail license to do nothing but
> process CFMAIL-generated mail.
> 
> Your CF code is pretty straightforward and should be bulletproof.  I
> think its time to start blaming another culprit, and given what you
> say about Imail I think I know who I want to blame :-)
> 
> What are your CF admin mail server settings?  Your imail version?
> Running on port 25?
> 
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.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:194297
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: cftry/cfcatch around cfmail

2005-02-11 Thread Matt Robertson
On Fri, 11 Feb 2005 10:52:29 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> if i dont spoolenable... my imail server just doesnt work... with cfmx

Hmmm... I've used Im,ail for years with CF.  I'm running Imail 8.11
with MX 6.1 Updater 1 (soon to be CF7 :D)

In fact now that I have converted my client/human-driven mail to
Smartermail I have dedicated my Imail license to do nothing but
process CFMAIL-generated mail.

Your CF code is pretty straightforward and should be bulletproof.  I
think its time to start blaming another culprit, and given what you
say about Imail I think I know who I want to blame :-)

What are your CF admin mail server settings?  Your imail version? 
Running on port 25?

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:194281
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: cftry/cfcatch around cfmail

2005-02-11 Thread Tony Weeg
:( ok, i must say, it wasnt anything, i had a rule in my outlook that
sent mail from myself, to myself, into a folder, that is no longer
there :(  what this means?  outlook didnt bug, and that was my
problem.

testing with another address, all is well, and it looks like my code
is workign after all!

thank to all.
and to all a good day!

tw


On Fri, 11 Feb 2005 10:52:29 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> hey matt.
> 
> if i dont spoolenable... my imail server just doesnt work... with cfmx
> 
> they problem isnt an invalid format of an email address, its the problem that
> the email address that its choking on is no longer an email address to
> my mail server.
> which is the same mail server that cfmx sends these out with... so im
> getting an immediate
> unknown user, and thats making all of them not go out :(
> 
> tw
> 
> 
> On Thu, 10 Feb 2005 21:30:51 -0800, Matt Robertson
> <[EMAIL PROTECTED]> wrote:
> > > On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > > > how does that differ from what im doing?
> >
> > It doesn't in principle, but maybe your cfmail code is the problem.
> > That spoolenable is out of the ordinary, at least to me.
> >
> > As for my catch code, thats sorta complicated.  I cut out quite a lot
> > of what I'm actually doing.
> >
> > The first thing I do before sending an email to cfmail is validate it
> > against a series of regular expressions designed to individually flag
> > specific problems with an email address.  If any are found, the list
> > of *all* problems with the address are collected together and output
> > to a variable, which then stores the html-formatted list of errors in
> > a discrete db record.  The specific tests look like this
> >
> > if (Len(variables.InclEmailAddr) lt 6) {
> >variables.FailureList=variables.FailureList & "" & 
> > inc_verify_email.Error1;
> > }
> > if (not Compare(FindNoCase("@",variables.InclEmailAddr),0)) {
> >variables.FailureList=variables.FailureList & "" & 
> > inc_verify_email.Error2;
> > }
> >
> > and there are 40 separate item-specific tests.  The error messages
> > represented as variables here would be "an email address must be at
> > least six characters long" and "an email address must contain at least
> > one '@' sign." respectively.
> >
> > The 41st test is the usual gargantuan regex for an email validation.
> > This is my "general failure" test that bats cleanup for the first 40
> > if they miss something.
> >
> > The purpose of this is to supply complete information to the non-tech
> > admin so they can clean up their list (the system uses imports that
> > are outside my control, so I can't validate at the import phase, which
> > would be better).  I have found this level of user education to be
> > optimal for clerical-level (or otherwise dimwitted) employees who are
> > running mailings from my cms.
> >
> > So I am actually doing address validation BEFORE the cfmail statement
> > (in that same loop).  The try/catch is meant to catch anything missed
> > by the address validator, to make the system truly failure-proof (or
> > as much as can be at least).  It collects data again, but this time it
> > stores cfcatch.message and cfcatch.detail in the discrete record along
> > with data identifying the record it fried on.
> >
> > At the end of the mailing process the list of all errors is output
> > onto the screen, and emailed.  This could be a mighty big email
> > message, but in actual practice its never gotten unmanageable.
> >
> > If you want I can put up what all the email tests are, along with a
> > loop that shows it running (its just a cfif that wraps the cfmail
> > statement)
> >
> > --
> > --mattRobertson--
> > Janitor, MSB Web Systems
> > mysecretbase.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:194272
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: cftry/cfcatch around cfmail

2005-02-11 Thread Tony Weeg
hey matt.

if i dont spoolenable... my imail server just doesnt work... with cfmx

they problem isnt an invalid format of an email address, its the problem that
the email address that its choking on is no longer an email address to
my mail server.
which is the same mail server that cfmx sends these out with... so im
getting an immediate
unknown user, and thats making all of them not go out :(

tw


On Thu, 10 Feb 2005 21:30:51 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> > On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > > how does that differ from what im doing?
> 
> It doesn't in principle, but maybe your cfmail code is the problem.
> That spoolenable is out of the ordinary, at least to me.
> 
> As for my catch code, thats sorta complicated.  I cut out quite a lot
> of what I'm actually doing.
> 
> The first thing I do before sending an email to cfmail is validate it
> against a series of regular expressions designed to individually flag
> specific problems with an email address.  If any are found, the list
> of *all* problems with the address are collected together and output
> to a variable, which then stores the html-formatted list of errors in
> a discrete db record.  The specific tests look like this
> 
> if (Len(variables.InclEmailAddr) lt 6) {
>variables.FailureList=variables.FailureList & "" & 
> inc_verify_email.Error1;
> }
> if (not Compare(FindNoCase("@",variables.InclEmailAddr),0)) {
>variables.FailureList=variables.FailureList & "" & 
> inc_verify_email.Error2;
> }
> 
> and there are 40 separate item-specific tests.  The error messages
> represented as variables here would be "an email address must be at
> least six characters long" and "an email address must contain at least
> one '@' sign." respectively.
> 
> The 41st test is the usual gargantuan regex for an email validation.
> This is my "general failure" test that bats cleanup for the first 40
> if they miss something.
> 
> The purpose of this is to supply complete information to the non-tech
> admin so they can clean up their list (the system uses imports that
> are outside my control, so I can't validate at the import phase, which
> would be better).  I have found this level of user education to be
> optimal for clerical-level (or otherwise dimwitted) employees who are
> running mailings from my cms.
> 
> So I am actually doing address validation BEFORE the cfmail statement
> (in that same loop).  The try/catch is meant to catch anything missed
> by the address validator, to make the system truly failure-proof (or
> as much as can be at least).  It collects data again, but this time it
> stores cfcatch.message and cfcatch.detail in the discrete record along
> with data identifying the record it fried on.
> 
> At the end of the mailing process the list of all errors is output
> onto the screen, and emailed.  This could be a mighty big email
> message, but in actual practice its never gotten unmanageable.
> 
> If you want I can put up what all the email tests are, along with a
> loop that shows it running (its just a cfif that wraps the cfmail
> statement)
> 
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.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:194259
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: cftry/cfcatch around cfmail

2005-02-11 Thread Tony Weeg
i can determine that because, ive replaced all the email addresses
with mine, and just put one bad one, in there, and i dont get them :(

i do get VALID emails, if they are all valid...

i know, its strange.
tw


On Fri, 11 Feb 2005 06:37:23 -0500, Calvin Ward <[EMAIL PROTECTED]> wrote:
> Tony,
> 
> Are you saying that no error is fired and no email is received, but there's
> an email in the undelvr cfmail folder?
> 
> Or maybe I should just ask, how are you determining the email did not
> deliver?
> 
> - Calvin
> 
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 10:01 PM
> To: CF-Talk
> Subject: Re: cftry/cfcatch around cfmail
> 
> joe,
> 
> this isnt the problem...
> 
> the problem is that there is an invalid email address in there
> , not in its form, or whatever, it'll validate just fine, its just that
> the mail server rejects it... the email address is local to the mail
> server that they cfmx server uses...
> 
> tw
> 
> On Thu, 10 Feb 2005 21:41:55 -0500, Joe Eugene <[EMAIL PROTECTED]>
> wrote:
> > 1. Write a simple method to validate emails boolean return type.
> > isEmailAddress(String emAddr){}
> >i cant remember but there is a good regular expresssion out there.
> >
> > 2. Develop a concrete method to send emails instead of having reduntant
> code
> > all over the place to send emails.
> >sendEmail(){}
> >Within the sendEmail, you can invoke isEmailAddress and boolean return
> > type, if the validation fails,
> >You can also send an errMessage back to the view - > "Your email
> address
> > is Invalid, please correct"
> >
> > The above is a working solution.
> >
> > HTH.
> > Joe
> >
> >
> > - Original Message -
> > From: "Tony Weeg" <[EMAIL PROTECTED]>
> > To: "CF-Talk" 
> > Sent: Thursday, February 10, 2005 9:08 PM
> > Subject: Re: cftry/cfcatch around cfmail
> >
> > > the problem is, its a bad email address, so i dont know until the
> > > email tries to go out... and its like i get an IMMEDIATE no-go from
> > > the mail server (all the emails for this test, are local to the mail
> > > server that im sending through, so it knows RIGHT AWAY).
> > >
> > > man this is strange...
> > >
> > > tw
> > >
> > >
> > > On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael
> <[EMAIL PROTECTED]>
> > wrote:
> > > > I've seen this before.  I can't remember if I ever found a work-around
> > > > or not.  You can set a variable in the catch block, then call the
> cfmail
> > > > tag after you are done looping.
> > > >
> > > > It would make a little more sense to send a single email with all the
> > > > errors than an email for each error.  Just as Matt said previously.
> > > >
> > > > -Original Message-
> > > > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, February 10, 2005 7:09 PM
> > > > To: CF-Talk
> > > > Subject: Re: cftry/cfcatch around cfmail
> > > >
> > > > sup barney... thats what ive got...
> > > >
> > > >  datasource="#usersDatasource#">
> > > > select email from regions where email like '[EMAIL PROTECTED]'
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > > > > subject="Test, please disregard" spoolenable="No">This is a test,
> please
> > > > disregard.
> > > >
> > > > This worked!
> > > >
> > > > 
> > > >
> > > > This error happened on
> > > > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > > > Message: #cfcatch.message#
> > > > Detail: #cfcatch.detail#
> > > > 
> > > >
> > > >   This didnt work.
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > > and what happens is... it looks like its worked, as i see 10 "This
> > > > worked" on the screen, and only one "This didnt work", but @ the
> bottom
> > > > of the screen in the debugging output, and exception error...
> > > > and no emails go out at all :( ?
> > > >
> > > > tw
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 

~|
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:194258
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: cftry/cfcatch around cfmail

2005-02-11 Thread Calvin Ward
Tony,

Are you saying that no error is fired and no email is received, but there's
an email in the undelvr cfmail folder?

Or maybe I should just ask, how are you determining the email did not
deliver?

- Calvin

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 10:01 PM
To: CF-Talk
Subject: Re: cftry/cfcatch around cfmail

joe,

this isnt the problem...

the problem is that there is an invalid email address in there
, not in its form, or whatever, it'll validate just fine, its just that
the mail server rejects it... the email address is local to the mail
server that they cfmx server uses...

tw


On Thu, 10 Feb 2005 21:41:55 -0500, Joe Eugene <[EMAIL PROTECTED]>
wrote:
> 1. Write a simple method to validate emails boolean return type.
> isEmailAddress(String emAddr){}
>i cant remember but there is a good regular expresssion out there.
> 
> 2. Develop a concrete method to send emails instead of having reduntant
code
> all over the place to send emails.
>sendEmail(){}
>Within the sendEmail, you can invoke isEmailAddress and boolean return
> type, if the validation fails,
>You can also send an errMessage back to the view - > "Your email
address
> is Invalid, please correct"
> 
> The above is a working solution.
> 
> HTH.
> Joe
> 
> 
> - Original Message -
> From: "Tony Weeg" <[EMAIL PROTECTED]>
> To: "CF-Talk" 
> Sent: Thursday, February 10, 2005 9:08 PM
> Subject: Re: cftry/cfcatch around cfmail
> 
> > the problem is, its a bad email address, so i dont know until the
> > email tries to go out... and its like i get an IMMEDIATE no-go from
> > the mail server (all the emails for this test, are local to the mail
> > server that im sending through, so it knows RIGHT AWAY).
> >
> > man this is strange...
> >
> > tw
> >
> >
> > On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael
<[EMAIL PROTECTED]>
> wrote:
> > > I've seen this before.  I can't remember if I ever found a work-around
> > > or not.  You can set a variable in the catch block, then call the
cfmail
> > > tag after you are done looping.
> > >
> > > It would make a little more sense to send a single email with all the
> > > errors than an email for each error.  Just as Matt said previously.
> > >
> > > -Original Message-
> > > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, February 10, 2005 7:09 PM
> > > To: CF-Talk
> > > Subject: Re: cftry/cfcatch around cfmail
> > >
> > > sup barney... thats what ive got...
> > >
> > > 
> > > select email from regions where email like '[EMAIL PROTECTED]'
> > > 
> > >
> > > 
> > >
> > >
> > >
> > > > > subject="Test, please disregard" spoolenable="No">This is a test,
please
> > > disregard.
> > >
> > > This worked!
> > >
> > > 
> > >
> > > This error happened on
> > > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > > Message: #cfcatch.message#
> > > Detail: #cfcatch.detail#
> > > 
> > >
> > >   This didnt work.
> > >
> > >
> > >
> > > 
> > >
> > > 
> > >
> > > and what happens is... it looks like its worked, as i see 10 "This
> > > worked" on the screen, and only one "This didnt work", but @ the
bottom
> > > of the screen in the debugging output, and exception error...
> > > and no emails go out at all :( ?
> > >
> > > tw
> > >
> > >
> >
> >
> 
> 



~|
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:194212
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: cftry/cfcatch around cfmail

2005-02-10 Thread Matt Robertson
> On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > how does that differ from what im doing?

It doesn't in principle, but maybe your cfmail code is the problem. 
That spoolenable is out of the ordinary, at least to me.

As for my catch code, thats sorta complicated.  I cut out quite a lot
of what I'm actually doing.

The first thing I do before sending an email to cfmail is validate it
against a series of regular expressions designed to individually flag
specific problems with an email address.  If any are found, the list
of *all* problems with the address are collected together and output
to a variable, which then stores the html-formatted list of errors in
a discrete db record.  The specific tests look like this

if (Len(variables.InclEmailAddr) lt 6) {
variables.FailureList=variables.FailureList & "" & 
inc_verify_email.Error1;
}
if (not Compare(FindNoCase("@",variables.InclEmailAddr),0)) {
variables.FailureList=variables.FailureList & "" & 
inc_verify_email.Error2;
}

and there are 40 separate item-specific tests.  The error messages
represented as variables here would be "an email address must be at
least six characters long" and "an email address must contain at least
one '@' sign." respectively.

The 41st test is the usual gargantuan regex for an email validation. 
This is my "general failure" test that bats cleanup for the first 40
if they miss something.

The purpose of this is to supply complete information to the non-tech
admin so they can clean up their list (the system uses imports that
are outside my control, so I can't validate at the import phase, which
would be better).  I have found this level of user education to be
optimal for clerical-level (or otherwise dimwitted) employees who are
running mailings from my cms.

So I am actually doing address validation BEFORE the cfmail statement
(in that same loop).  The try/catch is meant to catch anything missed
by the address validator, to make the system truly failure-proof (or
as much as can be at least).  It collects data again, but this time it
stores cfcatch.message and cfcatch.detail in the discrete record along
with data identifying the record it fried on.

At the end of the mailing process the list of all errors is output
onto the screen, and emailed.  This could be a mighty big email
message, but in actual practice its never gotten unmanageable.

If you want I can put up what all the email tests are, along with a
loop that shows it running (its just a cfif that wraps the cfmail
statement)

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:194191
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: cftry/cfcatch around cfmail

2005-02-10 Thread Barney Boisvert
What happens if you allow the messages to be spooled?  Does that
alleviate the issue?

cheers,
barneyb


On Thu, 10 Feb 2005 22:00:30 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> joe,
> 
> this isnt the problem...
> 
> the problem is that there is an invalid email address in there
> , not in its form, or whatever, it'll validate just fine, its just that
> the mail server rejects it... the email address is local to the mail
> server that they cfmx server uses...
> 
> tw
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
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:194183
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
joe,

this isnt the problem...

the problem is that there is an invalid email address in there
, not in its form, or whatever, it'll validate just fine, its just that
the mail server rejects it... the email address is local to the mail
server that they cfmx server uses...

tw


On Thu, 10 Feb 2005 21:41:55 -0500, Joe Eugene <[EMAIL PROTECTED]> wrote:
> 1. Write a simple method to validate emails boolean return type.
> isEmailAddress(String emAddr){}
>i cant remember but there is a good regular expresssion out there.
> 
> 2. Develop a concrete method to send emails instead of having reduntant code
> all over the place to send emails.
>sendEmail(){}
>Within the sendEmail, you can invoke isEmailAddress and boolean return
> type, if the validation fails,
>You can also send an errMessage back to the view - > "Your email address
> is Invalid, please correct"
> 
> The above is a working solution.
> 
> HTH.
> Joe
> 
> 
> - Original Message -
> From: "Tony Weeg" <[EMAIL PROTECTED]>
> To: "CF-Talk" 
> Sent: Thursday, February 10, 2005 9:08 PM
> Subject: Re: cftry/cfcatch around cfmail
> 
> > the problem is, its a bad email address, so i dont know until the
> > email tries to go out... and its like i get an IMMEDIATE no-go from
> > the mail server (all the emails for this test, are local to the mail
> > server that im sending through, so it knows RIGHT AWAY).
> >
> > man this is strange...
> >
> > tw
> >
> >
> > On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael <[EMAIL PROTECTED]>
> wrote:
> > > I've seen this before.  I can't remember if I ever found a work-around
> > > or not.  You can set a variable in the catch block, then call the cfmail
> > > tag after you are done looping.
> > >
> > > It would make a little more sense to send a single email with all the
> > > errors than an email for each error.  Just as Matt said previously.
> > >
> > > -Original Message-
> > > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, February 10, 2005 7:09 PM
> > > To: CF-Talk
> > > Subject: Re: cftry/cfcatch around cfmail
> > >
> > > sup barney... thats what ive got...
> > >
> > > 
> > > select email from regions where email like '[EMAIL PROTECTED]'
> > > 
> > >
> > > 
> > >
> > >
> > >
> > > > > subject="Test, please disregard" spoolenable="No">This is a test, please
> > > disregard.
> > >
> > > This worked!
> > >
> > > 
> > >
> > > This error happened on
> > > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > > Message: #cfcatch.message#
> > > Detail: #cfcatch.detail#
> > > 
> > >
> > >   This didnt work.
> > >
> > >
> > >
> > > 
> > >
> > > 
> > >
> > > and what happens is... it looks like its worked, as i see 10 "This
> > > worked" on the screen, and only one "This didnt work", but @ the bottom
> > > of the screen in the debugging output, and exception error...
> > > and no emails go out at all :( ?
> > >
> > > tw
> > >
> > >
> >
> >
> 
> 

~|
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:194175
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: cftry/cfcatch around cfmail

2005-02-10 Thread Joe Eugene
1. Write a simple method to validate emails boolean return type.
isEmailAddress(String emAddr){}
i cant remember but there is a good regular expresssion out there.

2. Develop a concrete method to send emails instead of having reduntant code
all over the place to send emails.
sendEmail(){}
Within the sendEmail, you can invoke isEmailAddress and boolean return
type, if the validation fails,
You can also send an errMessage back to the view - > "Your email address
is Invalid, please correct"

The above is a working solution.

HTH.
Joe


- Original Message - 
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, February 10, 2005 9:08 PM
Subject: Re: cftry/cfcatch around cfmail


> the problem is, its a bad email address, so i dont know until the
> email tries to go out... and its like i get an IMMEDIATE no-go from
> the mail server (all the emails for this test, are local to the mail
> server that im sending through, so it knows RIGHT AWAY).
>
> man this is strange...
>
> tw
>
>
> On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael <[EMAIL PROTECTED]>
wrote:
> > I've seen this before.  I can't remember if I ever found a work-around
> > or not.  You can set a variable in the catch block, then call the cfmail
> > tag after you are done looping.
> >
> > It would make a little more sense to send a single email with all the
> > errors than an email for each error.  Just as Matt said previously.
> >
> > -Original Message-
> > From: Tony Weeg [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 10, 2005 7:09 PM
> > To: CF-Talk
> > Subject: Re: cftry/cfcatch around cfmail
> >
> > sup barney... thats what ive got...
> >
> > 
> > select email from regions where email like '[EMAIL PROTECTED]'
> > 
> >
> > 
> >
> >
> >
> > > subject="Test, please disregard" spoolenable="No">This is a test, please
> > disregard.
> >
> > This worked!
> >
> > 
> >
> > This error happened on
> > #DateFormat(Now(),'mm/dd/')# Here is what happened:
> > Message: #cfcatch.message#
> > Detail: #cfcatch.detail#
> > 
> >
> >   This didnt work.
> >
> >
> >
> > 
> >
> > 
> >
> > and what happens is... it looks like its worked, as i see 10 "This
> > worked" on the screen, and only one "This didnt work", but @ the bottom
> > of the screen in the debugging output, and exception error...
> > and no emails go out at all :( ?
> >
> > tw
> >
> >
>
> 

~|
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:194174
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: cftry/cfcatch around cfmail

2005-02-10 Thread Matt Robertson
On Thu, 10 Feb 2005 20:18:09 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> so, by what you say, in a cfmail scenario, any exceptions basically
> just crash the whole operation?

N :-).  What Barney said happens... or is supposed to.  He boiled
down the same sort of layout I posted and apparently what it is you
are doing.

1. The loop executes
2. The cfmail executes. If the cfmail throws then the catch executes instead
4. the loop continues and we go back to Step 1 on the next item in the loop.

If that ain't happening for you I think you have something else mixing
itself into the picture.  I would pick apart / debug the bejesus out
of your catch code to see if you aren't getting another failure in
there, which in turn is the real cause of the loop dying.  I've seen
that happen before.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:194173
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
matt. 

how does that differ from what im doing?

just wondering... also, what does the inc_errcatch_mail.cfm block do?

tw


On Thu, 10 Feb 2005 17:02:45 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> Do you mean you are using cfmail's query attribute, or you are using a
> cfloop over a query result set with a cfmail inside of it?  Seems like
> the latter but I thought I'd better ask.  If the former its going to
> hit the try/catch and that'll be the end of the cfmail operation, I
> believe.
> 
> Here's a chopped-down version of what I use.  The catch file does
> essentially what you described, although it stores all errors to a db
> and emails the lot in one shot at the end of the run.
> 
> query="Addresses"
>startrow="1"
>endrow="#variables.RunRate#">
>
>to="#Addresses.InclEmailAddr#"
>from="#session.Trickler.myEmail#"
>subject="#session.Trickler.MsgTitle#"
>server="#Settings.myEmailServer#"
>type="HTML">
>#session.Trickler.PageText#
>
>
>
>
>
> 
> 
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.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:194172
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
not do... i meant, look like...

whats the code inside that file?

tw


On Thu, 10 Feb 2005 21:23:50 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> matt.
> 
> how does that differ from what im doing?
> 
> just wondering... also, what does the inc_errcatch_mail.cfm block do?
> 
> tw
> 
> 
> On Thu, 10 Feb 2005 17:02:45 -0800, Matt Robertson
> <[EMAIL PROTECTED]> wrote:
> > Do you mean you are using cfmail's query attribute, or you are using a
> > cfloop over a query result set with a cfmail inside of it?  Seems like
> > the latter but I thought I'd better ask.  If the former its going to
> > hit the try/catch and that'll be the end of the cfmail operation, I
> > believe.
> >
> > Here's a chopped-down version of what I use.  The catch file does
> > essentially what you described, although it stores all errors to a db
> > and emails the lot in one shot at the end of the run.
> >
> >  >query="Addresses"
> >startrow="1"
> >endrow="#variables.RunRate#">
> >
> > >to="#Addresses.InclEmailAddr#"
> >from="#session.Trickler.myEmail#"
> >subject="#session.Trickler.MsgTitle#"
> >server="#Settings.myEmailServer#"
> >type="HTML">
> >#session.Trickler.PageText#
> >
> >
> >
> >
> >
> > 
> >
> > --
> > --mattRobertson--
> > Janitor, MSB Web Systems
> > mysecretbase.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:194171
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
the problem is, its a bad email address, so i dont know until the
email tries to go out... and its like i get an IMMEDIATE no-go from
the mail server (all the emails for this test, are local to the mail
server that im sending through, so it knows RIGHT AWAY).

man this is strange...

tw


On Thu, 10 Feb 2005 19:15:17 -0600, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> I've seen this before.  I can't remember if I ever found a work-around
> or not.  You can set a variable in the catch block, then call the cfmail
> tag after you are done looping.
> 
> It would make a little more sense to send a single email with all the
> errors than an email for each error.  Just as Matt said previously.
> 
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 10, 2005 7:09 PM
> To: CF-Talk
> Subject: Re: cftry/cfcatch around cfmail
> 
> sup barney... thats what ive got...
> 
> 
> select email from regions where email like '[EMAIL PROTECTED]'
> 
> 
> 
> 
>
> 
> subject="Test, please disregard" spoolenable="No">This is a test, please
> disregard.
> 
> This worked!
> 
> 
> 
> This error happened on
> #DateFormat(Now(),'mm/dd/')# Here is what happened:
> Message: #cfcatch.message#
> Detail: #cfcatch.detail#
> 
> 
>   This didnt work.
> 
>
> 
> 
> 
> 
> 
> and what happens is... it looks like its worked, as i see 10 "This
> worked" on the screen, and only one "This didnt work", but @ the bottom
> of the screen in the debugging output, and exception error...
> and no emails go out at all :( ?
> 
> tw
> 
> 

~|
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:194170
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: cftry/cfcatch around cfmail

2005-02-10 Thread Barney Boisvert
I'd trust the output over getting emails for evaluating whether the
code is doing what it should.  Most likely, the mail isn't getting
delivered properly, though CF is sending it out.

cheers,
barneyb

On Thu, 10 Feb 2005 20:09:05 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> sup barney... thats what ive got...
> 
> 
>  select email from regions where email like '[EMAIL PROTECTED]'
> 
> 
> 
> 
> 
> 
> This is a test, please
> disregard.
> 
>  This worked!
> 
>  
> 
> This error happened on
> #DateFormat(Now(),'mm/dd/')#
> Here is what happened:
> Message: #cfcatch.message#
> Detail: #cfcatch.detail#
> 
> 
>This didnt work.
> 
> 
> 
> 
> 
> 
> 
> and what happens is... it looks like its worked, as i see 10 "This
> worked" on the screen, and only one "This didnt work", but @ the
> bottom of the screen in the debugging output, and exception error...
> and no emails go out at all :( ?
> 
> tw
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
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:194165
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
hey matt...

and i use the same, as ive implemented your trickle code into a clients
email blaster :) but not for this one...

this is much smaller volume, maybe 200 or so at a time, and my mail
server @ my office works fine with this volume...

i sent the code in a follow up to barney's email...

so, by what you say, in a cfmail scenario, any exceptions basically
just crash the whole operation?

so whats the point of cfcatch if you cannot elegantly handle a cfmail exception?

tw


On Thu, 10 Feb 2005 17:02:45 -0800, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> Do you mean you are using cfmail's query attribute, or you are using a
> cfloop over a query result set with a cfmail inside of it?  Seems like
> the latter but I thought I'd better ask.  If the former its going to
> hit the try/catch and that'll be the end of the cfmail operation, I
> believe.
> 
> Here's a chopped-down version of what I use.  The catch file does
> essentially what you described, although it stores all errors to a db
> and emails the lot in one shot at the end of the run.
> 
> query="Addresses"
>startrow="1"
>endrow="#variables.RunRate#">
>
>to="#Addresses.InclEmailAddr#"
>from="#session.Trickler.myEmail#"
>subject="#session.Trickler.MsgTitle#"
>server="#Settings.myEmailServer#"
>type="HTML">
>#session.Trickler.PageText#
>
>
>
>
>
> 
> 
> --
> --mattRobertson--
> Janitor, MSB Web Systems
> mysecretbase.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:194164
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: cftry/cfcatch around cfmail

2005-02-10 Thread Dawson, Michael
I've seen this before.  I can't remember if I ever found a work-around
or not.  You can set a variable in the catch block, then call the cfmail
tag after you are done looping.

It would make a little more sense to send a single email with all the
errors than an email for each error.  Just as Matt said previously. 

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 10, 2005 7:09 PM
To: CF-Talk
Subject: Re: cftry/cfcatch around cfmail

sup barney... thats what ive got...


 select email from regions where email like '[EMAIL PROTECTED]'






This is a test, please
disregard.

 This worked!

 

This error happened on
#DateFormat(Now(),'mm/dd/')# Here is what happened:
Message: #cfcatch.message#
Detail: #cfcatch.detail#

   
   This didnt work.







and what happens is... it looks like its worked, as i see 10 "This
worked" on the screen, and only one "This didnt work", but @ the bottom
of the screen in the debugging output, and exception error...
and no emails go out at all :( ?

tw

~|
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:194163
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: cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
sup barney... thats what ive got...


 select email from regions where email like '[EMAIL PROTECTED]'






This is a test, please
disregard.

 This worked!

 

This error happened on
#DateFormat(Now(),'mm/dd/')#
Here is what happened:
Message: #cfcatch.message#
Detail: #cfcatch.detail#

   
   This didnt work.







and what happens is... it looks like its worked, as i see 10 "This
worked" on the screen, and only one "This didnt work", but @ the
bottom of the screen in the debugging output, and exception error...
and no emails go out at all :( ?

tw

On Thu, 10 Feb 2005 16:50:14 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> Because of the loop.  There's only one CFMAIL tag, so if it errors,
> it's done executing.  If you want it to continue, you need this:
> 
> 
>  
>
>
>
>
>  
> 
> 
> cheers,
> barneyb
> 
> On Thu, 10 Feb 2005 19:39:33 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> > hi there.
> >
> > i have a set of code that gets a bunch of email addresses from a database,
> > it then loops through that query, and sends an email once, for every
> > email address.
> >
> > i have a cftry/cfcatch block around the cfmail tag, and if it catches
> > an exception it is set in the cfcatch section to send me an email, but
> > continue through the rest of the loop.  almost like, if it encounters
> > and email problem, it doesnt continue, or send any of the other
> > emails
> >
> > any ideas why?
> >
> > --
> > tony
> >
> > Tony Weeg
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 

~|
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:194160
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: cftry/cfcatch around cfmail

2005-02-10 Thread Matt Robertson
Do you mean you are using cfmail's query attribute, or you are using a
cfloop over a query result set with a cfmail inside of it?  Seems like
the latter but I thought I'd better ask.  If the former its going to
hit the try/catch and that'll be the end of the cfmail operation, I
believe.

Here's a chopped-down version of what I use.  The catch file does
essentially what you described, although it stores all errors to a db
and emails the lot in one shot at the end of the run.




#session.Trickler.PageText#










-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.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:194157
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: cftry/cfcatch around cfmail

2005-02-10 Thread Barney Boisvert
Because of the loop.  There's only one CFMAIL tag, so if it errors,
it's done executing.  If you want it to continue, you need this:


  




  


cheers,
barneyb

On Thu, 10 Feb 2005 19:39:33 -0500, Tony Weeg <[EMAIL PROTECTED]> wrote:
> hi there.
> 
> i have a set of code that gets a bunch of email addresses from a database,
> it then loops through that query, and sends an email once, for every
> email address.
> 
> i have a cftry/cfcatch block around the cfmail tag, and if it catches
> an exception it is set in the cfcatch section to send me an email, but
> continue through the rest of the loop.  almost like, if it encounters
> and email problem, it doesnt continue, or send any of the other
> emails
> 
> any ideas why?
> 
> --
> tony
> 
> Tony Weeg

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
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:194155
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


cftry/cfcatch around cfmail

2005-02-10 Thread Tony Weeg
hi there.

i have a set of code that gets a bunch of email addresses from a database,
it then loops through that query, and sends an email once, for every
email address.

i have a cftry/cfcatch block around the cfmail tag, and if it catches
an exception it is set in the cfcatch section to send me an email, but
continue through the rest of the loop.  almost like, if it encounters
and email problem, it doesnt continue, or send any of the other
emails

any ideas why?

-- 
tony

Tony Weeg

macromedia certified coldfusion mx developer
email: tonyweeg [at] gmail [dot] com
blog: http://www.revolutionwebdesign.com/blog/
cool tool: http://www.antiwrap.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:194154
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


  1   2   >