Site Wide Error Handling works for Hidden iframe?

I have implemented Site Wide Error Handling within my
application. It is working great except that if there is an error
within a hidden iframe, the Error Page is not visable to the end
user. How can I bring up the Error page to the Parent so that the
Error page can be seen by the end user?
Does anyone has a solution for this?
Thanks

How about
place this in the <head> tags on your error page
<script>
function makeParent(){
if(window.location <> parent.window.location){
window.parent.location = this.parent.location;
add this to your body tag
<body onLoad="makeParent();">
Hope this helps

Similar Messages

  • HTTP status code returned by site-wide error handler is 200 OK?

    I'm using a developer install of ColdFusion 11. I set up the following page at http://localhost:8500/test/index.cfm:
    <cfthrow type="application" message="This is an error">
    When I visit that page, the HTTP status code returned is 500, as expected.
    I then created the following page at http://localhost:8500/error.cfm:
    <p>Sorry! That was an error.</p>
    If I set the site-wide error handler in the CF Admin to /error.cfm and visit /test/index.cfm, the HTTP status code returned is 200 OK.
    This seems weird to me. It looks like I can include the following in the error.cfm file to send an error code instead:
    <cfheader statuscode="500" statustext="Server Error">
    Does anyone see that as problematic? Is there a reason why the site-wide error handler should return 200 OK?

    Error Codes are the responsibility of the developer, to define and broadcast. Ultimately, the ColdFusion server has acted appropriately and fulfilled the request (hence the 202). Only the code would know what error was truly thrown, and how to appropriately handle that message to the user, hence the need for you to change the header in the response, if you want that broadcast to the browser in anything of than a "successful request" type of status.

  • Site-wide Error Handler issue

    I'm having a strange one. I'm using CF 9.0, and I have a Site-wide Error Handler set up, with the relative path set correctly.When run-time errors occur, it is calling the template exactly as expected, except for one thing.
    In addition to the error template (which shows a nice user-friendly page), I am also getting the default ColdFusion error information following.
    So...error occurs, it is throwing to the error template as expected, but then also pushing out the default error page.
    It does not do this on CF7 with identical code, so I am thinking that perhaps there is a setting on CF9 Administator that I'm not clicking. But search as I might, I only see the Site-wide Error Handler field.
    Any suggestions? This is driving me batty.

    ianskinner wrote:
    What do you get if you turn on "Robust Exception Information"?
    You are presuming that since your test error is a DSN error and this extra message is about a DSN error, that they are the same error.  That is an unproven correlation.  Or at least you have not show us the proof.
    Robust Exception Information is enabled on the Cold Fusion Administrator. I don't know why it wasn't showing earlier, but now when I run the test page I get the following:
    The web site you are  accessing has experienced an unexpected error.
    Please contact the website  administrator.
    The following information is meant for the website developer for  debugging purposes.
    Error Occurred While Processing Request
    Datasource  doesNotExist could not be found.
    The  error occurred in \\srv238\wwwroot\rjr\errorhandling\cferror_test.cfm: line  11
    9 : This query calls a non-existent datasource, triggering an error to be handled. --->
    10 :
    11 : <cfquery name="testQuery" datasource="doesNotExist">
    12 : select * from nothing
    13 : </cfquery>
    DATASOURCE
      doesNotExist
    Resources: Check the ColdFusion  documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/4.0 (compatible;  MSIE 6.0; Windows NT 5.1; SV1; GTB6.3; .NET CLR 1.1.4322; InfoPath.2; .NET CLR  2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022;  .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC EA 2)
    Remote  Address 
    172.21.10.142
    Referrer 
    Date/Time 
    30-Dec-09 01:21  PM
    Stack Trace  (click to expand)

  • Site-Wide Error Handler Filepath

    My error handler page is located at C:\Inetpub\wwwroot\portal\error_handler.cfm but cfadmin (for CF 8) wants a relative path.  I've tried:
    C:\Inetpub\wwwroot\portal\error_handler.cfm
    Inetpub\wwwroot\portal\error_handler.cfm
    wwwroot\portal\error_handler.cfm
    portal\error_handler.cfm
    error_handler.cfm
    and http://www.hostname.com/portal/error_handler.cfm
    Each time is says the specified file does not exist.
    What should the filepath be relative to?
    Thanks!

    It has to be relative to a ColdFusion mapping OR the ColdFusion web root.  The latter has always been the most reliable for me.
    It is a little known feature of ColdFusion that it often has two web roots for which it will search for cfml templates.  The web root defined for the web server such as c:\inetpub\wwwroot\ that you apparently have.  But before searching the web server web root it will search the ColdFusion web root, that on my multi-home flavor of ColdFusion is c:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\.  It is this latter directory that I put my site wide error and missing template handler fiels.  Then I just place the file names in the appropiate fields in the administrator.
    If you have a default backslash (\) mapping to your web root defined in the ColdFusion administrator, you should be able to input something like "\portal\error_handler.cfm" but I have always had difficulty getting this way to work.

  • 500 error despite site-wide error handler

    Hi,
    Users are getting this message, despite having the default error page turned on:
    HTTP Status 500 - ROOT CAUSE: coldfusion.filter.FormScope$PostParametersLimitExceededException: POST parameters exceeds the maximum limit specified in the server.
    I know why I'm getting the error -- I need to reduce the form size to comply with a recent update that put in the post parameters limit -- but a user who isn't even in the list of debugging IPs shouldn't see this error. Is there something about a 500 error like this that is such a big deal that even Coldfusion can't handle it? My guess is that must be Tomcat which is throwing the error, so ColdFusion can't intercede and display the default error page.

    <cftry>
    Any code here will be watched for exceptions, but there is nothing here, so there is really nothing that can ever throw an exception.
    <cfcatch type="any">
    Code here will be run ONLY if there is an exception thrown in the above section.
    <cfswitch expression="#cfcatch.type#">
    <cfcase value="template"><cfset backgroundcolor = "lightsteelblue"></cfcase>
    <cfcase value="expression"><cfset backgroundcolor = "blanchedalmond"></cfcase>
    <cfcase value="database"><cfset backgroundcolor = "linen"></cfcase>
    <cfdefaultcase><cfset backgroundcolor = "darkkhaki"></cfdefaultcase>
    </cfswitch>
    </cfcatch>
    This code will set a variable named 'backgroundcolor' if it is run which will only happen if there is an exception in the watched code at the beginning of the try block.
    </cftry>
    This is the end of the try block.
    <cfset chop = len(GetBaseTemplatePath()) - 9>
    <cfoutput>
    <div style="border:solid 1px green; background : #backgroundcolor#;">
    <h2>THE REQUESTED PAGE IS TEMPORARILY UNAVAILABLE... PLEASE RE-VISIT IN APPROXIMATELY 30 MINS. </h2>
    </div>
    </cfoutput>
    This code will be run wheter there is an excpetion or not.  But it is relying on a variable that is only set if there is an exception, and there is no code in inside the <cftry>...</cftry> block so there is pretty much NO chance of anything ever throwing an exception.

  • CFCs and Site Wide Error Handlers

    Hi. I setup a site-wide error handler page in CFAdministrator to email me the diagnostic and debugging information regarding erros that my web app users encounter. This is great for both security (users cannot see important debug info and SQL logic) and to allow me and my team to investigate and fix the problem.
    I noticed in CF that when i perform remote calls (from AJAX or FLEX) and an error is encountered in the CFC code... I do not receive the debugging emails. It seems to not work for CFC files? Only CFM? Let me know if I'm doing something wrong or need to do something extra. CFTRY and CFCATCH would be very annoying to have to use if I needed to add that to every CFC page I have!
    Thanks,
    -BosDog

    If you're using Application.cfc, you can use the onError method to execute the error handling. I use this for all RIA-related apps.

  • Site Studio Error Handler for virtuals folder URLs

    Hi Experts,
    we have a ErrorHandler section in sitestudio to handle 404 URLs. It is working fine for site URLs.
    My question is .. would it be worked for virtual folder URLs.
    IF we have a vitual folder structure like this - /abc/xyz/ and this folder has one file say "abc.html"...
    http://server/siteid/abc/xyz/abc.html - It works fine .....
    I user typed any wrong URL like
    http://server/siteid/abc/xyz/abcdefgh.html
    would it be handled by Sitestudio ErrorHandler ???

    This is the mapping from my first post:
    <instance-name>/webdav-test/newsletters/ <!--$cgipath-->?IdcService=GET_FILE&dDocName=<!--$suffix-->&allowInterrupt=1&RevisionSelectionMethod=LatestReleased&Rendition=web&noSaveAs=1
    The only change is I added <instance-name> to mine at the begining (if I don't it won't work because I didn't feel like adding webdav-test as prefix in my apache).
    Then I run it like this:
    http://www.example.com/<instance-name>/webdav-test/newsletters/000001
    Notice that I put contentId as in 000001, not xyz.htm because it won't work (xyz.htm is not a valid dDocName). This works perfectly fine for me.
    I'm guessing in your case it'd run: http://www.example.com/webdav-test/newsletters/000001, you'll have to give the contentId instead of the actual name of the file for that.
    Cheers

  • Understanding how Error handling works in transformation

    Hi Experts,
    I am trying to achieve error handling in Start and End Routine by writing the error log to the monitor and also raising the exception in case a match is not found.
    I understand the code below achieves what I am looking for, but I want to know how this works
      if sy-subrc ne 0.
            monitor_rec-msgid = 'BI'.
            monitor_rec-msgty = 'E'.
            monitor_rec-msgno = '001'.
            monitor_rec-msgv1 = 'No entry for ZTYPE in source '.
            monitor_rec-msgv2 =  .
            append monitor_rec to MONITOR.
            raise exception type CX_RSROUT_ABORT.
          endif.
    Can someone please explain how the above code works?
    I am not sure how these messages get written to the monitor and how to check these error records. Also if a load is scheduled in the process chains, does the DTP error log show the exception CX_RSROUT_ABORT?

    proper exception handling is one of the most important thing to consider in your pl/sql code.
    One basic principle is to trap/handle only those exceptions that you expect. In general this means you should NOT use the when other execption (only at the outermost call structure)
    I guess this is oracle FORMS pl/sql, so we have to be careful with some assupmtions.
    But this should work. See also how indenting the ode helps to improve readability. Here in the forum you need to use {<b></b>code} tages before and after your code to preserve indention and to enable basic highlighting
    untested
    /* fetch the primary account */
    begin
       select customer_code into cust from primary_account where pc.customer_code=:import_can.consignee_code;
    exception
       when no_data_found then
          j:='Customer ('||:import_can.consignee_code||') not found. Account is not created for this consignee ';
          raise_application_error(-20001,j); /* might be raise form_trigger_error here or something like that */
       when too_many_rows then
          j:='Customer ('||:import_can.consignee_code||') has several Accounts!';
          raise_application_error(-20001,j);
    end;
    begin
         select customer_code into cust from cust_details where customer_code=:import_can.consignee_code;
    exception
        when no_data_found then
            h:='consignee_code is not exist in customer code';
           raise_application_error(-20001,h);
    end;
    COMMIT_FORM;
    :GLOBAL.ADDCAN:=0;
    SA:=SHOW_ALERT('SAVE');
    ENAB;

  • ODI Error Handling: IKM for Essbase (Data), Check reject at Commit Intervls

    All,
    I am trying to see if there is a way I can handle errors in the ODI IKM for SQL to Hyperion Essbase (Data), so I can switch to using a load rule interface if there are rejects.
    I am thinking, if we can check for rejects after every commit interval (right now using the default of 1000 records), and continue to the next set of 1000 records only if there are no rejects.
    If there is a way of even aborting the interface run i.e. prevent it from switching to loading records line-by-line on the occurrence of a reject, I can check a log and kick off an interface which will use an Essbase Load rule to continue loading.
    I don't know if it all sounds too hypothetical, but I want to see if anyone has ideas around this approach.
    Please share any thoughts.
    Thanks,
    Anindyo

    Thanks John, I was thinking on those lines.
    But it would help if there is a way of collecting information on what rejected, without having to set up a new physical object to pull from the work repository or from the file.
    We are trying to get away from any KM customization.
    Do you know what we can check for here? Is there a way of refreshing a variable in case of a failure, which we can check in the next step?
    Thanks,
    Anindyo

  • Transaction ivew error, not working for any GUI type.

    All,
    After searching a lot through forums, i am unable to find any solution  and i am posting my problem here.
    I am simply connecting EP using a system object to R/3 thats it. system connetiong is successfull,
    however, transaction iview returns a dump if i use winGUI and gives following error if i use WebGUI:
    Application URL ':///sap(ZT03bzI3R2hPUnBBcXJXTkE4OVZITGd3JTNEJTNEd3FrY3phNTFlaGl2WmQ4QVhreXVadyUzRCUzRA==)/bc/gui/sap/its/webgui' is not valid! Please check the protocol and host entries for system 'SCM_5'
    I really do not understand what it is asking for, i have host entries properly configured. I have transaction that are web enabled. Now what should i do to get rid of this problem?
    Kindly help me out.  I m struggling with such a simple issue since yesterday.
    Regards,
    Ameya
    Edited by: Ameya Pimpalgaonkar on Jul 16, 2008 8:28 AM

    Hello,
    Have you activated the Integrated ITS yet? Have a look at the SAP Library for help on activating the ITS in WAS 6.40.
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/b5f9c2ea65c242957ee504ca4a37a9/frameset.htm
    checK ITS PATH parametr in system alias properties
    for more information , check below thread
    I want to access the  sap R3   transaction ( was 6.4 ) using integrated its
    Hope this helps
    Koti Reddy

  • How does status handling work for ePrint?

    I am wondering how I am notified whether an ePrint job failed or succeeded.
    Do I get a machine-readable reply that contains the message ID of my print request e-mail? For instance are delivery status notifications according to RFC 3464 supported?
    Thanks

    Hi Cristob,
    If you selected Allow Everyone under ePrintcenter.com setting.
    Then whenever you send an email to the printer it will send you an auto reply that the job has been received.
    If you selected Allow Senders Only under ePrintcenter.com setting.
    Then whenever you send an email to the printer it will send you an auto reply with more specific reply stating that the job had been received or failed and why.
    There is one more way to check what printed and failed.
    When you log into ePrintcenter.com and sign in, you should see recent jobs. Under recent jobs you will see the print job received by the printer and if it printed, pending, cancelled or Failed.
    If you have any question please do let us know.
    Thanks
    Josh.C
    Click on the BLUE KUDOS button on the left to say "Thanks"
    Although I am an HP employee, I am speaking for myself and not for HP.

  • I am in the process of developing a site, and I'm working with nested iframes. The html page inside the nested iframe is not displying in the iframe window in Firefox only, but is instead opening in a new window. Any advice on how to fix this?

    I am developing a website with nested iframes. The problem that I am having is that the html page inside the nested iframe is not displaying in the iframe window in Firefox only. The first level iframe is behaving properly, but the second level is not. Any help with this would be greatly appreciated.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Error handling for distributed cache synchronization

    Hello,
    Can somebody explain to me how the error handling works for the distributed cache synchronization ?
    Say I have four nodes of a weblogic cluster and 4 different sessions on each one of those nodes.
    On Node A an update happens on object B. This update is going to be propogated to all the other nodes B, C, D. But for some reason the connection between node A and node B is lost.
    In the following xml
    <cache-synchronization-manager>
    <clustering-service>...</clustering-service>
    <should-remove-connection-on-error>true</should-remove-connection-on-error>
    If I set this to true does this mean that the Toplink will stop sending updates from node A to node B ? I presume all of this is transparent. In order to handle any errors I do not have to write any code to capture this kind of error .
    Is that correct ?
    Aswin.

    This "should-remove-connection-on-error" option mainly applies to RMI or RMI_IIOP cache synchronization. If you use JMS for cache synchronization, then connectivity and error handling is provided by the JMS service.
    For RMI, when this is set to true (which is the default) if a communication exception occurs in sending the cache synchronization to a server, that server will be removed and no longer synchronized with. The assumption is that the server has gone down, and when it comes back up it will rejoin the cluster and reconnect to this server and resume synchronization. Since it will have an empty cache when it starts back up, it will not have missed anything.
    You do not have to perform any error handling, however if you wish to handle cache synchronization errors you can use a TopLink Session ExceptionHandler. Any cache synchronization errors will be sent to the session's exception handler and allow it to handle the error or be notified of the error. Any errors will also be logged to the TopLink session's log.

  • Application scope inside error handler

    Hi,
    I am not using the onError method. I am instead using the "Site-wide Error Handler" setting in the CF administrator to direct errors to an error.cfm page. Everything is working well but it appears that I do not have access to the application scope in that error.cfm error handling page.
    How can I get access to the application scope in that error handling page?
    Thanks,
    Andre

    without seeing the code its nearly impossible to help.
    But here are a few questions - you're using application.cfm
    so are you checking if the application is already initialised on
    the second page request rather than reinitialising it all over
    again?
    If you're getting an application scope timeout then it would
    maybe suggest you're using a CFLOCK with a timeout that is too
    short for the code execution in between the lock. If there error is
    present 9 times out of 10 it won't go away just by clicking
    refresh

  • Error handler for ORA-29283 - not working

    I am running Oracle 9.2.0.4 on HP-UX.
    I have a stored procedure which reads a text file. I have set up an execption for error code ORA-29283 (invalid file operation). When I test my procedure (by not having the file to read) my exception handler is bypassed for a general exception error and my procedure terminates.
    here's parts of my code:
    Declare
    file_not_found EXCEPTION;
    PRAGMA EXCEPTION_INIT (file_not_found, -29283);
    BEGIN
    nochourly_file := UTIL_FILE.fopen('/mydirectory','myfile.txt','R');
    Loop
    begin
    UTL_FILE.get_line(nochourly_file, sbuffer);
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    GOTO end_of_file;
    WHEN file_not_found
    THEN
    DBMS_OUTPUT.put_line ('Invalid File Operation - file not found');
    skip_last_hour_processed;
    GOTO end_of_file;
    WHEN OTHERS
    THEN
    err_num := SQLCODE;
    err_msg := SUBSTR (SQLERRM, 1, 100);
    DBMS_OUTPUT.put_line ('Error ' || TO_CHAR (err_num));
    DBMS_OUTPUT.put_line (err_msg);
    DBMS_OUTPUT.put_line (sbuffer);
    RAISE;
    EXIT;
    END;
    ===============
    When this fails I expect to see the message
    "Invalid file operation - file not found"
    which indicates my exception handler was processed.
    Instead I see:
    SQL> @$HOME/newhourly_dly
    Begin processing at 20060627154321
    nlasthourprocessed:20060627100000
    Last Hour Processed is 20060627100000
    BEGIN noc_hourly_daily_load; END;
    ERROR at line 1:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 449
    ORA-29283: invalid file operation
    ORA-06512: at "HNS.NOC_HOURLY_DAILY_LOAD", line 374
    ORA-06512: at line 1
    Elapsed: 00:00:00.05
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Can you explain:
    1) what generated the error message since
    a. it wasn't my exception handler and
    b. it wasn't the "WHEN OTHERS"
    2) Why isn't my error handler working?
    Please advise.
    Thank you

    Hello
    Not sure why your exception is being ignored but usually, to be able to handle the UTL_FILE exceptions, you need to explicitly code for each exception declared in the UTL_FILE package i.e.
    EXCEPTION
          WHEN utl_file.invalid_path THEN
                 --Do something
          WHEN utl_file.invalid_mode THEN
                 --Do something
          WHEN utl_file.invalid_filehandle THEN
                 --Do something
          WHEN utl_file.invalid_operation THEN
                 --Do something
          WHEN utl_file.read_error THEN
                 --Do something
          WHEN utl_file.write_error THEN
                 --Do something
          WHEN utl_file.internal_error THEN
                 --Do something
    END;HTH
    David

Maybe you are looking for

  • Dwsnyc.xml files

    I maintain two websites using Dreamweaver. Dreamweaver creates a file called dwsnyc.xml in each directory for both websites. These files seem to cause me problems when I'm backing up my hard drive. Actually I use a simple copy command to do the backu

  • Forms Runtime

    Hello I am looking to deploy my application to several users,i know that in the runtime shortcut to the runtime form i am able to insert a username/passworda and connection. does anyone know exactly how to do this? null

  • Change VDSK1 feature configuration

    Hello, Requirement is to restrict access based on Personnel Subarea+Pers. Admin(BTRTL+SACHP). We are trying to use Org key(VDSK1) to restrict authorizations. Org key should be determined based on Personnel Subarea+Personnel Admin(BTRTL+SACHP). So, we

  • How to separate logon screens

    Dear Sir, We implement EP6.0 SP2 , we need to separtae logon screen as we are the group companies . Each company need to logon with its logon screen. However, those logon screen will access to the same EP6.0. Please kindly adivse . Thanks and best re

  • Does HDR and camera flash work on ipad 2 with ios 7?

    Does HDR and camera flash work on ipad 2 with ios 7? I can't see these options.