Cferror doesn't process

can anyone tell me if there's anything wrong with this code :
( the bb is set wrong to throw the error )
<cffunction name="onRequestStart" returntype="void"
output="true">
<cfset request.dsn = "codelib">
<cfset request.dbp = "">
<cfset request.dbu = "">
<cfinclude template="header.cfm">
<cftry>
<cfquery name="qDatabase" datasource="#request.dsn#"
maxrows="1">
SELECT
bb
FROM genericdata
</cfquery>
<cfcatch type="database">
<cferror type="exception" mailto="#admin_email#"
template="error.cfm">
</cfcatch>
</cftry>
</cffunction>
i never get the error.cfm page . The query fails and it just
goes displays the page anyway with header and footer. it's as
though it's not being caught or something. I've tried with both
type="exception" and "request"
Thx

> i never get the error.cfm page .
'Course, you don't. There are 2 reasons.
One, when an exception occurs, the try/catch mechanism and
the onError() event override the cferror tag, in that order.
Second, the cferror tag only registers an error that occurs
after the tag. Hence the general advice to let Coldfusion
read the tag as early as possible during a request.
Putting the two together, you can see why you get the result
you get. The error in the query causes execution to move into the
cfcatch block. However, still within the cfcatch block, there is no
code after the cferror tag, hence no exception for the cferror tag
to handle.
If you comment out the onError method and use the following
code, Coldfusion will take you to the error.cfm page. Nevertheless,
I cannot think of a reason why you would want to handle errors in
this way.
<cftry>
<cfthrow>
<cfcatch type="any">
<cferror type="exception" mailto="#admin_email#"
template="error.cfm">
<cfquery name="qDatabase" datasource="#request.dsn#"
maxrows="1">
SELECT bb
FROM genericdata
</cfquery>
</cfcatch>
</cftry>

Similar Messages

  • JEditorPane doesn't processes forms

    Hello there!
    I'm developing an app where I use a JEditorPane to view HTML documents, everything is fine, but JEditorPane doesn't process forms on a document. I need something to trigger some functions when the user clicks on the "send" button of the form.
    Any Ideas????
    Thanks in advance!

    just put an actionlistener on the button an call the functions as usual.

  • UWL doesn't process SAPscript conditional statements correctly

    Hi,
    We have an interesting problem with a LS course approval workflow item. The work item in question is specified to display the following text (note the SAPscript conditionals):
    IF &DELIVERYMETHOD.SCHEDULE_DEP& = 'X'
    IF &STATUS& = 'REQUESTED'
    &LEARNER.LEARNERNAME& requests participation in the course:
    "&TRAINING.COURSEABBREVIATION& - &TRAINING.TRAININGNAME&".
    <H>Course Details:</>
    <H>Schedule:</>
    &TRAINING.SCHEDULELINESFORMATTED##&
    <H>Location:</>&TRAINING.LOCATIONNAME&
    ELSEIF &STATUS& = 'CANCELLED'
    &LEARNER.LEARNERNAME& requests cancellation of participation in course:
    "&TRAINING.COURSEABBREVIATION& - &TRAINING.TRAININGNAME&".
    <H>Course Details:</>
    <H>Schedule:</>
    &TRAINING.SCHEDULELINESFORMATTED##&
    <H>Location:</>&TRAINING.LOCATIONNAME&
    ENDIF
    ELSE
    IF &STATUS& = 'REQUESTED'
    &LEARNER.LEARNERNAME& requests participation in the web-based course:
    "&TRAINING.COURSEABBREVIATION& - &TRAINING.TRAININGNAME&".
    ELSEIF &STATUS& = 'CANCELLED'
    &LEARNER.LEARNERNAME& requests cancellation of participation in the
    web-based course: "&TRAINING.COURSEABBREVIATION& -
    &TRAINING.TRAININGNAME&".
    ENDIF
    ENDIF
    Please process this request.
    This text displays correctly when the work item is viewed in SBWP (that is, the conditionals are evaluated and only the appropriate portions of the text are displayed). However, in some instances, when the work item is displayed in the Universal Work List, none of the conditional statements are evaluated and all portions of the text are displayed.
    Has anyone else come across this problem? I have searched the notes system and the SDN forums extensively and found nothing.
    Regards,
    Gareth.

    Hi  Gareth  ,
                      yes , I have also experienced issue.
    I have used HTML and I am getting desired results in SBWP .
    But UWL doesn't understands that .
                                                       I am yet to find solution for the same.
    Let me know if you able to find any alternative for the same.
    Thanks,
    sahiba

  • 2 Submit Buttons --- doesn't process form

    I previously was utilizing one button and the cancelAction command. However, this was causing the form to be submitted when used in the preSubmit event.
    I have recently implemented a 2 submit button solution to a form, which works beautifly for validation. All my edits are executed when they are suppose to be. However, now the form does not submit. When I click the complete button, noting happens.
    I have regular button name Validate, where I do all of my edit checks, and it calls the click event of a submit button, Button1, if all edits pass. I use the command Button1.execEvent("click");
    The click event of Button1 is greyed out, not sure if that is an issue.
    Has anyone ever encountered this before?

    Hi,
    I am guessing that you have used a submit by email button, which automates the submit process. As a result it does not have a click event. I would recommend using a regular button with script in its click event that will do the submit. There are examples of single button submit here, which you should be able to adapt for your hidden submit/regular button: http://assure.ly/eUR4wJ.
    Hope that helps,
    Niall

  • Service request lodged, doesn't process until server restarted.

    Hi,
    SCSM 2012 R2 RU3, being used as a front end portal for self service for orchestrator 2012 R2.
    I was wondering if anyone has come across an issue where a service request was lodged and the SR is in SCSM but without any status change to 'new' or anything. Essentially no requests were being processed at all until the SCSM management server was restarted.
    I haven't seen anything relevant in event logs or under Workflows>Status and was wondering if anyone had either seen issue and knew of a fix or a better work around than bouncing the server. I tried restarting the System center management configuration
    service.
    I looked at SCOM at the time and it was just saying 'Everything is Awesome!' so was of no help. Is there something in scom that could be setup to better monitor SCSM for failed service requests?
    Thanks!

       That happens some of some race conditions issues of workflows.
       However if I recall that was already fixed in one of the subsequent UR(s).
       Please update to latest UR5.
    Shahid Roofi

  • IDVD doesn't process AVCHD video and high definition RAW photo files

    Hi everybody. I have a brand new Canon VIXIA HF S10 and 5D Mark II. I tried to make a movie out of video shot with the camcorder using iMovie and then I burned a DVD with iDVD. I also made a slide show out of RAW photos made by the 5D. And I encountered such a situation when the movies I made seem to be missing some frames. For instance people move discretely instead of smoothly as in the original video. As for the photos they come out not to be of high definition and don't fit to the whole TV screen. I mean if I burn the photos to a DVD in Jpeg they look perfect. I set all the setting to HD but still get poor quality.
    Have anybody dealt with the same situation or I should try more professional soft like Cut pro or DVD pro?

    IDVD can't process AVCHD. I use Toast to do that. Import your pictures or slides into IMovie and export them via Quicktime if you want 1920x1080 or via browser if you want 720P. Than you can us the browser in Toast to create a DVD in AVCHD. It will play in a blu ray player but NOT in Mac OSX. You will need to use Native Windows via Boot Camp and a Blu Ray player in your mac if you have one. Otherwise a Blu Ray player in you TV system should work.

  • HT203128 Why can't I sign in to buy music on iTunes? The prompt doesn't process my Apple ID and password after I reset my password.

    I reset my password for my Apple ID. Then go to Apple to sign in and my new password works. But, when I go to my iTunes App to purchase anything, when prompted to enter my Apple ID and password, it doesn't go through. I don't get any errors saying that I entered anything incorrectly or anything. I just get the prompt to enter my Apple ID and password over and over and over again, which does nothing but **** me off. Someone please help me!!

    Same problem. I enter my password correctly, and I can't get in. but I can get into Apple Support and other login pages with the same (correct) password. Arg!

  • Logwatch doesn't process!

    I have two servers running arch. One has logwatch running perfectly. The other not so much.
    I have tried to compare these but they are the same. How this can be beats me but makes me think that the problem is not with logwatch.
    I also tried using "pacman -Rn" and installing again.
    I checked to see if it was something wrong with mailing but it sends an email if I use "logwatch --detail 10" from the command line. It still doesn't show any log info though and I'm guessing that is why it doesn't send an email with just "logwatch".
    I've run out of ideas. If someone could help it would be great. If you want more info, just ask.

    Disappointingly, it is back and broken. Anything you can suggest would be greatly appreciated.
    Last edited by pedro_sland (2011-05-16 09:50:16)

  • My computer doesn't process Javascript

    I am not sure if I am barking up the right tree, but my computer, for some reason, is not responding when I click on a javascript link. I can't do things like look at my bank info or check my mail. The one thing in common is that the words "javascript" appears on the bottom of the explorer page when my mouse hovers over the top of the link that doesn't respond when I click it. I have scanned for viruses and found 19. Wow. They are dealt with and all of the pop-up adware is clean. Could this have caused something to my javascript decoder software? Not sure, I don't know anything about Java. Any help would be great.
    thanks

    I am not sure if I am barking up the right tree, but
    my computer, for some reason, is not responding when
    I click on a javascript link. I can't do things like
    look at my bank info or check my mail. The one thing
    in common is that the words "javascript" appears on
    the bottom of the explorer page when my mouse hovers
    over the top of the link that doesn't respond when I
    click it. I have scanned for viruses and found 19.
    Wow. They are dealt with and all of the pop-up
    p adware is clean. Could this have caused something
    to my javascript decoder software? Not sure, I don't
    know anything about Java. Any help would be great.
    thanksJava and JavaScript are not the same thing.
    You need to hire somebody who knows what they are doing to help you out. It sounds like your web-browser is broken and this probably virus related but it would be near impossible for someone to diagnose and fix your problems through a forum.
    At the very least make sure you have up-to-date anti-virus software and a firewall of some sort. Then re-install your web browser. But to be perfectly honest I would NEVER take a computer that had spy-ware on it at one point to do online banking unless I had wiped my hard-drive and resintalled everything first.
    You can do as you wish of course but this seems an excellent way for your money to end up in Estonia or something similar.

  • Movie doesn't process

    I'm downloading a movie from iTunes and it finished downloading- now it's processing and it's been processing for 25 minutes, and when I go to the Videos app it just freezes and crashes- this has never happened to me before

    Hello josh61,
    You may need to restart your iPad. Should be behavior continue, the next step would be a reset.
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430
    Should iTunes continue to fail to respond, it may be necessary to restore the device.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Cheers,
    Allen

  • Ordered an iPhone 6 Plus off contract with a credit card that has a different billing address than the account.  Does it matter and is the order going to be cancelled if it doesn't process the card correctly?

    Just don't want to find out Wednesday that my order was cancelled or delayed because the credit card has a different billing address than the account.  If they check the validity of the card at the time you pre-order I don't see it being a problem.

    Oh, should mention I ordered right at 3AM (EST) on the 12th and got a Confirmation email with a Deliver by: 9/19/14 but when you try the "Check Status page" it spits out "Expected Ship Date: Not available at this time."

  • Slideshow doesn't process properly

    I have been trying to make a slideshow with theme and photos imported from iphoto. When previewing i can't see my photos, just getting blank screen. On saving to file i see the same blank screen. This is all after upgrading to Leopard. It was fine with Tiger.
    Can anybody help.

    The problem was resolved after I got the iphoto update.

  • Batch Monitor shows no progress - qmaster doesn't seem to process anything

    I've been using this iMac since my company bought it a year ago and haven't had trouble with compressor until earlier this week when it just stopped working - no error message no crash - its just doesn't process jobs. I haven't updated anything or added any weird software of which I'm aware. Unfortunately I don't have a time machine back up to return to. We have the extended apple care and I haven't reformatted and reinstalled everything yet, I'm desperately trying to avoid that as I've already had to do it once in the past few months and it put me back at least a week of productivity as it took several days to get everything reinstalled. The same is true for taking it to the local apple specialist - took them a week last time I dropped a computer off there.
    Whether its a file that I'm opening in compressor or a project I'm exporting from final cut I can wait for 20 hours and no progress is made I've done a great deal of searching on these as well as other online forums and taken lots of advice given to other people with similar problems and nothing seems to work here's what i've tried in a rough order:
    Checking for Updates
    Resetting back ground processes
    Deleting preferences (for compresser et al)
    turning sharing on/turning sharing off
    starting qmaster using terminal
    restarting qmaster using terminal
    checking qmaster's settings using terminal and setting 'rendering' and processing to 'on'
    Reinstalling compressor,qmaster,qadministrator and batch monitor using Pacifist
    When Reinstalling I never click the box to share processing on a network
    I've tried starting jobs with it disconnected from my office LAN
    I've tried Everything on the compressor troubleshooting basics page including deleting all files associate with compressor, qmaster, qadmin and even motion and reinstalling them.
    after each reinstall I always update compressor as it wont even start in snow leopard without updating
    I've checked in activity monitor - qmaster is running just fine, it appears.
    If anyone has any more suggestions as to things that could be done, please offer them.

    try these initial things:
    • check the QMASTER logs in /var/logs (or simply use the /applications/utilities/CONSOLE.app). IF its failing or stalled there WILL be a reason for it.
    • look for QMASTER crashes logs...... you maybe not be able to red the dump but there will be a common thing in there somewhere...
    • stalled?: maybe sitting in the ACTIVE QUEUE with PROCESSING, but doing nothing.. maybe one of the services has failed. I se an EMAIL address up in the compressor to tell if anything broke. works great!
    • stalled?: maybe your set up the cluster maybe expecting MANAGED SERVICEs and you cluster is not SETup for that.lots of these things.
    anyway, have a look in the console logs and post your stuff. Happy to help you with it.
    I have found the latest qmaster and compressor with FCS3 is very good.
    LAstly, I have had the ODD thing that utilises PERIAN plugins etc t sit and do nothing. PErian ends up dumping.. anyway all this can be worked around.
    w

  • Join-engine doesn't pick up / process changes (add) in metaview

    Hi,
    I have a meta-dir 5.1 running on a solaris box with connectors to oracle, ads en edirectory. Up till now everything was working fine, until for no appearant reason the join-engine stopped processing add or modify events in my metaview.
    The strange is that is doesn't process the add or modify events of an entry in my directory, but it does pick up the delete events.
    I have enabled all logging options to be the most verbose and I came up with this entry in my join-engines logs:
    [2003/06/06 11:04:45.14 +0200] 852:327504 1 DCNS ChangelogPlugIn: PluginRegID=0005dd90 Change_not_in_scope 26 'LDAP://monteverdi.soo.dto.tudelft
    .nl/uid=999809,ou=people,o=someorg'
    The join-engine simply quits processing the (changelog) entry and resumes its polling for other changes....
    What does that mean "change_not_scope"? The number behind the message is my changelog number containing the add event and object it referrs to. Why or what determines that this change is not in scope? And why only for add or modify events where as a delete does get processed?
    Can anybody shed some light on this?
    Kind regards,
    Thomas

    Hi,
    I have a meta-dir 5.1 running on a solaris box with connectors to oracle, ads en edirectory. Up till now everything was working fine, until for no appearant reason the join-engine stopped processing add or modify events in my metaview.
    The strange is that is doesn't process the add or modify events of an entry in my directory, but it does pick up the delete events.
    I have enabled all logging options to be the most verbose and I came up with this entry in my join-engines logs:
    [2003/06/06 11:04:45.14 +0200] 852:327504 1 DCNS ChangelogPlugIn: PluginRegID=0005dd90 Change_not_in_scope 26 'LDAP://monteverdi.soo.dto.tudelft
    .nl/uid=999809,ou=people,o=someorg'
    The join-engine simply quits processing the (changelog) entry and resumes its polling for other changes....
    What does that mean "change_not_scope"? The number behind the message is my changelog number containing the add event and object it referrs to. Why or what determines that this change is not in scope? And why only for add or modify events where as a delete does get processed?
    Can anybody shed some light on this?
    Kind regards,
    Thomas

  • Applying rules manually doesn't work for multiple messages

    I've been using Mail for some time now and love rules. Love 'em. A few months ago I started having touble and have not been able to figure it out.
    The rules get applied to new incoming messages properly, as they should. However, I used to be able to select all the messages in my inbox (Command + A) and then 'Apply Rules' (Option + Command + L). That command no longer works. It still works if I go and select a bunch of eBay-related e-mails, for example, and then Apply Rules. Those message are moved accordingly. But if I select all message and Apply Rules, those same 4 or 5 messages remain put in the inbox even though there's a perfectly functioning rule for them that should be applied.
    NOTE: NONE of my rules work when I select all and Apply Rules.
    Any suggestions?

    The reason there are messages in my inbox to which rules haven't been applied is because when I'm at work I check my mail via the web (I use FastMail.fm). At home, using Mail, I access my mail via IMAP. When I receive and read new messages via the web and then go home and open Mail, all the messages in my inbox are no longer new, incoming messages so Mail doesn't process them as such. But just because they're not new incoming messages doesn't mean they belong in my inbox.
    Does that make sense?
    Most of the rules are to Move messages to folders based on categories (Shopping, Forums, Hosting, etc.).

Maybe you are looking for

  • Aspect Ratio settings -4:3 video doesn't look right on a 16:9 set

    Hello- I'm importing old vhs tape via a Canopus 300 into Final Cut Studio then exporting through Quick Time Movie and burning a DVD in iDVD. The problem ocours when I view the DVD on my 16:9 set- video looks to be the wrong size....for example graphi

  • Every time I try to open Safari I can't see any window

    Hi, I installed paintbrush and then I realized the toolbar wasn’t compatible with safari. I’ve uninstalled it but still every time I try to open it I can’t see any window. Could you let me know what I can do? Here is the report: Process: Safari 109 P

  • Problems with Message Pool

    Hallo all, I add 3 error messages in the MessagePool of the WebDynpro Project and want to fire those in coding, but it doesn't work. The coding looks like follows... <i>IWDMessageManager msgMgr = wdThis.wdGetAccountController().wdGetAPI().getMessageM

  • Why my ipad 2 doesn't have the youtube built in as my ipad 1?

    I got the new ipad 2 and just found out that there is no youtube built in like my ipad 1. Does anyone know how to get it? When I got Ipad 1, it was on my screen without doing anything. Thanks Wanna

  • Can't change file names in finder

    I can highlight a file or folder name in the finder but when I try to type nothing happens. Also I can't type anything in the search section in the upper right corner of finder windows. All else seems to be working fine. This happened after I install