Quit the Apex engine using wwv_flow.g_unrecoverable_error

Hi all
I have used wwv_flow.g_unrecoverable_error := TRUE to quit the apex engine (mainly in my exception handlers) and then issue a owa_util.redirect_url api call.
Under some circumstances, I have needed to reinitiate using htp.init;
I have not been able to work out why sometimes I need to use htp.init prior to redirect and othertimes, the redirect works fine.
I would be interested in anyone's views who may have encountered this before.
Regards
Duncan

Hello Duncan,
… however I kind of agree with Scott that this may mask some redirects that should fail but would actually workI believe Scott meant to a very basic (low level) coding, where your redirect can be conditioned by the HTTP response code (HTTP status message) like when you are using XMLHttpRequest and stuff (the basic to AJAX). Init the HTTP header can mask any error code received in the HTTP response. I don’t think this is the case with you – if I understand correctly, your branches, as part of processing the exceptions, are not conditioned that way - so I would go with his opening statement "Go ahead .".
Regards,
Arie.

Similar Messages

  • Views in Apex 4.1.1 is crashing the Apex engine

    Good Morning,
    I have over 27 views in apex and made a column name change in the views and after I compile about 4 or 5 of them, the apex engine crashes. I was compiling the data views first, before moving on to report views.
    When I upload the views and ran them in the as a script, it said all of the views were created.
    When I went into object browser most of the views compiled. I recompiled the ones that were marked red. I compiled them in the code window, incase it threw an error, I can fix it there.
    I had problems with views, before causing core dumps when I compiled them, but figured I had to compile the views in a certain order.
    Any help on this is appreciated.
    Using Oracle 11g
    Apex 4.1.1
    Thanks,
    Mary

    MaryM wrote:
    I know it's almost a cliche'd answer but... can you provide a bit more detail?
    When I compile about 3 or 4 view in the code section of the view using the object browser it runs fine. It's when I go and compile another view in the code section, it will take longer to compile or freeze up and then throw an ORA-20876 error. I tell the dba whats going on and she checks and sees that the Apex engine has crashed and has to restart it.
    I do not have access to SQL Plus or anything else. I will do this on the Oracle Hosted site to see if there is any problems.
    The problem with the views before, was I was just compiling them and alot of my views use other views. So I just figured that I needed to compile the main data views, before the rest of the views, thinking that I needed to do compile them in order.
    Update:
    I uploaded 23 views that I had to change a field name in them to the Oracle Hosted site. They loaded and compiled fine. The views that didn't have any changes, there was a red mark next to them, so I recompiled them. There were no errors. Why do I have to recompile views that I didn't change?As you say, if there are interlocking dependencies between the objects in the view(s), on the initial run of the script they may well be invalidated. If you run the following:
    create or replace view VW_FOO as
    select sysdate tdate from dual;
    create or replace view VW_BAR as
    select (sysdate + 1) tdate
      from dual
    union
    select vf.tdate
      from vw_foo vf;
    CREATE OR REPLACE VIEW VW_FOO
    (TDATE, TDATE_2)
    AS
    select sysdate tdate, sysdate tdate_2 from dual;
    View created.
    View created.
    View created.the View VW_BAR is invalidated, despite not being materially affected by the change to VW_FOO, on which it has a dependency - there are no errors displayed. Re-compiling VW_BAR seperately thereafter validates it.
    My Oracle Hosted Site info:Hello,
    I tried logging into apex.oracle.com with the details you've provided but was unable to gain access?

  • UCCX 5/7 or 8 - Database access - How does the UCCX engine use the DB connection

    I was asked the following question by a customer:
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:Calibri;
    mso-fareast-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    "How does UCCX manage it’s database connections – a connection pool manager / single connection / single connection for each call"
    Does anyone actually know ?  Is it documented anywhere?
    Based on how the steps work I'd guess that the UCCX engine makes a new single DB connection each time the DB step reaches out the DB for a read/write. I assume it would do this independently for every instance of a script running.  Hence the importance of the DB release step I'm guessing.
    I know in the DB subsystem you can configure the maximum number of DB connections to be used but this doesn't imply how they are used.
    I'm not a DB guy, but I think the concern stems from the potential load on a DB server with the constant opening and closing of the DB connections.  I'm assuming that if it used a connection pool the UCCX engine would open, and keep open, a group of DB connections to be used by the UCCX engine. This would lessen the load on the DB server I'm assuming.
    Is there any fundamental difference with UCCX 8 and the DB access ?  It obviously not ODBC anymore.  It JDBC right ? But again how does the UCCX engine use the DB connection?

    To my knowledge, this is not documented; however, at least through 7.0 the MIVR subsystem will open a pool of ODBC connections equal to the maximum you defined and keep them open. If you set it to 50, you will see 50 open connections on the SQL server. Each script that is triggered will attach to one of the available connections as soon as you use a DB-related step and keep it until you use a DB Release step. Once that script instance releases it, the connection is available for another script.
    The behavior should not change with 8.0 as it is the same MIVR subsystem that is doing the work. My first CCX 8.0 project that needs database integration is still about 30 days away so I can't guarantee that though.

  • What is the rendering engine used in Dreamweaver CS3

    What is the rendering engine(aka layout engine) used in DW
    CS3?
    and which of the current browsers is using(or being based on)
    this engine?

    old9 wrote:
    > What is the rendering engine(aka layout engine) used in
    DW CS3?
    > and which of the current browsers is using(or being
    based on) this engine?
    I'm not sure, but I think that the rendering engine is
    Dreamweaver's
    own. Before DW CS3, the aim was to emulate Internet Explorer
    as closely
    as possible. CS3 no longer does that, but attempts to render
    pages as
    closely to the W3C standards as possible. What you see is
    probably
    closest to what you would get in Firefox, but it's not based
    on Mozilla.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • The search engine used to open selections in a new tab. Doesn't do that anymore. How do I get it back?

    I prefer Yahoo search. In previous versions of Firefox, the search engine would pull up the list of possible websites. Clicking on the link would open that website in a new page. It doesn't do that anymore. It simply opens the link forcing me to continually go back and forth instead of just being able to close the new tab if it's not what I'm looking for. How do I get the old way to work again?

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Right click the link and select '''Open New . . . .'''

  • How do you change the search engine used in the address bar?

    I use the address bar to search, instead of the actual search bar field. Why? It's easier. Or, it used to be. It used to use Google. Now it's using Yahoo!. This is unacceptable. Haha. How do I change which search engine is used in the ADDRESS bar?

    had this problem after accidentally downloaded the yahoo toolbar along with an adobe product. Firstly, tried to remove it control panel in add/remove programmes but it refused to uninstal. Since then was told by technicians of my ip to use Revo uninstaller the free ed. Next step was go to tools then options. On the general tab, at the bottom you will find manage-add-ons. under search provider do not want. f yahoo is still there disable it.
    Also go to internet options in control panel and set up there too. Be sure to find and tick the option that other search engines cannot change yours. Be sure to set the appropriate home page.

  • Does the Workflow engine use EXISTENCECHECK methods directly?

    Hi all,
    I'm curious about the use of existencecheck. It's a method in all Business Objects, which I have no problem with and fully understand.
    What made me curious is that OO Classes used in WF still include an EXISTENCECHECK method. Theoretically it's not necessary, because the constructor does pretty much the same thing.
    Workflows work fine if I make them private, which makes me wonder if it's a case of "because we've always done it that way".
    So, is this still around because some obscure internal routines call it occasionally? Obviously I cannot conclusively test this, and on the other hand if it is used then shouldn't it be part of IF_WORKFLOW?
    Any input appreciated.
    Cheers,
    Mike

    Closed due to lack of interest...

  • I've been using firefox for years, and i'm very upset with the 34.0.5 update's changes to the search engine feature.

    hi,
    this new search engine is incredibly convoluted, and i put some real thought into why it's bad
    the dropdown menu contains more things than it used to. previously only a list with icons and titles and a link to options...now only icons (with no options to include text), a reiteration of your terms and current engine, separators between each icon, and loads of potential results from auto-complete (which i disabled immediately). though taking up less space by forcing icons only, more things were added, giving the user more clutter in less space.
    having a permanent default search engine is counterproductive to the feature's previous nature. this was supposed to be there so i can quickly change between websites i'm searching, now it's been equated to the search feature in the address bar (which i am now also unable to change the function of on the fly, as changing the search engine used would also change the address bar's search function - perhaps influenced this change?). it's now faster for me to type the website i want followed by my terms into the address bar, just like when i use chrome. this feature was one of the largest reasons why i preferred firefox over chrome
    i would commonly leave my search engine on merriam-webster when writing papers, wikipedia when doing research, etc. and now i have to click which one i want. every time. with every search that isnt default, unless i change my default through the options constantly. this is incredibly tedious. most irritating of all is the inability to use hotkeys to select my search engine, the lack of ctrl+up/down. previously i wouldnt have to use my mouse often at all, which is imperative for laptop users
    so yeah, ive put some real thought into this, and i'm very unhappy. this greatly hinders my browsing experience. heard the saying "if its not broken, dont fix it"? ive been using chrome in conjunction with firefox for a few years now, and it's been painful to see mozilla attempt to imitate it. i will be using chrome more often in the absence of this feature (i am right now, even). i'm also upset that i was unable to find a public message boards hosted by mozilla to voice my opinion, and i apologize to whoever customer support employee that (probably didnt) read this - please pass it on to the devs and tell them internet people are angry and said they fucked up. thanks.
    and i beg you, please give us the option to revert back to the old interface in future updates, or at least an official extension overriding this awful update. i realize i cant request this really, and yes im upset, yes im sending an angry email - thats because this is something i use often and i am passionate about it
    sincerely,
    pissed

    You can use the Tab key to select a search engine on the bottom bar and press Enter to use the search engine to do the search.
    *https://support.mozilla.org/kb/Search+bar
    In the current Firefox 34 release there is a new "one-off" search bar.
    This search bar doesn't show the name of the search engine and a logo.
    You can type one letter to make a drop-down list appear where you can see suggestions and see the used search engine and that also has bar at the bottom where you can select other search engines that are enabled via the Search tab in Options/Preferences.
    You can use the Tab key to select one of the other available search engines and press the Enter key to search with the selected search engine.
    Click the search engine icon and click "Change Search Settings" to open the Search tab in Options/Preferences (positioned between Tabs and Content) to select the default search engine and select which search engines to show in the search bar drop-down list that opens when you start typing search terms.

  • How do you assign a value to the APEX field APP_USER

    Application Express 4.0.2.00.07
    Hi
    Is there a special function/procedure to assign a value to the APP_USER field
    or a simple APP_USER := :P1_LOGIN_NAME would do
    Z

    Hello Zac,
    >> or a simple APP_USER := :P1_LOGIN_NAME would do
    The APEX engine is already doing it for you after a successful login – setting the value of APP_USER as the user login name. You can use it as a substitution string or with the bind variable notation (:APP_USER).
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • Use apex_application.g_unrecoverable_error := TRUE; and apex_collection.truncate_collection doesn't work

    I'm trying to print pdf using JasperReports Integration. I need to do an INSERT then clean all the page items(including the apex_collection.truncate_collection for truncate the collection)  and print with the Jasper call(all in one button).
    The Insert works, and i can perfectlly print too, but the clean page items and the truncate collection doesn't.
    Please HELP! its really urgent!!
    Thnx.
    Ricardo Capuz

    Hi Nicolette, i'm really new on Apex, sorry for the bad explanation.
    First, thank for your answer, my apex version is 4.2.2.
    I'm sure that the insert works perfect, cause i checked with the database.
    i used apex_application.g_unrecoverable_error := true; because is the code that bring the people of JasperReportsIntegration and I tried to comment it but without it, the print doesn't work.
    My problem is when I use the g_unrecoverable_error the printPDF works perfect but apex does not truncate the collection or clean the fields neither.
    I have an invoicing application, i want to click on "generate invoice" and do the insert, print pdf and refresh the page, so that when the user finish to print the invoice, the invoicing application is clean for make another invoice.
    Here's the code of the print pdf....
    DECLARE
               l_blob        BLOB;
               l_mime_type   VARCHAR2 (100 char);
               l_proc varchar2(100) := 'get report as blob, then show';
               l_additional_parameters varchar2(32767);
    BEGIN
          l_additional_parameters := 'USUARIO_CODIGO=' || apex_util.url_encode(:APP_USER);
          l_additional_parameters := l_additional_parameters||'&PRESUPUESTO_NUMERO='||apex_util.url_encode(:PRESUPUESTO_ID);
          xlog (l_proc, 'url (orig):' || 'http://Servidor-New:8181/JasperReportsIntegration/report');
       -- generate the report and return in BLOB
      xlib_jasperreports.set_report_url ('http://Servidor-New:8181/JasperReportsIntegration/report');
      xlib_jasperreports.get_report(
                                       p_rep_name => '&JASPER_HOME./PRESUPUESTO_CNO',
                                       p_rep_format => 'pdf',
                                       p_data_source => '&JASPER_HOME.',
                                       p_rep_locale => 'es_ES',
                                       p_additional_params => l_additional_parameters,
                                       p_out_blob            => l_blob,
                                       p_out_mime_type       => l_mime_type
       -- set mime header and filename
       OWA_UTIL.mime_header (ccontent_type      => l_mime_type,
                             bclose_header      => TRUE);
       -- send Content-Disposition and suggest a file name for saving
       htp.p('Content-Disposition: attachment; filename="'|| 'Presupuesto.pdf' ||'"');
       -- set content length
       HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
       OWA_UTIL.http_header_close;
       -- download the file and display in browser
       WPG_DOCLOAD.download_file (l_blob);
       -- release resources
       DBMS_LOB.freetemporary (l_blob);
       -- stop rendering of APEX page
      apex_application.g_unrecoverable_error := TRUE;
    /* apex_application.stop_apex_engine;                               -------I PROVE WITH THIS ONE AND IT DOESN'T WORK
       apex_util.redirect_url (                                      --------IF I SET THE BUFFER RESET TO TRUE, IT CLEAN THE FIELDS BUT DON'T PRINT AND IF I SET TO FALSE IT PRINT BUT DON'T CLEAN THE FIELDS.
    p_url => 'f?p=&APP_ID.:30:' || :SESSION,
                              p_reset_htp_buffer => true ); */
        -- Limpieza de ITEMS collection
    apex_collection.truncate_collection(p_collection_name => 'ITEMS');  -----I TRIED TO PUT THIS PART UPPER THAN THE g_unrecoverable_erro BUT IS THE SAME THING.
    :P30_CI:='';
    :P30_NOMB_AP_PACIENTE:=' ';
    :P30_HISTORIA_PACIENTE:= NULL;
    :P30_RIF_RESP_PAGO:=' ';
    :P30_NOMBRE_RESP_PAGO:=' ';
    EXCEPTION
       WHEN OTHERS
       THEN
          xlog (l_proc, SQLERRM, 'ERROR');
          RAISE;
    END;
    I really aprecciate your help. Thank you Nicolette!!!
    Ricardo Capuz

  • How do I change the search engine in Safari?

    Hi y'all,
    How do I change the search engine used in the "search" slot in the menu bar? I still want it to use google, but would like to change it to the danish version.
    Kind regards
    -z

    Hi
    Easiest way to change the search is to install 3rd party freeware Inquisitor. After installing it, restart Safari. Go to Safari Preferences. Click on the arrow at the far end of the menu panel. You'll see an hour-glass icon. Click on it to open the Inquisitor panel. Click on the search engine drop-down menu and select your preferred search engine.

  • Change search engine using shortcuts

    Hello.
    I've recently updated firefox and I've noticed the search bar has changed.
    It looks good, but I used to change the search engine using cntrl + up / down to change between search engines within the search bar. As It's explained here: http://lifehacker.com/139495/hack-attack-mouse+less-firefox
    Now, I don't find the way to do so without using the mouse or moving with the arrow keys all the way down.
    Isn't there any shorcuts for this anymore? Shorcuts are really handy for me :(
    PD: I've noticed also that cntrl+E does not select the search bar anymore, now cntrl+K only does this. But this ok.

    You can revert to the former Search Bar scheme like this.
    Open up '''about:config''' ''(typed in the Location Bar)'' and toggle this preference to '''''false'''''
    '''browser.search.showOneOffButtons'''
    Then restart Firefox.

  • PDF: Unable to print a document as PDF from APEX when using the BI Publishe

    Hi,
    From an APEX application, I am unable to print a document in a PDF format when using the Oracle BI Publisher.\
    Here is the configuration:
    1) Server A is W2K3 and hosts the Oracle BI Publisher server, with IP address ip01.
    2) Server B is a OEL5.2 and hosts the database server of the APEX application, with IP address ip02.
    3) Machine C is a W7 desktop from which through an URL both the APEX applicationn and the BI server are accessed, with IP address ip03.
    4) The APEX application is configured with the following to use the Oracle BI Publisher:
    - Printer server: Advanced (requires Oracle BI Publisher)
    - Printer server protocol: HTTP
    - Printer server host address: ip01
    - Printer server port: 9704
    - Printer server script: /xmlpserver/convert
    - Network services are enabled (at least I did get any warning/error message)
    From C, I access the the APEX application through its URL, if I try to download a page by selecting PDF in the download section of the interative report section for that page, I am unable to open if and get the error:
    <file>. pdf file can not be opened because the file type is not supported or because it is damaged (because, for example as an e-mail attachment is not sent and correctly decoded)
    Yet, still from C, I am able to open any other PDF document.
    The same way, still from C, acessing the APEX application through its URL, I have a query report defined with a PDF output format. Then, when I test the report (Test Report in the Report query) for that query, I get the error:
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
    At first sight this could be a wong entry in the priinter configuration for APEX. But with this address, through the URL I can log in to the Oracle BI Publisher server.
    Does someone has an idea what the problem could be?
    Thanks for any tips.

    How are you trying to print to pdf?
    Don't go via PostScript or Acrobat Distiller, which are old deprecated technology.
    You use:
    Menu > File > Print > PDF (button bottom left) > Save as PDF…
    Peter

  • Error while using wwv_flow.g_f  in APEX

    Hi ,
    I am using wwv_flow.g_f in my application. My code looks some what like this
    declare
    l_max_col
    l_col_pos
    for i in 8..l_max_col loop
    ...for j in 1..wwv_flow.g_f|| l_col_pos|| .count loop
    l_rm:=......
    The code is working fine till l_col_pos is 30. When l_col_pos is more than 30 ie., for 31 and 32 it is assigning l_rm to null.
    ie., something like wwv_flow.g_f08(j) to wwv_flow.g_f30(j) is working fine wwv_flow.g_f31(j) is assigning null to l_rm.
    I am thinking the issue might be because of PlsqlMaxParameters.
    Can anyone please help me with this issue. Is there any limit for wwv_flow.g_f.
    Thank you
    gayatri
    Edited by: user12589255 on Jun 21, 2010 3:46 PM
    Edited by: user12589255 on Jun 21, 2010 3:48 PM

    The wwv_flow.g_f0X parameters refer to the JavaScript array identifiers. I believe they should go from 1 to 50.
    One thing to consider (since not much of your code is listed there): how much data are you trying to stuff into each array? I've seen several areas in APEX where 32K becomes a hinge point and some things just die. Is there the potential in your array that you are storing that much data?
    Another thing that I noticed is that there is an undetermined number of columns. Is this true? Are you manually assigning the report columns to specific JavaScript array numbers using APEX_ITEM? If not, you may be getting a conflict in the browser.

  • Error in apex report Ora-20001 The printng engine could not be reached

    I created a report query. When I test it I got the following error.
    Ora-20001 Report engine colud not find the requested url.

    hi All,
    i want to have Print Option Enabled on my Reports
    i did as mentioned in the Document
    Configuring Report Printing in a Full Development Environment
    To configure the printing of reports in a full development environment:
    1. Log in to Oracle Application Express Administration Services. See "Logging in to
    Oracle Application Express Administration Services" on page 2-3.
    2. Click Manage Service.
    3. Under Manage Environment Settings, click Instance Settings.
    4. Scroll down to Report Printing:
    5. For Oracle BI Publisher, select one of the following:
    – Standard Support - This is the default setting. Standard Support enables you
    to print report regions and report queries using either the built-in templates
    provided with Oracle Application Express or other XSL-FO compatible
    formats you provide. This setting does not support RTF (rich text format).
    Standard Support provides declarative formatting of report regions and report
    queries with basic control over page attributes, including orientation, size,
    column heading formats, page header, and page footer.
    – Advanced Support - Requires a valid license of Oracle BI Publisher (also
    known as Oracle XML Publisher). Advanced Support provides you with all
    the capabilities of the Standard setting plus the ability to define RTF-based
    report layouts developed using the BI Publisher Word Template Builder.
    To learn more about installing and configuring Oracle BI Publisher, see PDF
    Printing in Application Express 3.1. See:
    6. For Print Server Protocol, select the protocol that the print server uses.
    7. For Print Server Host Address, specify the host address of the print server engine.
    8. For Print Server Port, define the port of the print server engine. By default, this is
    set to 8888 when the report server is installed.
    9. For Print Server Script, define the script that is the print server engine. The default
    setting is:
    /xmlpserver/convert
    10. Click Apply Change
    After Configuring the Print Option,
    i am having Oracle 10g Releae2 on Hp- Unix, and Apex 3.1
    i didnt Install Oracle BI publisher
    i want to Enable Print Option on my Reports
    when i try to give the Print a Report
    i am getting the Below Error
    <div id="report_7026503216111526_catch"></div><pre>report error:
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.</pre>
    please Help me out
    Many thanks

Maybe you are looking for