How to approach/ handle Db triggers error messages

hi folks,
-jdev 11.1.1.5.0 - adfbc
i had a dbtable. which holds some dbtriggers
AFTER INSERT OR UPDATE ON sometable FOR EACH ROW
RAISE_APPLICATION_ERROR(-20942, 'Message id');when it vialotes the condition means this raise app error will thrown.
ok fine.
while coming to adf, At the time commiting records this trigger will fires. why it firing am vialoting the trigger. so firing..
you are vialoting the trigger :
some x,y trigger throw some raw db information.
so my need is how do i give understandable message to user.
thanks.

thanks sudip.
as you said i read out. and make it out.
but..
say as eg:
RAISE_APPLICATION_ERROR(-20942, 'MyError');what we are doing never we hard code the value,
insist of that we store error number and error description in a table using function we will retrieve that.
RAISE_APPLICATION_ERROR(-20942, 'some Application module id'); says as some Application module id as HRM,CRM
RAISE_APPLICATION_ERROR(-20942, 'HRM'); i guess that,you get me where am?
as per your post i followed i extract the Ora number and Application module id
s = message.substring(0, ind);
s1 = message.substring(4, 8);       it will stores s1 = 20942
s2 = message.substring(9, 14;       it will stores s2 = HRM
i would like to call a function here
func_some_name( s1 , s2);
the function will  return some value(error decription) it will pass to message.
return message. by the normal way. a1.jspx - a1.java. if i want to show function returned value in a1.jspx means i will call function from the bean. function will defined in AM, exposed through client interface.
Important thing is : AM function is Bounded with Jspx page with the help of Binding Layer(a1.pagedef).
ok fine.
here my scenario is:
if i define the function in AM and i exposed means. how would i call in this Errorhandler.java file ?. if am calling means it will throw NPE.
why it is throwing npe
Errorhandler.java is indepedent file it's associated Databinding.cpx
so my need : how would i call this function in Errorhandler.java.

Similar Messages

  • How to get rid of the error message we could not complete your iTunes store request?

    How to get rid of the error message we could not complete your iTunes store request?
    having this problem when trying to authorise an newly downloaded app in iTunes

    Based on the numerous posts regarding iTunes and the App Store, there appears to be an issue at Apple's end. Although Apple has not provided any indication on the cloud status page.
    Do not change your settings.
    Edit

  • How do I get rid of error message, "iTunes could not back up the iPad because an error occurred."

    During a recent syncing of my iPad and iTunes, I cancelled a sync during the backup step of the process.  Since then I whenever I sync the ipad I know get, "iTunes could not back up the iPad because an error occurred."
    I have reset my iPad and turned off the MacBook, still the message occurs.
    Can someone offer some advice on how to get rid of this error message?

    You can try deleting your backup. Launch Itunes on your Mac and go to iTunes>Preferences>Devices. Highlight the name of the iPad backup and select delete. Quit iTunes, restart your Mac and try to sync again.

  • How do I get past the error message Sign In Failed on my 2nd computer?

    How do I getr past the error message Sign In Failed on my 2nd computer? I have signed out, uninstalled, and reinstalled to no avail.

    So I thought: let's try the link Carolyn Samit suggested. So I got to Apple - Support - FaceTime to find information I already knew, about port forwarding I had already tried:
    443 (TCP)
    3478 through 3497 (UDP)
    5223 (TCP)
    16384 through 16387 (UDP)
    16393 through 16402 (UDP)
    What's the logic anyway of opening router ports that let my Wi-Fi devices through while refusing a LAN device? What have we got here? A firewall that only protects against cables?
    I guess Apple is too busy selling iPads to help a customer who's trying to use Apple software on an Apple machine.

  • How to  find out where sap error messages stored...

    How to  find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Hi,
    I also got the same message when that message no is not there
    E:SABAPDOCU:000 test 
    yours is S-type and message id ZY and message no 127
    127 is not there either change the no  or create the same
    Regards
    Shiva

  • How to find out where sap error messages stored in our system

    How to find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Are you interested in WDA messages ?
    The set a breakpoint in METHODS IN class CL_WDR_MESSAGE_MANAGER.
    Then use call stack (default desktop 2 in debugger) to see where message is added to message manager.
    regards
    phil

  • How do I fix an install error message 0x8007054f

    How do I fix an install error message 0x8007054f

    https://discussions.apple.com/thread/3029902?start=0&tstart=0
    old link may be broken new one right here
    http://support.microsoft.com/kb/946414
    Just wanted to make sure you understand that if you do have question, there are the odds someone already answered it, and it wasn't me.

  • Handler not defined error message

    Hello - I'm having difficulty with a custom handler I've
    created. Everything works well in authoring mode, but as soon as I
    try to create a projector and run it, I get a "Handler not defined"
    error message. The handler is used to query an sqlite database.
    Here's the code which sits in a linked cast movie script
    on startmovie
    set gDBInstance = new(xtra"sqlite")
    on mDBQuery gSqlstring
    gDBInstance.sqlite_open(the moviepath&"halloffame.db")
    gQuery_fetch_data = gDBInstance.sqlite_fetch(gSqlstring)
    gDBInstance.sqlite_close()
    end
    end startmovie
    The handler is called from a frame script as below:
    on enterframe
    gSqlstring = "SELECT file_location FROM mediaitem NATURAL
    JOIN category WHERE category = 'Equipment' ORDER BY mediaitem.name
    ASC"
    mDBQuery(gSqlstring)
    end enterframe
    I'm using Director 11 on Windows XP. I do have all of the
    sqlite xtras in an xtras folder next to the executable. Any
    thoughts on what I'm doing wrong??
    THX!
    Mike M

    I ran a couple test that were interesting, but first I need
    to address some bad coding practices.
    miken75,
    I see no reason to open and close a database with each query.
    Open it at the beginning of the program and close it at the end.
    You should always check for errors with every interaction
    with a database, including opening it.
    In your function "mDBQuery " you pass in a variable called
    "gSqlstring" and assign the returned data from the query to
    "gQuery_fetch_data". Neither one of these variables should be a
    Global. The whole point of the function is to pass in a temporary
    string and the function Returns query results. Do not use Globals
    in this situation.
    This is a bit nit-picky, but your function names should be
    verbs - some sort of action. "mDBQuery " is a noun. Something like
    queryDatabase, doQuery, fetchData, etc. would be better.
    A basic re-write of your startup code would be:
    global gDB
    on prepareMovie
    gDB = new(xtra"sqlite")
    Okay = gDB.sqlite_open(the moviepath&"halloffame.db")
    if Not Okay then
    alert("There was an error opening the Database")
    end if
    end prepareMovie
    on queryDB SqlString
    return gDB.sqlite_fetch(SqlString)
    end queryDB
    on stopMovie
    gDB.sqlite_close()
    end stopMovie
    Finally, "EnterFrame" is a really poor choice for an event
    that queries a database. "EnterFrame" is used when you need to do
    something many times a second, such as an animation. For a singular
    event like querying a database I suggest "prepareMovie",
    "startMovie", "beginSprite", "mouseDown", and "mouseUp".
    I'm just trying to improve your coding practices. Better
    code, means less bugs and going home early.
    To your problem:
    I tried a couple things. I placed some startup code and a
    function in an internal cast movie script and an "enterframe"
    behavior that calls the function in an external cast. I saved and
    published, and the executable comes up and gives the handler not
    defined error. This error is a Director thing. It has nothing to do
    with your code.
    If, however, you shut Director down and run the executable,
    then there is no error. This fact implies that when you try to run
    Director and the executable at the same time, then Director all
    ready has ownership of the external cast file and the executable
    therefore can not open it. Although, generally under that kind of
    circumstance you get an error message indicating that the file is
    in use by a different program. So, I don't know exactly what is
    happening here.
    I then moved the "startup" code into the external cast with
    the "enterframe" script and published. No error. Director and the
    executable run side by side just fine. Weird.
    Hope that helps.
    Randal.

  • How to modify display label in error message raised from capi?

    How to modify display label in error message raised from capi?
    qms_transaction_mgt.process_rule_violation
    ( p_br_name => 'BR_PBR_DEL006'
    , p_msg_code => 'PMS-00417'
    , p_display_label => display_label
    , p_table_name => 'pan_project_members'
    , p_table_rowid => get_rowid
    regards,
    marcel

    When you mean which columns are displayed, this is actually quite easy.
    Display_label will display by default the unique key columns, or if no unique key exists, the primary key. To overrule this behaviour, you have to specify the columns you want to display by assigning them a 'descriptor sequence'.
    For example, to display the ename on EMP warnings, assign descriptor sequence 10 to the EMP.ENAME column and regenerate the CAPI package.
    Jeroen van Veldhuizen

  • How can I get past the error messages that keep popping up when I try to download Flash player?

    How can I get past the error messages that keep popping up every time I try to download anything?

    Hi
    Could you please let us know more about the error messages that you got?
    The following page has information on the error messages: http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html
    Thanks,
    Sunil

  • How to stop execution after generating error message in an error handler?

    I am working on ALSB 3.0.I have a proxy consisting of 2 stages in a pipeline pair. I have error handlers for each of the stages. The first stage contains schema validation action. Whenever the schema validation fails,control should transfer to error handler.
    The error handler has a publish action and in request action I am calling an xquery transformation to generate error message.Publish action should publish message to a jms based business service configured. My questions are:
    1. After getting into the error handler, the first alert msg configured inside request action (of publish action) is generated.Subsequent actions to generate error xml message and to replace the contents of errorXml in $body are not executed.And so no error message is generated or published.
    2. I have also configured a reply with failure. Inspite of that,the control shifts to next stage in request pipeline and execution continues.
    Can anyone tell me where I need to do the corrections.
    Cheers.
    Edited by: arrajago on Jun 15, 2009 11:55 PM

    Got the answer.Generate error xml outside publish action.Replace action has to placed inside Publish's request action.To stop execution,use Reply action after Publish.

  • How can I cure/stop this error message on startup 'Exc in ev handle: TypeError: this.oRoot.enable is not a function'

    When starting Firefox 8.0, I get a '[JavaScript Application]' dialogue box with the above error message. When I click OK in dialogue box, Firefox then appears to start normally.
    What could be the cause, and how do I go about curing it?

    Duplicate - [https://support.mozilla.com/en-US/questions/896648 questions/896648]

  • How can I put all output error message into a String Variable ??

    Dear Sir:
    I have following code, When I run it and I press overflow radio button, It outputs following message:
    Caught RuntimeException: java.lang.NullPointerException
    java.lang.NullPointerException
         at ExceptionHandling.ExceptTest.actionPerformed(ExceptTest.java:72)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)Caught RuntimeException: java.lang.NullPointerException
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)I hope to catch all these error message into a String Variable such as StrErrorMsg, then I can use System.out.println(StrErrorMsg) to print it out or store somewhere, not only display at runtime,
    How can I do this??
    Thanks a lot,
    See code below.
    import java.awt.Frame;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.io.FileInputStream;
    import javax.swing.ButtonGroup;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    public class ExceptTest extends JFrame implements ActionListener {
        private double[] a;
      private JRadioButton divideByZeroButton;
      private JRadioButton badCastButton;
      private JRadioButton arrayBoundsButton;
      private JRadioButton nullPointerButton;
      private JRadioButton negSqrtButton;
      private JRadioButton overflowButton;
      private JRadioButton noSuchFileButton;
      private JRadioButton throwUnknownButton;
      public ExceptTest() {
        JPanel p = new JPanel();
        ButtonGroup g = new ButtonGroup();
        p.setLayout(new GridLayout(8, 1));
        divideByZeroButton = addRadioButton("Divide by zero", g, p);
        badCastButton = addRadioButton("Bad cast", g, p);
        arrayBoundsButton = addRadioButton("Array bounds", g, p);
        nullPointerButton = addRadioButton("Null pointer", g, p);
        negSqrtButton = addRadioButton("sqrt(-1)", g, p);
        overflowButton = addRadioButton("Overflow", g, p);
        noSuchFileButton = addRadioButton("No such file", g, p);
        throwUnknownButton = addRadioButton("Throw unknown", g, p);
        getContentPane().add(p);
      private JRadioButton addRadioButton(String s, ButtonGroup g, JPanel p) {
        JRadioButton button = new JRadioButton(s, false);
        button.addActionListener(this);
        g.add(button);
        p.add(button);
        return button;
      public void actionPerformed(ActionEvent evt) {
        try {
          Object source = evt.getSource();
          if (source == divideByZeroButton) {
            a[1] = a[1] / a[1] - a[1];
          } else if (source == badCastButton) {
            Frame f = (Frame) evt.getSource();
          } else if (source == arrayBoundsButton) {
            a[1] = a[10];
          } else if (source == nullPointerButton) {
            Frame f = null;
            f.setSize(200, 200);
          } else if (source == negSqrtButton) {
            a[1] = Math.sqrt(-1);
          } else if (source == overflowButton) {
            a[1] = 1000 * 1000 * 1000 * 1000;
            int n = (int) a[1];
          } else if (source == noSuchFileButton) {
            FileInputStream is = new FileInputStream("Java Source and Support");
          } else if (source == throwUnknownButton) {
            throw new UnknownError();
        } catch (RuntimeException e) {
          System.out.println("Caught RuntimeException: " + e);
          e.printStackTrace();
          System.out.println("Caught RuntimeException: " + e);
        } catch (Exception e) {
          System.out.println("Caught Exception: " + e);
      public static void main(String[] args) {
        JFrame frame = new ExceptTest();
        frame.setSize(150, 200);
        frame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            System.exit(0);
        frame.show();
    }

    yes, I update as follows,
    but not looks good.
    import java.io.*;
    public class UncaughtLogger implements Thread.UncaughtExceptionHandler {
        private File file;
        private static String errorMessage;
        public UncaughtLogger(File file) {
            this.file = file;
            //Thread.setDefaultUncaughtExceptionHandler(this);
        public UncaughtLogger(String str) {
            this.errorMessage = str;
            Thread.setDefaultUncaughtExceptionHandler(this);
        //@Override()
        public void uncaughtException(Thread t, Throwable e){
            try {
                log(e);
            } catch (Throwable throwable) {
                System.err.println("error in logging:");
                throwable.printStackTrace();
        private void log(Throwable e) throws IOException {
            PrintWriter out = new PrintWriter(new FileWriter(file, true));
            try {
                e.printStackTrace(out);
            } finally {
                out.close();
        private static UncaughtLogger logger = new UncaughtLogger(new File("C:/temp/log.txt"));
        private static UncaughtLogger logger2 = new UncaughtLogger(errorMessage);
        public static void main(String[] args) {
                String s1 = "Hello World!";
                s1 = null;
                String s2 = s1.getClass().getName();
                System.out.println(s1);
                System.out.println(s2);
                System.out.println("errorMessage =" + errorMessage);
    }

  • How to get order's detail error message

    Now, when I check order with t-code: crmd_order.
    I can see  error in  GUI :Item 10 Pricing error: Mandatory condition missing.
    But how can  I get the message with FM or other code?

    Hi Ping su,
    Check the function group 'CRM_MESSAGES' you will get bunch of function modules which deals with messages. In my scenario I had to look for a message in order lineitem and if that error message is present in the order I had to take further action. Here is what I did :
      DATA:ls_bal_s_msgidno  TYPE bal_s_idno,
           lt_bal_r_msgidno1 TYPE bal_r_idno,
           lt_bal_r_msgidno2 TYPE bal_r_idno,
           lt_msg_handle     TYPE bal_t_msgh.
      ls_bal_s_msgidno-sign = 'I'.
      ls_bal_s_msgidno-option = 'EQ'.
      ls_bal_s_msgidno-low-msgid = 'ZMESSAGES'.
      ls_bal_s_msgidno-low-msgno = 002.
      APPEND ls_bal_s_msgidno TO lt_bal_r_msgidno2.
      LOOP AT lt_orderadm_i INTO ls_orderadm_i.
    *   Check if the message is available in the log.
        REFRESH: lt_msg_handle.
        CALL FUNCTION 'CRM_MESSAGES_SEARCH'
          EXPORTING
            it_r_msgidno  = lt_bal_r_msgidno1
            iv_ref_object = ls_orderadm_i-guid
          IMPORTING
            et_msg_handle = lt_msg_handle.
        IF lt_msg_handle IS NOT INITIAL.
          lv_flag = 'X'.
          EXIT.
        ENDIF.
      ENDLOOP.
    Hope this will give you some idea to handle your scenario.
    Thanks,
    Vikash.

  • How can I get a SOAP Error message in ABAP ?

    Dear all.
    I'm trying to get SOAP Error message during XI Interface.
    I've got an Error ( T-code : sxi_monitor ) and I need to get the Error message and write to screen.
    I used
    CATCH CX_AI_APPLICATION_FAULT.
    CATCH CX_AI_SYSTEM_FAULT.
    but couldn't get the error message.
    The Error occured as below.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTSD0030' (structure 'stmt1'): java.sql.SQLException: FATAL ERROR: Column 'ORDER' does not exist in table 'ZTSD0030'</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I exactly need 'BOLD' style message.
    Any help is appreciated.
    Thanks!

    Hi,
      This is an application fault,
      error log clearly saying that''ORDER' does not exist in table 'ZTSD0030'.
      these are specific to interfaces, in order to handle those
    u need to configure apllication log at 'SLG1' t.code.
    i mean, u have to use following function moules to handle application log in ABAP Proxy .
    i.e
    APPL_LOG_WRITE_HEADER
    APPL_LOG_WRITE_MESSAGES
    APPL_LOG_WRITE_DB.
    warm regards
    mahesh.

Maybe you are looking for

  • Balance transfer from old recon a/c to new recon a/c

    Hello We have changed the vendor''s reconciliation account.....now we have to transfer the balance of open items....from old recon a/c to new one.......... ....what is the best way to do this....... regards

  • Presentation Director Monitor Drop Down Menus Blank

    I'm trying to get Presentation Director functioning properly, but there are a couple of screwy things going on: If I check the properties of the "Capture" profile, it has the resolution of external monitor incorrect. (1920 x 1200 Vs Captured 1024X768

  • IPhoto '08 compresses my photos

    I noticed this weekend that iPhoto 08 will automatically compress any photo that I make alterations to with the iPhoto 08 application by 50-70%. For example, I imported a 7 mb .jpeg file into iPhoto 08, adjusted the pic's temperature and then noticed

  • HT1267 iPhone Contacts content

    My iPhone displays duplicate contact groups. How can I delete the duplicates?

  • Dreamweaver CS5 and Wordpress

    I have been banging my head against a wall for quite a few days now, and desperately need some help. I have been creating a theme in WordPress using Dreamweaver CS5 and MAMP. All is going fine when suddenly my theme disappears in DW. I can still see