When the connection is lost and order expires an unhandled exception is thrown, pt 2

Initially the question was already asked here, but it is already archived... A bug was already open and is followed with #18336207 #18331763.

Managed ODP Driver Release 3, beta 2 was released last week and the bug persists. This fix will be included in the final version? Is it possible to expedite this fix (f.e. opening a case of pension)?

The bug can by reproduction the following TestMethod:

//18336207 : MANAGED ODP.NET PROVIDER THROWS UNHANDLED EXCEPTION
//18331763 : COMMAND TIME OUT CAUSES UNHANDLED EXCEPTION
[TestMethod]
public void UnhandledExceptionWhenConnectionIsLost()
{
    object unhandledException = null;


    AppDomain.CurrentDomain.UnhandledException += (sender, args) =>
    {
        unhandledException = args.ExceptionObject;
    };


    string connectionString = TestEnvironment.IntegrationTestUtilities.OdpDatabaseConnectionString;
    const string commandText = @"BEGIN
DBMS_LOCK.sleep(10);
END;";
    try
    {
        using (OracleConnection connection = new OracleConnection(connectionString))
        {
            connection.Open();
            using (OracleCommand command = connection.CreateCommand())
            {
                command.CommandText = commandText;
                command.CommandTimeout = 5;


                Task fakeNetworkTrouble = Task.Run(async () =>
                {
                    await Task.Delay(TimeSpan.FromSeconds(2));
                    //we won't take down the network for the test cases - closing the connection is enough...
                    connection.Close();
                });


                command.ExecuteNonQuery();
                fakeNetworkTrouble.Wait();
            }
        }
    }
    catch (Exception ex)
    {
        Console.WriteLine("This exception is ok ... : {0}", ex.Message);
    }


    //You likely won't get this far as the unhandled exception brings the runtime down...
    if (unhandledException != null)
    {
        Assert.Fail("Still happens : {0}", unhandledException);
    }
}

Although the Bug 18336207 is still in status "80 - pronounced internal development QA/Fix" - it seems it has been fixed in the final version 3 (v4.121.2.20141216)
(at least I can't reproduce anymore).

Thank you

Tags: Database

Similar Questions

  • I copy student PS CS6 which works fine except when I'm disconnected from online, why is this and what can I do to make this work if the connection is lost. In addition, everything will work OK if I update to Windows 8 for windows 10?

    I copy student PS CS6 which works fine except when I'm disconnected from online, why is this and what can I do to make this work if the connection is lost. In addition, everything will work OK if I update to Windows 8 for windows 10?

    Yes, Photoshop should work fine without the internet connection, as this is the standalone version.

  • How can I save by iPad 3 when the screen is black and nothing appears?

    How can I save my iPad in ITunes or iCloud 3 when the screen is black and nothing appears?

    Is the empty screen, because just the screen is broken, or is the iPad just dead? Have you tried a soft-reset/reboot it?

    At least you can see what you touch on the screen of the iPad, you cannot force a backup to iCloud.

    If the iPad still works and is connected to wifi, a backup should automatically happen (if iCloud backups are enabled) if it is connected and the locked screen.

  • What does it mean when I connect to Facebook and a pop-up out saying ' [JavaScript Application] error: jQuery ("#fb_menu_account", document) .attr ("href") is not defined?

    What does it mean when I connect to Facebook and a pop-up out saying ' [JavaScript Application] error: jQuery ("#fb_menu_account", document) .attr ("href") is not defined? I would like to know what I can do to solve this problem. The site will end up running slow. I tried to clear cookies and cache, but it does not work.

    URL of affected sites

    http://www.Facebook.com

    Fact is always happen in Mode without failure of Firefox. See questions to troubleshoot Firefox in Safe Mode.
    If so, it is probably caused by an add-on.

  • which method is called when the screen has lost focus but stays on blackberry?

    Hello

    I want to know in which method is called when the screen has lost focus, but always visible BlackBerry?

    For example, a screen is in the foreground and we disply dialog box so that the screen is visible but not to focus, therefore, at this time that methos called when we close this dialog box?

    Please, help me please please

    Override the following methods in your class to screen according to your needs

    1. when the screen button to the stack

    Call

    onDisplay() or

    onUiEngineAttached(boolean attached) - so attached is true then your screen is at the top of the screen

    2. When you are in a backlight and the lcd screen turns off to your state of rest and turns on again when you actively use this form

    call

    onVisibilityChange(boolean visible) - if visible is set to true, then you get the focus when the lcd display turns

    3. when your application moves to the background by clicking the red end button (i.e. without quiting the app, yet yours is active in the background)

    call

    onExposed() - when your application comes to the foreground of the background or during any type of screen that is in the top get popped

    & call

    onObscured() - when your application moves to the background, or when a screen pushed above your current screen more

  • I can't download attachments in Windows Live, although I can view online when the link is there and can also download zip.

    Cannot download attachments in windows live, although can view online when the link is there and can also download zip. What has happened recently. I was always able to do until recently.

    original title: Windows Live Mail

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • Detect when the menu is opening and closing

    Hello

    In my application, I use the ESC key to return to the previous screen.

    The problem is when to press the MENU button, a menu appears, and it must be able to use the ESC key to close the menu (if he wants).

    So, I would detect when the menu is opened and when the menu closes, I can manage the ESC to go back screen or simply to close the menu.

    Is it possible to do this?

    Thanks in advance

    Hai

    Do not use keylistener.

    Override keyChar() in your screen and locate the ESC key.

  • I lost the ability to upload files to a Web site. I transfer files from my computer to a web site and I get an error message "the connection was reset" and the file will not download. I try to transfer the photos and I get the same message.

    I have download a scanned receipt on a Web site and I get the error message "the connection was reset". I downloaded these reception for two years and last week, I had to use a different browser to complete this operation. I log onto the site and make the report, I have to do, but I can no longer download on this site.

    Safe mode does not work. However, when I downloaded Firefox laptop everything worked. Any suggestions as to where I should go now. Thanks Fire Fox works on other sites I work with. The download has started working. I think the problem was the website.

  • I currently use an HDMI cable to connect my laptop to my TV for streaming video. Anyway is to close the Mac but still flow from it? Right now it just runs in "standby mode", and the connection is lost.

    Hi all

    I currently use a HDMI cable to the video stream from my MacBook to my TV. It works fine except that it doesn't seem to be a way to close the laptop and always maintain the connection with the TV. First of all, I do not leave my laptop open, exposed if you want, when you're arms reach. Then, when it is connected to the TV, it is at least 2 to 3 yards away. In addition, I have recently adopted a cat. His favorite thing to do is to tap dance across the keyboard. Therefore, I am more able to let the laptop taken in isolation within the connective range of HDMI cable because the cat will walk on it. In any case, I tried to find a way to close the lid of the laptop, the laptop to stay awake and keep the connection to the TV. Any ideas?

    Thank you

    Sally

    See if there is a solution:

    https://support.Apple.com/en-us/HT201834

    Ciao.

  • I use a Toshiba Windows 10 computer to manage my Itunes account.  I have an Iphone with IOS 9.2 6.  When I connect to Itunes and connect my phone to the computer, it does not appear in the list of devices.  Help?

    I have a 6 Iphone with IOS 9.2 and when I connect it to my computer Toshiba P75-A7200 with Windows 10 - and I connect to my Itunes account, my Iphone does not present as a listed device.

    Can someone help me?

    http://lmgtfy.com/?q=iPhone+not+recognized

  • Change the output state if the connection is lost

    Hello

    I use a multifunction USB data acquisition system - 6341 XSeries to control an experience involving a heated hose.  I use MATLAB to read a number of analog sensors, and output digital to activate the relay to control certain devices of heating and a pressure relief valve.  My problem is if I lose power, someone throws a cable or my computer crashes Mid-test, I want the relay to turn off (IE, return all the digital outputs 0), for reasons of security.

    I figured out how to make the default value to the output power up to 0, but I did not find anything describing how to do the same thing if a connection with the computer is lost.  Is there a property inside the acquisition of data that I can program to do something like that?

    Thank you

    Jimmy

    The 6341 timer has a built-in digital i/o which is mentioned in the X series user manual in Chapter 6 (pdf link).

    You reset the watchdog timer of your software loop - if the timer expires the material past to a predefined State.

    I have no idea how it is configured in MATLAB, but in the C API functions used are DAQmxCreateWatchdogTimerTask to create the task and DAQmxControlWatchdogTask to reset the timer.

    Best regards

  • Problem - VGA output VGA or HDMI port does not work when the connection to the input of your TV

    Problem of VGA output - using an acer aspire 5520-5912 trying to connect it to the TV input - connect S-Video works well - port however VGA or HDMI does not work - 1 when I plug the VGA cable that goes to an entry of RD Gr Bl on TV, my screen goes black - as soon as I unplug the cable and press FN + F5 I get the screen back - if I restart the computer in order to have the computer to identify the external screen it will just a black screen when the priming. Troubleshooting using no external monitor is identified unless I use the S-video connection.  The Hdmi connection gives me the same result that the VGA - convenience store attempt will identify the computer screen.  OPSYS Vista. Thank you

    Hi cdk14031


    You have set display up-to-date drivers installed?

     

    Step 1 :
    To resolve the problem, you can check if the uninstall and reinstall so help display drivers.
    Also check if you have any exclamation point or cross the marks on the sides of display devices listed in Device Manager.

    a. click Startand then click Control Panel.

    b. click system and Maintenance, click Systemand then click on Device Manager.
    Note If Control Panel is in Classic view, double-click System, and then click Device Manager.
    If you are prompted for an administrator password or a confirmation, type the password, or click allow.

    c. in the Manager device, expand display driver, display devices, right-click and then click on Properties and on the driver tab, click Uninstall.

    d. When you are prompted to confirm that you want to remove the device, click OK.

    e. restart the computer.

    After the computer restarts, the drivers will be installed automatically.

    Step 2:

    If the problem persists I suggest you to check if you install the latest updated driver on the manufacturer's Web site to help you.

     

    You can also check out the link below and check if you get an updated video driver. You can install updates in optional updatesvideo card driver.
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly


    You can also check the support link and check if these help - below

    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-your-computer-to-a-TV

    I hope this helps.

  • How to force the connection sharing network and update password for the partnership offline synchronization of existing file?

    I use Windows 7.  When I connect to my VPN, I sync to a network folder.  I have an existing installation of offline file partnership to synchronize.  Often, it takes a while after that I connect to my VPN for Windows in order to get account I am connected and are trying to connect to the network share where the "synchronization of offline files" option, likewise, becomes available.  I have no way to force a try.  I tried to leave the computer at night and it connects.

    The other problem is that it means that I can't access all the folders not synchronized because when I try to connect to the network share server, it only shows the files offline.  He's not trying to connect to the real server.

    Now, I have a new problem.  I changed the password on the server.  Now when windows determines that the network share is available to sync, and I try to sync, I receiver a sync about login/password error.

    1. is there a way to force windows to try to connect to the share?

    2. How can I change the password saved?

    Hello

    Thanks for posting your question on the Forum of the Microsoft community.

    The question will be better suited to the audience of it professionals on the TechNet forums.

    I would recommend posting your query in the TechNet Forums.
     
    TechNet Forum
    http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Thank you

  • Procedure for the number of working days per month when the user enters to and from everyday

    Hi all

    Can provide you a solution to this - procedure for the number of working days per month when the user enters and days.

    Suppose that the user enters November 18, 2014 start date and date as November 23, 2014.

    The output should display

    Count: 4

    November 18, 2014 Mar

    Sea 19 November 2014

    November 20, 2014 game

    Fri November 21, 2014

    It will exclude Saturday and Sunday.

    Hello

    Here is an example of removing dates Saturday and Sunday:

    with days as(
         select (trunc(sysdate, 'YEAR') + level) as col from dual
         connect by level < 365
    )
    select * from days
    where trim(to_char(col, 'DAY', 'NLS_DATE_LANGUAGE=ENGLISH')) not in ('SATURDAY', 'SUNDAY')
          and col between to_date('18.11.2014', 'DD.MM.YYYY') and to_date('30.11.2014', 'DD.MM.YYYY')
    order by col;
    

    Cheerz,

    Stako

  • When the phone is lost

    If the phone is lost, the password change account would disable the phone with the old password to connect and send location data?

    Yes.

Maybe you are looking for