Replaceing single quote in error message

Hi,
Iam trying following to get and insert into ERROR_LOG table:-
SUBSTR('<%=odiRef.getPrevStepLog("MESSAGE")%>',1,1000)
It is throwing up an error when it is trying to insert into ERROR_LOG Table,the reason is error message has got following :-
' PLS-00201: identifier 'III_1742_2013011901' must be declared'
i.e quote with in a quote if i take that one out from error message i can insert into ERROR LOG Table.
How can we avoid this in ODI odiRef.getPrevStepLog message?
Cheers

try to replace the character or read after PLS.
You can give a try like below. This should be done inside script let.
odiRef.getPrevStepLog("MESSAGE").replace("'","")

Similar Messages

  • Replace Single Quote with double quote

    Hi All,
    I have a String s="help'me'to'replace";
    i want to replace single quote( ' ) in to double quote ( " )
    The final out put should be like this help"me"to"replace
    ( Actually this string i have to pass in to an XML )
    Please help any one

    s.replaceAll("'","\"");{code}
    or just one of the String#replace() methods.
    Edited by: sabre150 on Mar 17, 2009 11:48 AM                                                                                                                                                                                                                                                               

  • How to replace single quote with double quote

    hai all,
    i have a problem,
    i am trying insert a string containing single quote into ms-access database.
    it is giving error.
    how can i avoid this .if i replace a single quote in the text with double quote it will defenitely
    insert into database.
    in java.lang.String
    replace () will not work to replace quote with double quote.
    any otherway to solve this problem.
    please mail me to [email protected]
    thank you
    sambareddy
    inida

    java.lang.String.replace () will not work to replace quote with double quote.Really?
    String x = ...
    x.replace( "'", "\"" );

  • SQL Injection, replace single quote with two single quotes?

    Is replacing a single quote with two single quotes adequate
    for eliminating
    SQL injection attacks? This article (
    http://www.devguru.com/features/kb/kb100206.asp
    ) offers that advice, and it
    enabled me to allow users to search name fields in the
    database that contain
    single quotes.
    I was advised to use "Paramaterized SQL" in an earlier post,
    but I can't
    understand the concept behind that method, and whether it
    applies to
    queries, writes, or both.

    Then you can use both stored procedures and prepared
    statements.
    Both provide better protection than simply replacing
    apostrophes.
    Prepared statements are simple:
    Set myCommand = Server.CreateObject("ADODB.Command")
    ...snip...
    myCommand.CommandText = "INSERT INTO Users([Name], [Email])
    VALUES (?, ?)"
    ...snip...
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Name",200,1,50,Name)
    myCommand.Parameters.Append
    myCommand.CreateParameter("@Email",200,1,50,Email)
    myCommand.Execute ,,128 'the ,,128 sets execution flags that
    tell ADO not to
    look for rows to be returned. This saves the expense of
    creating a
    recordset object you don't need.
    Stored procedures are executed in a similar manner. DW can
    help you with a
    stored procedure through the "Command (Stored Procedure)"
    server behavior.
    You can see a full example of a prepared statement by looking
    at DW's
    recordset code after you've created a recordset using version
    8.02.
    "Mike Z" <[email protected]> wrote in message
    news:eo5idq$3qr$[email protected]..
    >I should have repeated this, I am using VBScript in ASP,
    with an Access DB.
    >

  • Replace single quotes

    I know that I have to trap the single quotes when inserting names, streets, etc.
    I tried to use replace() and to replace the single ones with 2 singles. Could somebody help me with the syntax as I'm getting all the time errors. Here is the code:
    Insert into t1 values(Last_name, First_name, Street)
    Last_name = 'last_Name's+app', First_name = first_name's_app', Street = 'street's_app'
    Insert into t1 values((Replace(last_name, ','')), (replace(First_name,',''),(replace(Street,','')))
    Also, do I need to worry when I passing the single quotes to the calling program?
    Thanks a lot.
    MJ

    Check this out.
    SQL> desc mytable
    Name                                      Null?    Type
    COL1                                               VARCHAR2(20)
    COL2                                               NUMBER(2)
    SQL> insert into mytable values('last_name''s+app',1);
    1 row created.
    SQL> select * from mytable;
    COL1                       COL2
    last_name's+app               1

  • Trying to sync selected (greyed out) contacts to my replacement 4s.  Get error messages - computer not setup to sync - override or OK.  OK - session could not start.  How do I fix?

    I have a new replacement 4s.  I am trying to set it up.  I hate iCloud but need it to sync my calendar to my phone.  I mistakenly set it up to sync Contacts too and found out it synced ALL contacts which I do NOT want.  I used to use iTunes to sync only selected contact folders (one I call Sync).  Others are too sensitive to have on my phone.  So I turned off "where is my iPhone", and turned off "Contacts" on iCloud.  It said it would delete all my contacts on my phone the next time I sync (using iTunes).  So I try to sync my Contacts using iTunes and find that under "Info" on the device tabs my only possible selection is ALL contacts with the "Selected" button greyed out.  But even leaving all checked, I get the message "iTunes cannot sync information with the iPhone because syncing has been disabled on this computer (my Mac).  Do you want to enable syncing?"  I hit the button "Enable syncing" and I get the error message "Syncing cannot be enabled on this computer"  with "Override" and "OK" my choices.  If I select "OK" I get the error message "iTunes could not sync information to the iPhone (Name) because a sync session could not be started".  I can sync my music and my apps but get this stupid message otherwise.  What gives and I do I fix this?  Thanks

    Actually I can't sync anything - no music, photos, etc.  And it tries to start syncing as soon as I plug in my iphone and itunes is open.  It ends "sync" but hasn't done anything.  I have tried deleting lockdown files (per "solution" found here).  I have deleted all my backups (per other "solutions").  I have restored my iphone 2x.  I have done soft boots of my iphone.  My macbookpro 10.9.3.  iphone 7.1.1.  iTunes 11.2.2 (3). 

  • APEX 3.1 replaces HTML tags in error message automatically

    Hello!
    I have a problem: we use sometimes HTML links or even JavaScript in error messages. In older versions of APEX it works, but now we upgraded to 3.1 and in all those messages HTML tags are replaced so instead of link we get a plain HTML in a message.
    Are there any possibilities to turn this option off or what can we do to solve this problem?
    Regards,
    Maksim

    In a page process we use raise_application_error(-20547, 'Go to GOOGLE') and in a Process Error Message
    we use constuction Error: #SQLERRM#. Then on an standard error page we see instead of Error: Go to Google html source. Thats it. In template in Error Page Template Control section we use substitution #MESSAGE#

  • Replace single quote with two single quotes

    Hi all,
    I have a value = ABCD'S(>@!23. i want to replace the value as ABCD''S(>@!23.
    Thanks in advance

    What is your database version ? Q operator works from 10G onwards.
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 23 14:35:38 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> conn hr
    Enter password:
    Connected.
    SQL>  CREATE TABLE test_Q_operator(str VARCHAR2(30));
    Table created.
    SQL> INSERT INTO test_Q_operator VALUES('ABCD''S(>@!23');
    1 row created.
    SQL> INSERT INTO test_Q_operator VALUES('Saubhik''s test row');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT str,REPLACE(str,Q'[']',Q'['']') col2
      2  FROM test_Q_operator;
    STR
    COL2
    ABCD'S(>@!23
    ABCD''S(>@!23
    Saubhik's test row
    Saubhik''s test row
    SQL>Also check you SQL*PLUS client version.

  • Replacing single quote

    I am an ASP developer and new to JSP. I want to know that how we can replace a singlequote( ' ) in a string, like we do by "replace" function in ASP.

    What do you mean by replacing the (') if you want to use the (') or (") in the String then you can use
    \" or \'

  • Error message or program crashing when printing on Epson printer

    In July 2008, I upgraded my computer from a MacBook to a MacBook Pro (and bought a Time Machine so that all my files are backed up regularly!) I then bought my wife a MacBook Pro in November 2008. We both used to have iBook G4s.
    We have an Epson EPL-6200 Laser Printer that we print from using our Airport Express. It used to work fine printing documents from any program and printing wirelessly from the iBook G4 computers we had when we bought the printer around three years ago.
    But since I have switched to a MacBook and now a MacBook Pro, I have all kinds of problems printing on the Epson EPL-6200 printer. At first, my MacBook did not print remotely at all. I had long conversations with both Apple and Epson, knowing there was a problem with the Epson driver. To top it off, the problems seemed worst with Microsoft Office, so both of them also said it was Microsoft's fault!
    Now that Epson has upgraded its drivers and I have dowloaded the latest one, and switched to a MacBook Pro, I can print some files easily -- Word documents now print immediately, although I get an error message saying that the printer is not connected. But trying to print from other programs such as Firefox either takes a very long time (around 5-8 minutes for one page) or causes the program to crash.
    Any ideas? The strange thing is that my wife's computer and mine are exactly the same (running Mac OS X version 10.5.6) but behave slightly differently when printing. I can print from Firefox, albeit after a long time per page, whereas if she tries to print from her computer in that program it instantly crashes.
    I guess we still have driver issues with the Epson EPL-6200.
    But I have looked on the Apple support forums and there seem to be a lot of printer-related issues like this. Do you guys have any suggestions? Or is there a printer that will work well with our MacBook Pros, an Airport Express and/or Time Machine (we have both) and when printing remotely?
    All the best,
    Alex

    hey,
    well, i use the below machines with the current mac os (10.5.6).
    i (kind of often) had issues with the network printer epson epl-6200.
    of which every issue could be resolved by myself, more or less quickly.
    i.e. until the last update (10.5.6).
    none of my machines is able to get anything through the network to the printer.
    at least they don't get the printer to print a page.
    today i spent (almost) the whole day, trying out things to get it fixed this time.
    none of it worked.
    just to let you know:
    i can access the printer through its http-interface.
    i can ping it.
    it gets recognized by the printer/fax-dialog in the system-preferences.
    here's what i tried so far:
    i tried to install the osx driver for the epl-6200 with every single protocol that's available in osx (i.e.: Appletalk, IPP, Bonjour, EPSON (IP), etc.)
    i of course tried to update the driver with the latest software available on the epson-website. and did the thing with the different protocols again.
    i tried the "generic" postscript driver of osx, too.
    then it was getting interesting:
    i tried to get "cups" for the epl-6200. i don't want to get into details here, but to drop some names:
    foomatic-rip (combined with ghostscript)
    http://linuxfoundation.org/en/OpenPrinting/MacOSX/foomatic
    gutenprint (doesn't have an epl-6200 driver included)
    pxlmono (doesn't have an epl-6200 driver included)
    to sum that up:
    there are two drivers on the "openprinting"-site (foomatic). but one is (of course) the official epson driver.
    but:
    there is a "third-party" driver downloadable on that website.
    http://openprinting.org/show_printer.cgi?recnum=Epson-EPL-6200
    well, i downloaded it, installed the required additional software (foomatic + ghostscript), all very fine. i could choose it in the osx printer setup menu.
    but:
    my printer still won't print a single page.
    the error messages i got:
    other than the above post none of my programs ever crashed, or was "dead slow".
    but:
    the printing job got constantly stopped, i could restart it, but it was then stopped again. without any error message.
    there was the same thing with the halt of the printer (also monitored in the printing cue window). i could restart it, but it would stop again. without any error message.
    but i also got two decent error messages: :))
    the first involved the pdftoescpage.app, either it was failing (shown in the printer cue window), or it was crashing (i got the error message in a separate window popping up). according to folks on the net this malfunction involved user permissions, so i to set up the "right" permissions (giving everybody the right to do anything (rwx) - i know i shouldn't have :)) ). but it didn't help. still crashing or failing.
    the second decent error message, finally:
    "double free" - what that meant, i cannot tell.
    conclusion:
    i don't know. :))
    required action:
    i will await the next osx update, and hope it'll be fixed then. :))
    good night, y'all
    p.s.: ahh, if anybody knows anything i didn't and should try. please drop a line. thx

  • How to use a single quote string in where condition

    Hi,
    I have one problem in building a query.
    SELECT agx_drug_indication.record_id, agx_drug_indication.fk_ad_rec_id,
    agx_drug_indication.drugindicationmeddraver, agx_drug.record_id,
    agx_drug.fk_apat_rec_id,
    REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
    pack_imp_objects.fn_get_arisg_code
    (147,
    agx_drug_indication.drugindicationmeddraver
    ) AS "DRUGINDICATIONMEDDRAVER",
    agx_drug.drugindication,
    NVL (agx_drug.drugcharacterization, 1) AS "DRUGCHARACTERIZATION",
    agx_safety_report.record_id, agx_safety_report.case_identifier_no,
    agx_safety_report.fk_apat_rec_id,
    pack_imp_objects.fn_meddra_llt_matching
    (agx_drug_indication.drugindication,
    agx_drug_indication.drugindication,
    agx_drug_indication.drugindicationmeddraver,
    1
    ) AS "LLT_CODE",
    pack_imp_objects.fn_meddra_soccode_matching
    (agx_drug_indication.drugindication,
    agx_drug_indication.drugindicationmeddraver
    ) AS "PRIMARY_SOC_CODE",
    pack_imp_objects.fn_meddra_soccode_matching
    (agx_drug_indication.drugindication,
    agx_drug_indication.drugindicationmeddraver
    ) AS "CASE_SOC_CODE",
    pack_imp_objects.fn_meddra_pt_matching
    (agx_drug_indication.drugindication,
    agx_drug_indication.drugindication,
    agx_drug_indication.drugindicationmeddraver
    ) AS "PT_CODE",
    pack_imp_objects.fn_get_aer_id (11) AS "AER_ID"
    FROM agx_drug_indication,
    agx_drug,
    agx_safety_report
    WHERE agx_drug_indication.fk_ad_rec_id = agx_drug.record_id
    AND agx_drug.fk_apat_rec_id = agx_safety_report.fk_apat_rec_id
    AND agx_safety_report.case_identifier_no IS NOT NULL
    AND agx_drug_indication.drugindication IS NOT NULL
    AND agx_drug.medicinalproduct =
    REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
    In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.
    Ex: ABC's or just ABC.
    The query has to support both single quote and without quote in it.
    I wanted everything to be done in the sinlq query on not a PL/SQL Block.
    Please help me ASAP

    kumar0828 wrote:
    <font color="#FF0000"> ... </font>
    REPLACE (agx_drug.medicinalproduct, '''', '''') AS "MEDICINALPRODUCT",
    <font color="#FF0000"> ... </font> <pre>
    REPLACE (agx_drug.medicinalproduct, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
    </pre>
    With the above statement you are replacing single quote with another single quote
    (which is nonsense).
    <font color="#FF0000"> ... </font>
    AND agx_drug.medicinalproduct = REPLACE ('*-qVAGX_DRUG.MEDICINALPRODUCT*', '''', '''')
    In the above query last line '-qVAGX_DRUG.MEDICINALPRODUCT' is a dynamic variable which may or may not contain the single quotes.This is not a dynamic variable but a string value:
    <pre>
    AND agx_drug.medicinalproduct =
    REPLACE (<font style="background-color: #FF3D55">'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
    </pre>
    *-qVAGX_DRUG.MEDICINALPRODUCT* <pre>
    AND agx_drug.medicinalproduct =
    REPLACE (<font style="background-color: #FF3D55">q'*</font>-qVAGX_DRUG.MEDICINALPRODUCT<font style="background-color: #FF3D55">*'</font>, '<font style="background-color: #E7FA6B">''</font>', '<font style="background-color: #E7FA6B">''</font>')
    </pre>
    -qVAGX_DRUG.MEDICINALPRODUCT q'[a]' => a
    q'[a']' => a'
    q'[a'']' => a''
    q'*a*' => a
    q'*a'*' => a'
    q'*a''*' => a''
    A variable also cannot contain a dot (.):
    <pre>VAGX_DRUG<font style="background-color: #FF3D55">.</font>MEDICINALPRODUCT</pre>
    Ex: ABC's or just ABC.
    The query has to support both single quote and without quote in it.
    I wanted everything to be done in the sinlq query on not a PL/SQL Block.
    Please help me ASAPTry this:
    <pre>
    AND agx_drug.medicinalproduct = MY_VARIABLE
    </pre>

  • Bug Report: #SQLERRM_TEXT# in Process Error Message

    According to the Online Help for "Process Error Message" #SQLERRM_TEXT# should be replaced by "Text of error message without the error number". But it isn't.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

    I created an after submit PL/SQL process:begin
      raise_application_error(-20000,'custom error text');
    end;In the process error message attribute, I put:
    My error message with #SQLERRM_TEXT# in it.
    I submit the page and see this page:ORA-20000: custom error text
         Error      My error message with custom error text in it.
    OKScott

  • How to show a database trigger error message as a notification on a page

    I have a database with database triggers to ensure data integrity.
    If an insert or update does not comply to all the business rules, a database triggers raises an exception. When using Apex this exception is caught in the Error Screen, a separate screen, where the whole error stack is displayed.
    Does anyone know a way to display only the error in RAISE_APPLICATION_ERROR as a notification in the screen from which the transaction was initiated?
    Dik Dral

    Well, having had so little response, i had to figure it out myself ;-)
    Using Patrick Wolff's ideas from ApexLib I 'invented' a solution for my problem, that I would like to contribute to the community. I hope that it will come out a bit nicely formatted:
    Apex: Show Database Error Message in calling form
    The purpose is to show a neat error message in the notification area of the calling form.
    Default Apex show the whole error stack raised by a DB trigger in a separate error page.
    With acknowledgement to Patrick Wolf, I lent parts of his ApexLIB code to create this solution.
    <br./>
    Assumptions
    <ul><li>The error message is raised from a DB trigger using RAISE_APPLICATION_ERROR(-20000,’errormessagetext’).</li>
    <li>The relevant part of the error stack is contained within the strings ‘ORA-20000’ and the next ‘ORA-‘-string, i.e. if the error stack is ‘ORA-20000 Value should not be null ORA-6502 …’, than the relevant string is ‘Value should not be null’ .</li>
    <li>Cookies are enabled on the browser of the user </li>
    </ul>
    Explanation
    The solution relies heavily on the use of Javascript. On the template of the error page Javascript is added to identify the error stack and to extract the relevant error message. This message is written to a cookie, and then the control is passed back to the calling page (equal to pushing the Back button).
    In the calling page a Javascript onLoad process is added. This process determines whether an error message has been written to a cookie. If so the error message is formatted as an error and written to the notification area.
    Implementation
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js:
    <pre>
    var vIndicator = "ApexErrorStack=";
    function writeMessage(vMessage)
    {       document.cookie = vIndicator+vMessage+';';
    function readMessage()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    vPos = vCookieList.indexOf(vIndicator);
    // No cookie found?
    if (vPos == -1) return("empty");
    vStart = vPos + vIndicator.length;
    vEnd = vCookieList.indexOf(";", vStart);
    if (vEnd == -1) vEnd = vCookieList.length;
    vErrorStack = vCookieList.substring(vStart, vEnd);
    vErrorStack = decodeURIComponent(vErrorStack);
    // remove the cookie
    document.cookie = vIndicator+"; max-age=0";
    return(vErrorStack);
    function getElementsByClass2(searchClass,node,tag)
    var classElements = new Array();
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = newRegExp('(^|\\s)'+searchClass+'(\\s|$)');
    for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els[i];
    j++;
    return classElements;
    function processErrorText()
    var errorElements = new Array();
    errorElements = getElementsByClass2("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 )
    { errorText = errorElements[0].innerHTML;
    errorText = errorText.substr(errorText.indexOf("ORA-20000")+ 11);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    // errorElements[0].innerHTML = errorText;
    writeMessage(errorText);
    function show_message()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vErrorName = null;
    var vErrorMessage = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    // get errorStack
    vErrorStack = readMessage();
    if (vErrorStack == -1) return;
    // search for our message section (eg. t7Messages)
    var notificationArea = document.getElementById("notification");
    if (notificationArea != null)
    { notificationArea.innerHTML = '<div class="t12notification">1 error has occurred<ul class="htmldbUlErr"><li>' + vErrorStack + '</li></ul>'; }
    else
    { alert(vErrorStack); }
    </pre>
    This code is loaded as a static file in Application Express (no application associated).
    In both templates a reference to this code is added in the Definition Header section:
    <pre>
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    </pre>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="javascript">
    processErrorText();
    window.history.go(-1);
    </script>
    Back
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie and returns to the previous screen.
    The link to the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    The need for database driven messaging
    In some cases the need exists to process error messages in the database before presenting them to the user. This is the case, when the triggers return message codes, associated to error messages in a message table.
    This can be done by using a special Error Message Processing page in Apex.
    The error message page extracts the error message, redirecting to the Error Message Processing page with the error message as a parameter. In the EMP page a PL/SQL function can be called with the message as a parameter. This function returns the right message, which is written to a cookie using dynamically generated Javascript from PL/SQL. Than the contol is given back to the calling form.
    The redirect is implemented by location.replace, so that the error message page does not exist within the browsing history. The normal history(-1) will return to the calling page.
    Implementation of database driven messaging
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js already listed in a previous paragraph.
    In both templates a reference to this code is added in the Definition Header section:
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="Javascript">
    var errorText = null;
    function redirect2oracle()
    { window.location.replace("f?p=&APP_ID:500:&APP_SESSION.::::P500_MESSAGE:"+errorText); }
    function getError()
    { errorText = processErrorText(); }
    getError();
    redirect2oracle();
    </script>
    Go to Error Message Porcessing Page
    Back to form
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie.
    Then the EPM-page (500) is called with the extracted message as parameter.
    The link to the EPM page and the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    We need to create an Error Message Porcessing Page.
    Create a new page 500 with a empty HTML-region “Parameters”
    Create an text-area P500_MESSAGE in this region
    Create a PL/SQL region “Process Messages” with source:
    convert_message(:P500_MESSAGE);
    Create a PL/SQL procedure convert_message like this example, that reads messages from a message table. If not found, the actual input message is returned.
    CREATE OR REPLACE procedure convert_message(i_message in varchar2) is
    v_id number := null;
    v_message varchar2(4000) := null;
    function get_message (i_message in varchar2) return varchar2 is
    v_return varchar2(4000) := null;
    begin
    select msg_text into v_return
    from messages
    where msg_code = upper(i_message);
    return(v_return);
    exception
    when no_data_found then
    return(i_message);
    end;
    begin
    v_message := get_message(i_message);
    // write the message for logging/debugging
    htp.p('Boodschap='||v_message);
    // write cookie and redirect to calling page
    htp.p('<script language="Javascript">');
    htp.p('document.cookie="ApexErrorStack='||v_message||';";');
    htp.p('window.history.go(-1);');
    htp.p('</script>');
    // enter return link just in case
    htp.p('Ga terug');
    end;
    Note: The way the message is converted is just an example
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    Message was edited by:
    dickdral
    null

  • You do nor have sufficient privledges error message when upgrading to Firefox 5 but am an administrator

    Using older Intel iMac 24": Tried to update 3.6 to 5.0 but after dragged Firefox into Applications image and clicking that I wanted to replace older version- following error message
    "The operation cannot be completed because you do not have sufficient privledges for some of the items."
    However I am the administrator and was using the adminustrator's account. I then closed all other accounts, restarted and tried again with same result.

    In such a situation, the best thing to do is to perform a clean install:
    # Download a new copy of Firefox 5.0 from http://www.mozilla.com/en-US/firefox/all.html
    # Move the current Firefox from ''Applications'' folder to the ''Trash''.
    # Install Firefox 5.0 that you have just downloaded. For instructions, see [[Installing Firefox on Mac]].
    <BR>Your bookmarks and other personal data is stored in the Firefox [[Profiles|Profile]] folder and will not be affected by these steps.

  • Weird error message from oc4j with EntityBean

    We have an J2EE application written originally to run on Orion 1.4.5.
    We have decided to try to port this to oc4j and the version we are using is 1.0.2.2
    There is some minor reconfiguration issue but nothing really major.
    All the servlet, jsp, and stateless session EJB runs without any problem.
    However, all the CMP EntityBean doesn't seem to like their new home.
    During deployment, the container will complaints about every single EntityBean with error message like the following:
    JavaApplication_EntityBeanWrapper33.java:358: Exception java.sql.SQLException is never thrown in the body of the corresponding try statement.
    catch(java.sql.SQLException e)
    JavaApplication is one of our CMP EntityBean and the Wrapper is supposingly created automatically by the container at deployment time.
    Has anyone encountered this before? Any work around/solutions?
    Thanks in advance
    Andrew
    null

    gday Andrew -
    I believe that this is caused by setting the attribute exclusive-write-access=false in the orion-ejb-jar.xml file for your EJBs.
    This is a known OC4J problem: a bug has been logged and it's been fixed here. The next minor release of OC4J will contain the fix for this.
    In the meantime as a workaround removing the exclusive-write-access=false attribute from the orion-ejb-jar.xml files for your beans should get you going.
    cheers!
    -steve.
    null

Maybe you are looking for