JDBC lost connection

Web server on SunOS 5.8 runs Oracle JDBC drive V9i and connecting to Oracle
server V920 on SunOS 5.8, it lost connection to database periodically.
We keep the connections open and ready for use and it looks like sometimes when
we try to use them we find out that they're closed.
It works fine on developement with Oracle server V81700.
What is the resolution?
Thanks.
Eileen

Seems like the problem i've posted yesterday ("Socket closed").
Have you got the stack trace ?

Similar Messages

  • Lost connection detection time difference

    Having a problem understanding why a broken JDBC connection is detected under Windows much quicker than it is under Linux.
    I have an process that opens a connection to MSSQL using JDBC, a Stored Procedure is then executed and the result set
    processed, this execute step is repeated every 60 seconds or so. If any exception is thrown then resources are closed, sleep
    for 60 seconds, the connection is reopened (if fails then sleeps and repeats), once reopened the process continues. There is logging throughout
    the above steps.
    On Windows Vista 64bit Sun Java platform the process runs fine, if I deliberately break the connection (stop MSSQL service), the process
    logs a problems within 60 seconds and starts handling the error, when the MSSQL comes back then within 60 seonds the connection is remade
    and the process continues as expected.
    Under Ubuntu 10 64bit both Sun and OpenJDK the process runs fine, until the connectionis broken, as it takes about 17 minutes for the exception to be thrown
    for the broken connection (stopped MSSQL) to be detected, as opposed to under Windows taking seconds. Once detected then the process works as expected, retrying
    and reconnecting as it should.
    The libs and code used are the same the only difference between the windows and linux versions are the logging path parameter, have tried with different versions of Java
    and with different MSSQL JDBC drivers.
    What could be the reason for the time difference in the lost connection detection between Windows and Linux? Any help tips would be most welcome.
    Thanks.

    The connection is only made once and used throughout, it is only closed if there is a problem. This runs absolutely fine with logging for weeks, the execute and processing take millisecondsIt is pointless to keep the connection in that situation. Create it every time.
    Doing that might even fix your problem. But regardless you should still not keep it.
    Have jujst checked the timings and if the db connection is broken the on Linux (Ubuntu) the exception generated by step 4. takes up to 15 minutes 35 seconds to move on to step 7. on Windows though it is instant, there is a log message output prior to the execute statement this outputs then the exeception logged.You have an existing connection.
    Then you attempt a request which I am guess takes 17 minutes to timeout. (That happens because you are testing by stopping the server.)
    That is the problem.
    First verify the connection url. It might have timeout values in it.
    If not then the next most likely cause is that someone changed the OS (not java) TCP timeout values. Bad idea if they did. And the only way to fix is to change them back to something reasonable. You can code around this by using two threads. One that sets a timer and the other that runs the request. If the timer fires then attempt to cancel the request (see the jdbc api.)

  • Java.sql.SQLException: Lost connection to server during query

    Hi all,
    While I execute the sql query, i get the following exception
    java.sql.SQLException: Lost connection to server during query
         at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
         at org.gjt.mm.mysql.PreparedStatement.executeQuery(Unknown Source)
         at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:302)
    Below is my code to execute the query.
    String sqlQuery = "some query";
        Connection dbConnection=null;
        PreparedStatement stmt = null;
        ResultSet rs = null;
        try
          dbConnection=getDBConnection(); //perform lookup on the data source,   and return the connection
          stmt= prepareStmt(dbConnection, sqlQuery);
          rs = stmt.executeQuery(); //fail here
          //more below......
        catch(Exception e)
          throw e;
        finally
          releaseResource(stmt,dbConnection);
          closeResultSet(rs);
        }The DB i am using is MySql 4.0, Server: Jboss3.2. Could I know the possible reason that will cause the above exception?
    Thanks for your help

    Anyone would help me.
    I am using linux, resin, jdk1.3 and Mysql plus mm.mysql driver. I write some static class which open one database connection for the class. I found that if the Server is ideal for period of time. When I doing the query again I meet same error message.
    ava.sql.SQLException: Lost connection to server during query
    at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
    at org.gjt.mm.mysql.Connection.execSQL(Unknown Source)
    at org.gjt.mm.mysql.Statement.executeQuery(Unknown Source)
    at org.gjt.mm.mysql.jdbc2.Statement.executeQuery(Unknown Source)
    at com.ccnet.desktop.Grouping.getDomainBanner(Grouping.java:1835)

  • Lost connection during calling a stored procedure

    Hallo,
    my webservice runs in a sql-exception
    --> java.sql.SQLException: Getrennte Verbindung
    (lost connection). This is probably during handling the response (conerting oracle types in java types). How i can avoid that the connection will be lost?
    Thanks in advance,
    Frank

    > InitialContext ctx = new InitialContext();
    > DataSource ds = (DataSource)
    > ctx.lookup("jdbc/DataSource_Awel");
    > ConnectionHandle handle = (ConnectionHandle)
    > ds.getConnection();
    > conn = handle.getPhysicalConnection();
    Why are you using directly physical connection to DB ? Use connection object that you get while invoking:
    ds.getConnection();
    Regards,
      Marcin Zduniak

  • Urgent Lost connection during query !

    Hi guys,
    I'm using Servlet which is running in Linux Operating System and is using MySQL for back-end. This server uses Apache Web Server and Tomcat.
    after a moment of inactivty the servlet give me this error message
    "Lost connection to server during query"
    i initialise my connection into de init() method like this :
    public void init(ServletConfig config)
              throws ServletException
         super.init(config);
         // Chargement du driver JDBC
         try
              Class.forName("org.gjt.mm.mysql.Driver");
              connexion = DriverManager.getConnection("jdbc:mysql://localhost/iscom", "login", "password");                         
    .... here is the rest of the code i used
    public class index extends HttpServlet{
    Statement commande=null;
    private Connection connexion=null;
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    try
    commande = connexion.createStatement();
    ResultSet rs = commande.executeQuery("SELECT ...")
    }catch
    commande.close();
    I also use the destroy method
    Thank everyone !
    Denys

    Move your code from init to doGet/doPost. In other words, connect to the database just before firing the query and disconnect after that.

  • Adobe cloud has lost connection with the server

    Adobe cloud has lost connection with the server, can't get adobe cloud to work so I can re-install photoshop to fix a corrupted DLL file.

    *Adding new items/removing orphans*
    Try iTunes Folder Watch or iTunes Library Updater. Folder Watch is much faster on the adding files front, can be set to run in the background and includes a useful exclusion feature, however it’s slow at removing orphans. iTLU is better for this although doing it manually after looking at a list of proposed removals generated by Folder Watch is probably faster still. iTLU can also be set to update iTunes when you've used 3rd party tools to change tag info.
    You may need to amend the list of file types these programs look for. My list includes:
    .mp3 .mp4 .m4a .m4b .m4p .m4v .mov .wav .aif .mid .ipa .ipg .ite .itlp .m4r .pdf
    Note the last 6 types may not be recognised as already being in the library so should either be omitted from the search or you can add (at least for Folder Watch) individual exclusions for files you know are already in your library.
    tt2

  • "Lost Connection with AIM" repeatedly

    Hi there,
    I'm using a new Linksys WRT54GL router with the DD-WRT v23 firmware -- which is otherwise fabulous, by the way -- but since going with the router iChat has been pretty unreliable. I can't connect to my sister in England (I'm in Canada): we keep getting "insufficient bandwidth" errors (I'm on a very hi-speed cable internet connection, so I don't think it's me!). Moreover, AIM frequently kicks me off iChat with the message "Lost connection with AIM".
    I've configured my router using instructions linked from this forum. I'm forwarding the following ports to my computer:
    5060
    5190
    5220
    5222
    5678
    16384
    And while I can connect to other users okay (except my sister, it seems), staying connected it a real issue. Can anyone recommend a fix?
    Thanks,
    Aaron.
    PowerBook G4 15-inch 1.67 GHz   Mac OS X (10.4.5)   The last PowerBook ever!

    Hi Aaron,
    This last port should be a group of 20 ports (16384-16403)
    iChat needs 4 ports from this group to do 1-1 Audio or Video chats.
    Many Linksys have UPnP. It is found in the Administration tab. If you have this you could use this. Disable the Port Forwarding if you do.
    Also port Forwwarding points to one IP/computer. If this is the case for you and you still have the device doing DHCP there is a cance you computer's IP has changed if it goes to sleep or is shut down when the lease time runs out.
    Check this on your computer and the Port Forwarding settings.
    10:26 PM Monday; February 27, 2006

  • "Lost connection with AIM" error message

    Hi all,
    I've been a long-time iChat user — I've had very few problems, but now, at home, whenever I've been connected for about 10-15mins, iChat just disconnects with the simple iChat Connect Alert that the app has "Lost connection with AIM. The connection with the host was unexpectedly lost."
    My Buddy List collapses to a "disconnected" header and I diappear from my Buddies' buddy lists. If I'm in the middle of a chat (video, audio or text), the chat continues uninterrupted, but I still disappear from people's lists as if I'd disconnected manually. Weird.
    The net result is that I have to keep checking to see if I'm connected and then reconnecting all the time. A real pain in the proverbial.
    It only happens at the house. My laptop doesn't disconnect if I'm at the office, for instance.
    I have cable, coming in to Netgear 814v2 router; out to an 8-port gigabit switch, which then feeds my three main machines. All via ethernet cabling.
    All machines have the same problem described above.
    I've made the usual Quicktime setting changes.
    I've listed the necessary ports in my Mac firewall settings (even though the firewall is turned off).
    Each machine has a dedicated IP issued by the router (10.0.0.2 thru 10.0.0.5)
    The router firmware is up to date.
    What else is there?! I have no problems initiating or joining any sort of chat with my buddies around the world. I have excellent bandwidth. My internet and email are never interrupted 24/7.
    Can someone help me? Pretty please?
    17" Powerbook G4 & Dual G5 2.5Ghz   Mac OS X (10.4.7)  

    Hi
    Try this log on to AIM on port 443 rather than port 5190
    Go to IChat > Preferences > Accounts.
    Log out of AIM and then use the Server Settings tab
    Set the port to 443.
    Log back in again.
    Tony

  • I can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.

    i can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.  how to troubleshoot?  thanks.

    Hi,
    There can be many reasons why the Login is "up the creek".
    Any break in the network at your end whilst logged in will cause  an issue.
    A sort of discrepancy between what iChat thinks the state should be and what the server thinks.
    If they don't agree the server will refuse to accept.
    A Crash at the server end which does not log you out properly will also do it.
    Any file at any time can be come corrupted.
    Luckily with the iChat .plists they are recreated if removed with an iChat Restart.
    If it were AIM you can also get your Account Suspended  and this will not log you in.
    (It tends to happen from Chat rooms where people notify AIM about bad behaviour (as they see it) and you have to apply to get Un-suspended).
    Most of the big IM services use multiple servers.
    Sometimes these go out of Sync.
    In the case of AIM this happens when they remove Old unused Screen Names from people's Buddy List prior to making them available for re-registration.  I am not sure if this happens at Google.
    You seem to be talking about an account that has worked at Work and having new computer at home.
    As I mentioned the Priority thing you have not said that it has coincided with the new computer logging in  (this will kick the work Computer out of Google whether you are logged in  on the Web Mail page or in iChat)
    IN addition to that iChat stays partially logged in for Off Line IMs
    This is done in the background by a support app called iChatAgent
    If your Computer is ON but ichat is not started people can still send you Messages.
    Instead of saving these on the server until you login iChat will start up.
    Depending if the home Mac is effecting the Work Login it may be holding sway over your Login.
    Using your girlfriend's login may have booted her Off Line where she normally uses the name/login.
    The AIM Side can be specifically set to allow Multiple Logins and therefore NOT allow them.  If this happens you get a warning and messages to do something about it.
    You do not get these in any Jabber or Google Login as the Priority setting is supposed to take care of it.
    If the Login works at the Web Mail Login and on one computer then the .plist on the work computer is the most likely issue.
    There is a small chance that a Corrupt Buddy Pic (Home Folder/Library/Caches/com.apple.iChat/Pictures) may be the cause.
    Set this folder to icon view and also use the Finder's View Menu > Show View Options and select icon view.
    This should show all pics as their icon.
    Check that all display properly.
    At this point I would try a COMBO version update install of the last Update you did over what you have.
    This often corrects hard to trace things
    The 10.5.8 COMBO is here
    11:28 PM      Monday; June 20, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Lost connection with server

    For about two days now, the bbm application has refused to launch. It has been writing lost connection with server....can any one please help! It's really urgent

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (step should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive
    2) Reboot
    Pre-BB10 Devices ONLY. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    BB10 Devices. Hold the top button down until the counter reaches zero. Wait for the device to be fully shut down (e.g., nothing at all displayed on the screen, no LED lights, etc.). Hold the top button until the red LED is lit. Wait through the full boot-up process. IF this fails, you can attempt the battery-pull method above, but it is normally NOT recommended unless nothing else works.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My iMac running mountain lio SO 10.4 has lost connection with my Kodak ESP5200 printer. Both are connected to my ISP router OK

    My Imac conputer has lost connection with my printer.
    The Computer is running Mountain Lion OSX10.4
    The printer is a ESP5200
    Both are commected to the router.
    Any ideas ??

    Follow the steps @ > Troubleshooting printer issues in OS X

  • NVIDIA OpenGL driver lost connection with the display driver

    Alienware M14x Laptop
    Windows 7-pre 64-bit
    8gb ram
    3gb Video: NVIDIA GeForce GT 555M
    Intel i7 2760QM
    AE CS4
    AE keeps crashing. I get the following message while doing something as simple as scrubbing through the timeline, or changing opacity of a layer. in 1080p, I have a picture layer, a solid, some color corrections, and that's it. i just got this new computer and i have never had this problem on my old computer.
    this message appears after AE crashes."The NVIDIA OpenGL driver lost connection with the display driver and is unable to continue. The application must close."
    this message appears in the taskbar: "Display driver stopped responding and has recovered. Display driver NVIDIA Windows kernel Mode Driver, Version 267.21 stopped responding and has successfully recovered"
    any ideas on how to stop AE from causing my display driver to stop working?
    Thanks, Ramzi Rebeiz

    For anyone picking up this thread (it's probably too late for rrebeiz40 by now!) I have come across a simple but apparently very effective tip that has solved the 'OpenGL driver lost connection' issue for many people using various NVIDIA with various Adobe progs (incidentally a lot of these seem to crop up on Dell machines, especially Notebooks).
    (It fixed my issue with Premiere Pro CS4 - GeForce GT 555M on Win 7 Ultimate 64-bit, Dell XPSL702X).
    It's posted on http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40 (look for the last post, No 50) as follows:
    THIS FIX APPEARS TO WORK...found on an Adobe forum
    "This issue led me to this fix: go to NVIDIA Control Panel --> Manage 3D Settings --> Global Settings, and switch "Power Management Mode" to "Prefer Maximum Performance" (the default "Adaptive" setting seemed to be the culprit). And that's it! The key here is changing the "Global" setting, as my individual programs were already set to "Prefer Maximum Performance." I can cause the error to reoccur by changing back to "Adaptive."
    Otherwise lots more ideas on this site: http://www.instructables.com/id/How-to-Fix...Nvlddmkm-Error/
    My PC has been running for 2 days now. I only put the top fix in for now. Feel happier I have more options if need be though.
    Inserted from <http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40>
    It worked for me

  • Nokia Ovi Suite has lost connection with your devi...

    5 months has passed and many hours on the phone to Nokia. The phone has been completely reset /reboot by Nokia time and time again and still the phone gets this message when trying to update software..."Nokia Ovi Suite has lost connection with your device"....We were optimistic that the software upgrade would solve the other problems we are having with all the Nokia phones at work. They are all E52's

    Having the same issue currently with an E72 software version is 054.005.266.02 and Ovi Suite 3.1.1.80
    Actually I had connection lost all the time with all previous versions of Ovi Suite too... it has never been reliable.
    Using original Nokia USB cable, connected securely. Tried different PCs, different USB ports, same issue.
    Just now I'm trying software update and it looses connection during the backup process all the time... very disappointing. Screenshot attached if anybody is interested.
    Attachments:
    nokia_conn_lost.jpg ‏40 KB

  • E5: Ovi Suite has lost connection with your device...

    I am trying to update the software on my E5 using OVI suite but I keep getting an error during the install phase (after backup). The following error and instructions are displayed in the OVI suite window but makes no difference when I follow these instructions (just end up back with the same error).
    "Nokia Ovi Suite has lost connection with your device. Follow these steps to help reconnect your device:
    1. Remove USB cable from your device.
    2. Restart the device (turn off and on again).
    3. Re-insert the USB cable.
    4. Click 'Ok' below to continue updating."
    Current E5 software version is 042.007.
    I am trying to update to E5 software v. 043.115
    Any ideas?

    Yep having the same issue. Just got a replacement handset due to the random restarting issue, soon after setting up the new handset I get a message on phone saying software update is available. Both OVI suite and Nokia software updater say version 43.115 is available (about 200mb in size), I currently have the same version as you 42.007. It claims to do a lot of improvements to the handset. The update downloads fine but when it comes to installing I keep getting the same issue. Phone simply will not restart automatically and the update restarts then fails at the same point over and over. Had the same problem with my previous handset.
    I spoke with my network provider to see if it was an issue with the handset needing firmware specific to them but they said no it is an issue with the firmware itself and has been happening to everyone since its release!!! They said I should not download it until Nokia has resolved the issues with it. But how do I know when that will happen as I cannot find anything put out by Nokia stating there is an issue or anywhere on web forums saying there is actually a problem.

  • Disk Utitlity has "Lost Connection" with Disk Management tool"

    [ Edited by Apple Discussions Moderator; please start a new topic about your technical issue. ]
    Running OSX10.3.8
    I installed:
    "iTunes" (6.0.2)
    "iPod Updater 2005-11-17" ((null))
    "iChat Update" (2.1)
    Went to repair disk permissions
    I get this error:
    Disk Utitlity has "Lost Connection" with Disk Management tool" Please quit Disk Utility.
    then it says quitting Disk Utility may render the disk useless. Stopping the scan just gives a "stopped by User" red text message in the DU screen.
    Had to Quit. No other way out.
    Now it will not repair "or" verify Disk permissions at all.
    What to do?
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  

    Getting the same results booting off of the install CD. I even ran fsck -y after a soft boot(command S). Note I also installed the iPod updater and iChat update.
    I'm getting a crash log that has to do with DiskManagement
    Path: /System/Library/PrivateFrameworks/DiskManagement.framework/Resources/DiskManage mentTool
    I tossed the pref file for Disk utility and tried to locate a pref for the Disk Management but nada...
    Is there a prefs file that needs to be tossed?
    Anyone do a recent Onyx Maintainence cleaning?
    Is there a way to do an iTunes Uninstal and reinstall a previous version?
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  
    Powermac G4 1.25ghz, OS9/OSX   Mac OS X (10.3.8)  

Maybe you are looking for