Restore when exception management

Hello

I'm trying to handle errors between each DML statements. When the code runs and it fails between the DML and half of the tables are engaged and gives me the unexpected result.

Please let me know how to avoid this?

Each DML statement must be written with each block error handling? or otherwise better than this using savepoint?

Start

Insert instruction 1;

commit;


Insert the 2 declaration;

commit;


Update statement 1

commit;


Remove the statement 1;

commit;

EXCEPTION

WHEN DUP_VAL_ON_INDEX THEN

proc_stat_util.write_msg ('E', ' constraint Unique error: Please check if a file is there to ' | v_tablename |) 'table');

raise_application_error (-20001, ' constraint Unique error: Please check if a file is there to ' | v_tablename |) 'table');

WHILE OTHERS THEN

ROLLBACK;

RAISE_APPLICATION_ERROR (-20001, "ORACLE ERROR: ' |") DBMS_UTILITY. FORMAT_ERROR_STACK);

End;

Thank you very much in advance

user12093849 kirjoitti:

I'm doing the several DML statements (25 DML statements within a procedure) one after the other. When one of the DML fails, he must get out all of the code without committing the previous executed the DML statements. But the above is not what is expected.

Thank you

I suggest you do not commit or rollback in your business procedures or functions other than logging in a separate transaction, called autonomous_transaction.

How you never know what caused commit when you have dozens of program here and there. What happens if you need for any operation restoration and it is called the old procedure, which make and you do not remember or know that (because the other developer put there).

That's all, there is no way back and the current restore operation. Data are now inconsistent and it is severe bug and against the basic principle of data base.

So let this customer of your commit or rollback NOT business blocks (procedures/functions). Of course that the client may be a procedure or a function. But he must be separated from your building blocks of business and is usually a single program. It is in a pattern of façade of sense.

Other methods are the transaction context that implement application servers and it is decided on commit or rollback. He (pl/sql) is no reason never commit or rollback except in autonomous_transaction.

It's more about a design problem. These operations must be designed correctly, then you can do the pl/sql code that is modular and easy to maintain and that 'client' contains commit or rollback so that your data is in a consistent state in the database after the commit or rollback.

Tags: Database

Similar Questions

  • How to properly code for exception management?

    Hey you wonderful people you

    I have a quesiton on how to correctly code in PL/SQL for exception management. Here is my code below, I was told that how I use in my script of exception handling is simply not true.

    Can someone please adjust the section where I use the management of exceptions and show me what is the appropriate way to deal with exceptions.

    Here is the table creation script, so you can see what how the script fills the table DYNAMIC_COUNTS.

    --------------------------------------------------------------------------------------------------------------------------

    CREATE TABLE DYNAMIC_COUNTS

    (VARCHAR2 (30 BYTE) "T_OWNER",

    VARCHAR2 (30 BYTE) "T_TABLE_NAME."

    VARCHAR2 (30 BYTE) "T_COLUMN_NAME."

    NUMBER OF 'FND_PATTERNS');

    Now, here's the script:

    ------------------------------------------------------------------------------------------------------------------------

    Set serveroutput size unlimited
    run the DBMS_OUTPUT. ACTIVATE (buffer_size = > NULL);

    DECLARE

    TYPE nt_tab IS TABLE OF dynamic_counts % ROWTYPE;

    v_nttab nt_tab: = nt_tab();

    FND_LOOK INTEGER.

    v_incr NUMBER: = 0;

    ------------------------------------------------------------------------------------------------------------------------

    BEGIN

    FOR t IN (SELECT master, table_name, column_name

    From all_tab_columns

    Owner WHERE = UPPER ('& SCHEMA_NAME'))

    ------------------------------------------------------------------------------------------------------------------------

    LOOP

    BEGIN

    EXECUTE IMMEDIATE ' with an ACE (select case when REGEXP_LIKE (' | t.column_name |))

    -This search 1 letter and 12 figures-
    ', "^ ([[: alpha:]] |) [[: alpha:]] ({3}) [0-9] {12} $")



    then "match"

    another "no matches found" end up as output of ' | t.Owner | '.' || t.table_name | ')

    Select count (*) in a where a.output = "Match Found" clause '


    IN FND_LOOK;


    ------------------------------------------------------------------------------------------------------------------------
    IF FND_LOOK > 0 THEN

    v_incr: = v_incr + 1;

    v_nttab. EXTEND;

    v_nttab (v_incr) .t_owner: = t.owner;

    v_nttab (v_incr) .t_table_name: = t.table_name;

    v_nttab (v_incr) .t_column_name: = t.column_name;

    v_nttab (v_incr) .fnd_patterns: = FND_LOOK;

    END IF;

    ------------------------------------------------------------------------------------------------------------------------
    / * This is for DBMS output, thus we have 2 different ways, one can see the results in the table dynamic_counts
    and in the dbms_output
    */


    IF FND_LOOK > 0 THEN


    Dbms_output.put_line (t.owner |) '.' || t.table_name | ' ' || t.column_name | ' ' || FND_LOOK);



    END IF;


    ------------------------------------------------------------------------------------------------------------------------

    / * Exception handling * /.



    EXCEPTION

    WHILE OTHERS

    THEN

    Dbms_output.put_line)

    "Generic error".

    || t.column_name

    || "from".

    || t.Owner

    || '.'

    || t.table_name);

    END;

    END LOOP;

    ------------------------------------------------------------------------------------------------------------------------

    FORALL i IN 1.v_nttab. COUNTY

    INSERT INTO dynamic_counts (t_owner,

    t_table_name,

    t_column_name,

    fnd_pattens)

    VALUES (v_nttab (i) .t_owner,

    v_nttab (i) .t_table_name,

    v_nttab (i) .t_column_name,

    v_nttab (i) .fnd_patterns);

    COMMIT;

    END;

    /


    Isn't there. In the statement in the EXCEPTIONS section dbms_output.

  • common code in oracle exception Manager

    Hi all

    Here is the situation where I'm stuck...
    The current code handles all errors as shown below:
    WHILE OTHERS
    THEN
    IF cur_hdr % ISOPEN
    THEN
    CLOSE Cur_hdr;
    END IF;

    IF cur_det % ISOPEN
    THEN
    CLOSE Cur_det;
    END IF;

    ECODE: = SQLCODE;
    emesg: = v_trace_str | SQLERRM;
    SM_CONTROL_PKG.
    handle_db_error (v_package_name |) '.' || v_procedure_name,
    emesg,
    v_trace_str,
    (TRUE);
    V_RETVALUE: = 1;
    ROLLBACK;
    end;


    Now, I was asked to introduce an error more, it is a user-defined error.
    so I defined
    no_detail_for_header_ex EXCEPTION;

    In my code, I say,
    Open the cursor in the header
    Open detail slider - there no line

    So I say
    v_trace_str: =' no details for header-ERROR '
    Rossanna no_detail_for_header_ex;

    But in part, exception management
    I say,

    When no_detial_for_header_ex then
    IF cur_hdr % ISOPEN
    THEN
    CLOSE Cur_hdr;
    END IF;

    IF cur_det % ISOPEN
    THEN
    CLOSE Cur_det;
    END IF;

    ECODE: = SQLCODE;
    emesg: = v_trace_str | SQLERRM;
    SM_CONTROL_PKG.
    handle_db_error (v_package_name |) '.' || v_procedure_name,
    emesg,
    v_trace_str,
    (TRUE);
    V_RETVALUE: = 1;
    ROLLBACK;


    If you can see, the code is the same.
    close cursors and call the handle_db_error.

    I don't want to code the same thing again.
    Here, errors are different, but handled the same way. only the trace_str varies.

    I want to write something like
    When no_detial_for_header_ex or other PEOPLE can
    same code.

    is this possible with others.
    or any other suggestions.

    Thnaks in advance.

    Sure. Just declare the parameters in your cursor, then move them during the call of loop.

    cursor my_cursor (my variable)
    is
    select .... from .... where column = my variable;
    
    for cursor_rec in my_cursor (my value)
    loop
       ...
    end loop;
    

    A google for cursor for loop syntax should clear up any questions. Consider reading the Oracle pl/SQL and documentation.

  • When the Manager of the custom function in a configuration of link file gets error?

    The question she get error when the Manager of the custom function in a config file in the plan to include the link.
    When she went to join the custom function Manager in the debugger, everything is OK.

    <? XML version = "1.0" encoding = "utf-8"? >
    < configuration >
    < custom function platform = "DotNet".
    library-path="G:\RB1\Include\CustomFunctions.dll".
    Class="Viking.CustomFunctions.CustomFunctions"/ >
    < / configuration >

    THS, category and path is correct.
    So is there any problem for < custom function platform = "DotNet"?

    OPA version 10.2

    OPA error message translated from the Germany into English: Exception has been thrown by the target of a call

    In general, you should not give the full path of the custom function, it should be rather in relation to the project include file.

    for example:

    and then make sure that the CustomFunctions.dll file is copied into the project folder until the project is built.

    In addition, if you use 10.2 for a new project, the mechanism that you use is now replaced. An extension of the custom function is the new thing, and it will look much nicer when it is used in the rules. Refer to the section 'Write a Custom function Extension' in aid of developer for more information.

  • Alerts when a managed device is in offline mode?

    OME can be configured to send an alert message when a managed device is offline for a period of time or number of attempts to vote?

    We have branches who have lost the power of building recently and we would like to be alerted when these managed servers are offline.

    Thank you

    Brent

    Hi Brent,

    When OME is not able to reach a server in the status survey, OME automatically generates an internal alert to say that the system is broken. All you have to do is to go to the preferences page > parameters alerts and make sure that enable state alert internal connection. Point to note, it is enabled by default.

  • Hello, I'm willing to give up my bundle of photography (Photoshop + Lightroom) project. I tried to do if however the plan itself does not appear here, be as creative cloud storage and on that there do not cancel option when you manage the plan. Its defini


    Hello, I'm willing to give up my bundle of photography (Photoshop + Lightroom) project. I tried to do if however the plan itself does not appear here, be as creative cloud storage and on that there do not cancel option when you manage the plan. Its really here because I'm still charged monthly for it. Any cancellation help please?

    Cancel see answer #1 in https://forums.adobe.com/thread/2023066 - includes a link to Chat from Monday to Friday

    -or directly at this link https://helpx.adobe.com/creative-cloud/help/cancel-membership.html

  • The search bar has no motor; then when I 'manage', basics like google are not available (probably because it should be there by default). Help!

    I tested each beta without any real problems. Then, when I installed 4b 11, I tried to use the search bar, and it wouldn't work. I clicked on the menu drop down and realized that all the engines had disappeared. So, I went to "manage search engines" and confirmed that none have been installed. The problem is, when I click on "get more search engines," I can only find variations on the engines real I want..., google, yahoo, etc. I'm guessing that because it should be there as part of the software? I have now 4.0RC, and the same problem exists. Please help, you have my gratitude!

    1. Click the icon to search on the search bar engine
    2. Open "manage search engines".
    3. Click on "Restore default settings"

    You can also try to delete the search.sqlite and search.json files in the Firefox profile folder

  • Dv6730ed restore HP Recovery Manager

    Hi you all at the community of HP,.

    For some reason any HP dv6730ed of my daughter (2008) lost it's recovery manager on the D: drive and now there is an urgent need to reset the laptop to its factory settings, due to virus etc...

    Repeatedly pressing F11 at startup will not start recovery because - as I wrote already - D: drive was erased.

    Is there a possibility to restore this recovery on this drive Manager?

    HP6730ed, Intel Core Duo CPU, 3 GB, 250 GB HD

    Thanks to afvance,

    Jim

    You are the very welcome, Jim.

    That's right, yes you do a Vista startup disk, and then install W8.

    You may need to use the menu advanced options of drive to install Vista.

    But you need to install.

    I installed Vista of W8 on a test PC when I was testing the W8 preview.

  • Failed to create system restore point exception exception c:\windows\system32\shell32.dll,control_rundll,"c:\windows\system32\sysbm.cpl",system

    Original title: I can't do a restore point.

    I get exception c:\windows\system32\shell32.dll,control_rundll,"c:\windows\system32\sysbm.cpl",system what can I do?

    This has happened for a very long time.

    Does really say '... sysdm.cpl "?"

    Is that what the text complete and accurate of what the message said exactly?  (there is no sysbm.cpl in XP, but there's a sysdm.cpl).

    What happens if you click on start, run and enter in the box:

    sysdm.cpl

    Click OK - the system properties box opens?

    What happens if you click on start, run and in the type box (exactly):

    %SystemRoot%\System32\restore\rstrui.exe

    Click OK - is the open window of the system restore?

    What is exactly the process (step by step) you are using when you try to create the restore point and when in the process you see this message?

    I think it's a miracle that the Microsoft support engineer can provide a link to an article when the error message report you is a little out of whack and articles doesn't mention your error message at all.  It's real good troubleshooting or clairvoyance!

    You should also tell us a little about your system:

    Since the Microsoft Answers forum does not have any kind of information system request when a new question is asked, we know absolutely nothing about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    What do not you think that you should see?

    If the system works, what do you think might have changed since the last time it did not work properly?

  • save point restore activity except

    Hi all

    jdev version - 11.1.1.7

    I have created example for implicit savepoints. I am able to store points of database based on the connected user to backup.

    now when I try to get back them on under the scenarios that I get

    oracle.jbo.AlreadyLockedException: Houston-26030: unable to lock the file, another user owns the lock.

    I have 2 pages in stubborn tf. principal and hand update I select save point and click on restore to update the page and restore save point.

    Scenario 1) if I click the page 2 (updated) back button I go back to the home page and if I try to restore save point just this problem.

    Scenario 2) if I close the browser and connection and try to recover save point this problem occurs.

    But if log out me of the application and sign in again, then everything works fine.

    can anyone help on this?

    Thank you

    Hello

    Try this,

    1 change the mode of locking in the App to "Optimistic" fi module is not.

    2. your bean managed must implements Serializable.

    Thank you

    Gopi

  • Package exception management

    Hi all

    I have a package like
    create package test_lonely as
    
    .....variables
    procedure procedure1;
    end;
    similar to package body
    procedure procedure1 as
    begin
    procedure2();
    procedure3();
    end;
    + DDL for procedure2 and 3
    where should I place the exception block? It should can only "while OTHERS"

    (1) as it has been said, you almost never want to have an exception for WHEN OTHERS handler anywhere in your code.
    (2) as has already said, if you really want to have a WHEN OTHERS exception handler, the exception handler must include a statement of RECOVERY. The exception handler you posted will swallow the exception, check the error stack and do nothing to inform the appellant that an error has occurred while the appellant has no way to know if the call succeeded or failed.
    (3) as a general rule, you should only be catch the exceptions that you can manage wisely. All others can spread to the appellant.
    (4) you put not managers of exceptions in the package body. You put them in any procedure (s) in the package that you want to catch the errors. A package is just a wrapper to contain several functions and procedures.

    If you want to catch exceptions in procedure1, for example

    procedure procedure1 as
    begin
      procedure2();
      procedure3();
    exception
      when some_expected_exception
      then
        do_something_useful_with_the_exception
    end;
    

    Justin

  • Question about exception management

    DB version: 10.2

    We have several procedures in a package. All exception handling procedures be made as below
    when others then
           dbms_output.put_line(sqlerrm);
           raise_application_error(-20002, sqlerrm);
    end mystoredproc;
    Lets say I have A, B, C and D lined up for execution of procedures. While running, what happens if procedure B has encountered an error and is managed by raise_application_error thingy, it will stop the execution of other procedures C and D as well?

    John_75 wrote:

    We have several procedures in a package. All exception handling procedures be made as below

    Then all your exception handling procedures are flawed.

    The results of PL/SQL engine in an exception explicitly being raised with a unique error code. Your exception handlers that take and change this exception in an error of-20002 code empty.

    It's downright put silly to deal with exceptions.

    There are 3 fundamental reasons to deal with an exception.

    (1) it is not an error of the company. For example to get a NO_DATA_FOUND for a function of product disc0unt is not an error and simply means that the product is not disc0unted. In this case, the exception is removed and applied relevant business logic.

    (2) the error relates to the very specific business logic/rules and can be transformed into a very useful application error. For example, if an DUP_VAL_ON_INDEX exception for this specific code means company error "+ product category already exists + ' and the code returns a unique error code and a message for it.

    (3) protection of resources. For example, a LOB Locator was created and must be released if there is an error, otherwise there will be resource leaks. So, the exception is caught, the resources released (or app error log update, etc.) - after which the exception is relaunched.

    If you can not check one of these 3 reasons for the existence of an exception (in any programming language) handler, then you are most likely all wrong exception.

  • FOR exception management loop

    Given the following code:
    for x in my_cursor loop
        begin
            <<stmt_1>>
            <<stmt_2>>
        exception
            when others then
                <<log_error>>
        end;
    end loop;
    Say there are 5 x in my_cursor. On the element x 3, stmt_1 works fine but stmt_2 throws an exception. I would like to restore ONLY the work done on x 3 (in this case, stmt_1), then continue the loop of the next element, x 4. Can this be achieved with a combination of backup/restore point?

    In this particular case, I would suggest that you follow the third example I posted where you stand on the core of your loop in a procedure such that you change only the values of a and b If your insert succeeds, that is

    CREATE OR REPLACE PROCEDURE proc_name( p_x IN NUMBER, p_a IN OUT NUMBER, p_b IN OUT NUMBER )
    AS
      l_tmp_a NUMBER;
      l_tmp_b NUMBER;
    BEGIN
      SAVEPOINT s1;
      l_tmp_a := p_a + p_x;
      l_tmp_b := 1/(6-l_tmp_a);
      INSERT INTO test_tbl VALUES( l_tmp_a, l_tmp_b );
      p_a := l_tmp_a;
      p_b := l_tmp_b;
    EXCEPTION
      WHEN <>
      THEN
        ROLLBACK TO SAVEPOINT s1;
    END;
    

    You can, of course, have the same local variables of the TMP in your original code. Or you could replicate the calculations, i.e.

    for x in 1..5 loop
    begin
      savepoint s;
      insert into test_tbl values(a+x,1/(6-a));
      a := a+x;
      b := 1/(6-a);
    exception
      when others then
        rollback to savepoint s;
    end;
    

    Justin

  • Service Health Dashboard OSB tab broken when a managed server is down

    I closed one of the servers managed in my OSB three members 10.3.1 cluster to load test the configuration reduced, and who broke the "health services" tab on the dashboard console OSB.

    The problem is that, with the mgd1 server close (one marker of Singleton's ear is deployed to, if it matters), in the Dashboard, the console of the OSB, in the 'Health Service' tab is broken. I get the warning message "Unable to get data from the server settings" at the top of the page every time I go to the dashboard. I can't even look at the screens for the individual (mgd2, mgd3) servers that are running. I get the following in the log error when you try to access the health service for the cluster services, or even if I try to get the health services in one of the two remaining members of the group individually:

    + # < 8 April 2010 11:00:02 CEST > < error > < AlertLog > < nj09mhm0033.edmz.mcgraw - hill > < SS_ESB_Admin > < ExecuteThread [ASSET]: '0' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <><>< 1270782002573 > < BEA-000000 > < WLDFAccessRuntimeMBean is not available for the server SS_ESB_mgd1 > +.

    In addition, as part of the load test procedure, I need to collect statistics of the proxy service line performance and business. To do this, I wrote the JMX code called off soapUI scripts to reset statistics on these services before the race, and then collect the statistics after the end of the race. the code connects to the server administrator. This is also broken when the server mgd1 is down.

    I get the error below in an attempt to collect statistics of the bunch of the administrator of the server from the JMX code. This error is unrecoverable, and no statistics back the rest of the pole either. (you can ignore all the groovy stuff in the stack trace, it's nested Exceptions that are more interesting).

    Does anyone have an idea on what is happening and how to fix it? I would have thought that the DomainService MBean Runtime would be able to intercept and to handle an Exception to this, if one of the managed servers have declined and gathering statistics for the part available in the cluster, but it seems that this is not the case.

    TIA for any help.

    / Steve Elkind

    java.lang.reflect.UndeclaredThrowableException
    to $Proxy6.getBusinessServiceStatistics (Unknown Source)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getAndResetStatsForMonitoredBizService(ServiceStatsRetriever.java:193)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getStatsForMonitoredBizService(ServiceStatsRetriever.java:142)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ GetAndResetStatisticsTask.run (ServiceStatsRetriever.java:652)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ GetAndResetStatisticsTask.getStats (ServiceStatsRetriever.java:619)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getStats(ServiceStatsRetriever.java:779)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ getStats.call (unknown Source)
    at Script1.sleepGetStats (Script1.groovy:75)
    in Script1$ sleepGetStats.callCurrent (unknown Source)
    at Script1.runBenchMarkTest (Script1.groovy:104)
    in Script1$ runBenchMarkTest.callCurrent (unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:163)
    at Script1.run (Script1.groovy:152)
    at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest.runSetupScript(WsdlLoadTest.java:915)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner.start(WsdlLoadTestRunner.java:102)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest.run(WsdlLoadTest.java:418)
    to com.eviware.soapui.impl.wsdl.panels.loadtest.WsdlLoadTestDesktopPanel$ RunLoadTestAction.actionPerformed (WsdlLoadTestDesktopPanel.java:424)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ ServiceDomainMBeanInvocationHandler.invoke (ServiceStatsRetriever.java:567)
    ... more than 46
    Caused by: com.bea.wli.monitoring.MonitoringException: [control Runtime:473057] could not get services because of the java.rmi.UnknownHostException statistics: could not discover the URL of administration for the server 'SS_ESB_mgd1 '.
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsForServices(ServiceDomainMBeanImpl.java:967)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getServiceStatistics(ServiceDomainMBeanImpl.java:802)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getBusinessServiceStatistics(ServiceDomainMBeanImpl.java:366)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:255)
    to weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$ 16.run(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:445)
    at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:65)
    to weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$ 16.run(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:445)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    in weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$ $10 1.run(AuthenticatedSubjectInterceptor.java:582)
    to weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$ 10.run(AuthenticatedSubjectInterceptor.java:580)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:573)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:307)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at $200 (RMIConnectionImpl.java:72) javax.management.remote.rmi.RMIConnectionImpl.access
    to javax.management.remote.rmi.RMIConnectionImpl$ PrivilegedOperation.run (RMIConnectionImpl.java:1264)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.rmi.UnknownHostException: could not discover the URL of administration for the server 'SS_ESB_mgd1 '.
    at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:175)
    at com.bea.wli.sb.util.server.AggregatorUtils.getAggregatorServerAdminURL(AggregatorUtils.java:105)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsRetrieverMBean(ServiceDomainMBeanImpl.java:2036)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsForServices(ServiceDomainMBeanImpl.java:933)
    ... 35 more
    java.lang.reflect.UndeclaredThrowableException
    to $Proxy6.getBusinessServiceStatistics (Unknown Source)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getAndResetStatsForMonitoredBizService(ServiceStatsRetriever.java:193)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getStatsForMonitoredBizService(ServiceStatsRetriever.java:142)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ GetAndResetStatisticsTask.run (ServiceStatsRetriever.java:652)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ GetAndResetStatisticsTask.getStats (ServiceStatsRetriever.java:619)
    at com.mgh.im.esb.jmxutils.ServiceStatsRetriever.getStats(ServiceStatsRetriever.java:779)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ getStats.call (unknown Source)
    at Script1.sleepGetStats (Script1.groovy:75)
    in Script1$ sleepGetStats.callCurrent (unknown Source)
    at Script1.runBenchMarkTest (Script1.groovy:104)
    in Script1$ runBenchMarkTest.callCurrent (unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:163)
    at Script1.run (Script1.groovy:152)
    at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest.runSetupScript(WsdlLoadTest.java:915)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner.start(WsdlLoadTestRunner.java:102)
    at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTest.run(WsdlLoadTest.java:418)
    to com.eviware.soapui.impl.wsdl.panels.loadtest.WsdlLoadTestDesktopPanel$ RunLoadTestAction.actionPerformed (WsdlLoadTestDesktopPanel.java:424)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to com.mgh.im.esb.jmxutils.ServiceStatsRetriever$ ServiceDomainMBeanInvocationHandler.invoke (ServiceStatsRetriever.java:567)
    ... more than 46
    Caused by: com.bea.wli.monitoring.MonitoringException: [control Runtime:473057] could not get services because of the java.rmi.UnknownHostException statistics: could not discover the URL of administration for the server 'SS_ESB_mgd1 '.
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsForServices(ServiceDomainMBeanImpl.java:967)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getServiceStatistics(ServiceDomainMBeanImpl.java:802)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getBusinessServiceStatistics(ServiceDomainMBeanImpl.java:366)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:255)
    to weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$ 16.run(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:445)
    at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:65)
    to weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$ 16.run(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:445)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
    in weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$ $10 1.run(AuthenticatedSubjectInterceptor.java:582)
    to weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$ 10.run(AuthenticatedSubjectInterceptor.java:580)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:573)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:307)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at $200 (RMIConnectionImpl.java:72) javax.management.remote.rmi.RMIConnectionImpl.access
    to javax.management.remote.rmi.RMIConnectionImpl$ PrivilegedOperation.run (RMIConnectionImpl.java:1264)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.rmi.UnknownHostException: could not discover the URL of administration for the server 'SS_ESB_mgd1 '.
    at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:175)
    at com.bea.wli.sb.util.server.AggregatorUtils.getAggregatorServerAdminURL(AggregatorUtils.java:105)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsRetrieverMBean(ServiceDomainMBeanImpl.java:2036)
    at com.bea.wli.sb.management.monitoring.ServiceDomainMBeanImpl.getStatisticsForServices(ServiceDomainMBeanImpl.java:933)
    ... 35 more

    Try closing the second node of your cluster. That should help you. Sounds weird? Well, I think that this application with statistical data (aggregator?) are deployed on the first node in the cluster. If you stop it, you have all the statistics even if your second node is running.

    I don't like this "not so high available" feature of the OSB.

  • The ViewObject exception management

    I use ADF w/BC in JDeveloper 10.1.3.3.

    I'm new to ADF. The previous programming experience using other languages, I'm used to catching exceptions when executing an sql query. When I do an executeQuery on a ViewObject, how intercept all exceptions. For example, if the database is inaccessible, I would expect executeQuery to fails and throws an exception.

    Thank you

    John

    Hello

    refer to the documentation

    1. the error thrown when the database is not available

    http://download-UK.Oracle.com/docs/HTML/B25947_01/deployment_topics013.htm#CIHBIHCI

    2. error in the ADF management

    http://download-UK.Oracle.com/docs/HTML/B25947_01/web_val008.htm

    Frank

Maybe you are looking for

  • Cannot remove the bing.vc start page.

    I have tried everything I can find to stop the bing.vc to open start page in firefox version 39 and so far nothing has worked. I can't find a reference to in about: config. firefox update did not help; No Add-ons refer to him and protect the pipes or

  • dv9700 raid

  • Installation upgrade memory in the new laptop (E8730w)

    I just got my new laptop and was dismayed to see that I obviously have to install the 2 GB memory upgrade that I ordered.  When I'm ready to install it, I will contact HP technical support.  I'm interested in the big picture right now.  The laptop ha

  • Brother laser printer worked fine, now does not print. ????

    The strange thing is that it printed fine a few days ago.  I don't think that I've changed something such as the registry or Services.msc and the print spooler has started in the Services.  I try to print a test page and it comes is in the queue and

  • my printer HP Photosmart Prem C410 does not start

    Hello I just got my HP Photosmart Prem C410 series and a few days ago it was printing leaves for school. I try of the starts today and it won't even turn on. I don't know what the problem... does anyone else have this problem?