Connection still exists after close

Hello
My connection to the database don't disconnect. I have a servlet, in the doGet it will connect to the database(FoxPro). Then I execute a select command. Until here all works fine. Then I close the statement and the resultset, afterwards I close the connect like this: con.close()
If I now try to open the database with the foxpro programm it can't open the database exclusive! I think its because the connection from doGet is still there.
If the doPost is executed, it will connect also to the database and execute an Update. Then the servlet fails with a NullPointerException.
This error occures every time if I make a connection to the database, close it afterwards, and then open another connection and try to make a query. It doesn't matter what a query it is.
It is because with the close in the doGet is something wrong.
The con.close() command don't throw an exception.
The code I wrote is OK. Could it be that the connection is closed, but the user is still connected in the database? Is there a close for the user?
Or have you an other idea?
I thank you for your help.
Sandra Frei

The con.close() command don't throw an exception.
The code I wrote is OK. Could it be that the
connection is closed, but the user is still connected
in the database? Is there a close for the user?Have you closed your resources in the following order.
finally{
irs.close(); //resultset
st.close(); //Statement
con.close(); //Connection.
Lastly try...
con = null; to mark the connection object for garbage collection.
Hope this solves your problem

Similar Messages

  • I would like to clear my address row history completely, but I never get it totallly emptied. The remaining addresses are not bookmarked, i.e no stars on the row, but still exist after I have emptied all history both via the History link and via the Tools

    I would like to clear my address row history completely, but I never get it totallly emptied. The remaining addresses are not bookmarked, i.e no stars on the row, but still exist after I have emptied all history both via the History link and via the Tools link. How come adresses still can exist after I have done this?
    == This happened ==
    Not sure how often

    I clear all history but i still get hints (what i've typed before) when i wanna type something in a site i've visited before!! whats the solution?

  • Users still exist after on POA after removing them from eDir

    Hello All,
    I created a test PO/POA to add in 5000 users to test some load issues. when the test was done i ran a tool to have the users removed however it only removed the eDirectory Account, the users still exist in the POA. I tried to rebuild the POA however, that did not help.
    Is there a way to have all the users removed? i can evenm part with removing the entire PO if needed.
    the only way i can see currently is delete the user one by one from C1.

    turbobes wrote:
    > When i select all the duers and delete i get a error that the Edir
    > counterpart does not exist. Once i select Ok it closes out.
    >
    > I got fetup and reinstalled the test Lab. Used SUSE thistime and i
    > tried 8.0.1 HP.
    >
    > Thanks for the help
    >
    >
    Install the good old API gateway and write an API that first lists then
    rewrite that results to an API that removes the GW accounts.
    Gert
    Novell Knowledge Partner
    Owner, independent consultant
    www.GWCheck.com
    "the best GW site" - Tay Kratzer
    [email protected]
    Skype, Twitter, Facebook: GWCheck
    How come, when my wife says
    "we need to talk", it is never
    about Drupal? ;-) - Dries Buytaert

  • Files still exist after the copying is disrupted

    I have a problem when the large file copy from the laptop to the external USB HDD or NAS (via CIFS share). When the copy is disrupted (either the network is down or the power outrage to my external HDD), the file still exist in the folder but cannot be
    read or open. The corrupted file is still showing full size of the file. How can I avoid this?

    Hi,
    If you copy large files from the laptop to the external USB HDD or NAS, when the copy is disrupted, the files could be corrupted and we unable to read the file's contents. In general, your need to delete the file and copy the file again.
    In additional, you could try to use diskpart to repair the disk to recover the files.
    DiskPart Commands
    http://technet.microsoft.com/en-us/library/cc770877%28v=ws.10%29.aspx
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Database connection remains open after close being called

    I am using oracle OC4J as my application server. I am not using connection pool and I am using non-pooled datasource to get connection. The database connection is made at runtime and then closed. I want to test if the users' connection sessions have been killed after they logout the application. But when I checked the table v$session in the database, it shows one connection remaining. I checked my program, the close method has been called. Does anybody know the solution?

    Hi Chen,
    This is just a suggestion for something to try -- only if you haven't
    already tried it, that is!
    Try running OC4J in "debug" mode. Here are details on how to do that:
    http://kb.atlassian.com/content/atlassian/howto/orionproperties.jsp
    Hope this helps you!
    Good Luck,
    Avi.

  • Breakpoints still exist after removal and Teststart over the OI. Why?

    Hi everyone,
    We have different "user classes"  in Teststand. When I´m logged in as an admin, I delete all my breakpoints and after that I close my file without saving it. It sometimes happen, that someone else (logged in as "technician") starts a test in the OI and the breakpoints are suddenly at the same position where I place them before(although I deleted them). Does anyone know why this happens? Is there an easy way to delete breakpoints when starting a test in the OI?
    Thanks
    Christian

    Hi Christian,
    Did you delete the breakpoints in the execution window (while your program was executing)? If you delete them in the running execution they only disappear for that execution, the next time you run your program they'll be back. You can check the breakpoint in the window that opens when selecting the Debug -> Breakpoints/Watches... menu item.
    You can programmatically enable/disable the breakpoints, see attached .png file for an example. If you set the preconditions correctly you can easily disable breakpoints when starting a test in the OI.
    Best regards,
    Mathijs
    Attachments:
    Breakpoints.PNG ‏17 KB

  • Will Time Machine backup still exist after fresh install of Lion?

    Hi all. I have a MacBook Pro and I've come to the conclusion that I need to do a fresh installation to solve several problems I've been having. My question involves my Time Machine backup. I have a complete, current backup on a USB drive.
    After I do the fresh installation, rather than copy everything from the backup (and possibly bringing the problems with it) I would like to just selectively restore certain things. I know how to do all this.
    The question I have is, after I set up my new system, what will happen if I activate Time Machine and point it to the same USB drive that has my current backup? Will it erase the backup, or will it create a new backup alongside the old one (there's plenty of room on the drive) or will it simply append the backup, treating it just like a new checkpoint in the incremental backup? I guess I'm hoping for the third option, because then I would be able to go back into Time Machine in case I forget something or want to copy something from my old system, even after I finish setting up the new one.
    Any help would be greatly appreciated.

    When you erase a drive, it gets a new UUID (Universally Unique IDentifier).  That's what OSX uses to keep track of drives, not their names.  So it's treated as a different disk.
    If you do a full system restore, or use either Setup Assistant or Migration Assistant to transfer the data from your backups, that leaves a "trail" that Time Machine uses to figure out what's happened, and "associate" the "new" drive with the old backups.  The next backup will be only an "incremental" one, of what's new or changed, and the new and old backups will all be treated as if they'd been done from the "new" drive.
    However, if you restore things "piecemeal," there's no trail.  Time Machine will make a new, full backup of the "new" drive.  You can still see and restore from the "old" ones, via the procedure in #E3 of Time Machine - Troubleshooting.
    But if you use the exact same short user names (home folder names), then you may be able to force Time Machine to "associate" the "new" drive with the old backups.  See #B6 in the Troubleshooting article for instructions.

  • SMB problems still exist after 10.5.6, plus more instability

    I have an issue that I have documented with Apple concerning mounting of SMB shares to Windows servers (see jyappleconvert.blogspot.com) on 10.5.5. I had been getting around the issue by running VMware Fusion and opening shared folders and documents with apps running under Windows.
    Although I didn't see anything specific about this issue I installed 10.5.6 in hopes that it would solve the issue... As soon as I got it installed I attempted to mount an SMB share and got nowhere. I messed around with it for a while. Either it wouldn't mount... just spin and spin, or I got a request for credentials... which I shouldn't need since I'm using my AD credentials (Mac is bound to AD), but even when entering correct credentials it wouldn't connect. I even tried unbinding and rebinding to AD. Finally, it started to work... not sure why but I was able to mount the shares. Then I ran my test that I had been running to get the Kernel panics to appear and I was not able to do so... so I assumed that it might be fixed.
    I dropped back in my AppleScript to mount the shares on login and it seemed to work. Today, when I logged on, I choose the mobile user icon instead of the Other user icon and when I got in I noticed that my shares were not mounted... when I tried to do it manually I was back to the same thing as yesterday. So, I logged out and back in using the Other user icon and the script ran fine and the shares mounted.
    I was gone most of the day and I had logged off my Mac. When I logged back on, I went in via the Other icon and now not only aren't the shares mounting, but I'm getting the colored spinning beach ball when I try to do anything involved with Finder. I was able to get the system preferences up and I removed the applescript login item for mounting the shares, and relaunched Finder and quickly logged out. Then I logged back in and it seems OK now. So, although I don't seem to be getting the kernel panics like I was before, I'm also starting to have other serious issues relating to mounting Windows shares.

    I looked through the log files for the time frame in question and didn't see anything relating to Kerberos. So I did some more experimenting. It's preliminary, but the problem may have to do with a third-party addon that I use called Default Folder X.
    I don't run this on my test Mac Mini, which I haven't updated to 10.5.6 yet, so I know that this wasn't the problem in 10.5.5.
    However, I quit DFX... hmm just noticed that when I typed the abbreviation for the application, it's the same abbreviation that I found in the log file this morning... wow...
    Anyway, after I quit the program, I was able to once again mount my SMB shares. So I thought that perhaps I hadn't upgraded to the latest version and perhaps that was the problem... but no, I was at the latest level. Tech support info on their web site led me to a problem that can occur with a corrupt preferences file. I followed the instructions to delete the old preferences file, reregister the app and start again. After this, I logged out and then back in and DFX started OK and I am now once again able to mount the shares. At least for the moment, the problem is (once again) fixed.

  • Label item still exist after using $x_Hide

    Hi, im totally new in APEX, and currently is doing some experiment using API. Hopefully i can get some hand here.
    I have 2 item, a checkbox and a radiogrup. The purpose is when i click the check item, the radiogrup is shown and hidden (uncheck). I put the code in checkbox's 'HTML Form Element Attributes' :
    onClick="if (this.checked) {$x_Show(P1204_ISCATPRICE)} else {$x_Hide(P1204_ISCATPRICE)}".
    It works, but only for the elements of radiogrup, the label is still there.
    Any assistant will be great. thx.

    ah, i found it out
    onClick="if (this.checked) {$x_Show($x_UpTill($x(P1204_ISCATPRICE), 'TR'))} else {$x_Hide($x_UpTill($x(P1204_ISCATPRICE),'TR'))}"
    Thx for Tyson for replying in this thread:
    Dimming out a Radio Group

  • Does a listener still exist after its target object MC has been removed?

    Hi,
    I have just a question about as3.0 programming (I suppose it
    is the same for AS 2.0):
    When a MovieClip is removed from the display list (either by
    removeChild method or directly from within the stage from the
    timeline), if listeners are running and attached to that object,
    are they also removed, or do I have to remove them explicitly?
    if yes, for a proper programming, I suppose that I have to
    program a listener for the UNLOAD Event whose function will remove
    all attached listeners, don't I?

    quote:
    It is called the DISPLAYlist and not the EXISTENCElist for a
    reason. :)
    => yes sure :)
    quote:
    being eligible for garbage collection (gc) means it will be
    removed from existence when memory usage of your swf increase
    "enough" to trigger gc.
    => ok, I understand, but is there not any way to invoke
    gc, to trigger it manually?
    If you retake my example above, "playing!" seems to display
    indefinetely, so it means that gc has not been triggered which may
    be normal because memory hasn't increase dbut it is not handy
    because the code in the clip supposed to be removed is still
    running (even when clip is set to null). I persist and still don't
    think it is normal :)
    But I will study a lot more as 3.0, I think I should find an
    answer in the interesting Colin Moock's book I am currently
    reading, I am just at the beginning.
    Thanks for your help!

  • "Rewire Connection Still Active" - But I'm Not Running Any Rewire Apps?

    GarageBand '08 is working great, but when I try to quit, I get a dialog box saying "Rewire Connection Still Active. Close the Rewire application before closing Garage Band." But, I'm not running any Rewire applications.
    How can I fix this?
    Thanks in advance to all for any info.

    Welcome to the forums.
    1. You're in the iTunes for Mac forum - there is also iTunes for Windows forums.
    2. Any incomplete downloads are marked as such and should still be available for completion.
    3. Explorer is not relevant - all downloads come direct from the iTunes Music Store.
    4. You can contact Apple from their website if you are getting download problems and being charged
    5. Have a look here : http://forums.cnet.com/5208-6142_102-0.html?threadID=254032
    (avoid wifi and simultaneous downloads if possible).

  • Locks to KM files created long time ago still exist

    It was found in our portal that locks to some KM files still exist after one year has passed.
    I understand that I can unlock the file one by one. My questions are:
    1. How to unlock all of the files in one shot? I tried to just unlock the
    whole folder but it seems it does not work. The only way I found is
    either to unlock them one by one or run the resource report which can
    unlock all the locked files.
    2. What is the possible reason that those locks still exist after one
    year of the lock creation time and what is the step we can take to
    prevent this from happening again?
    Thanks!

    Hi,
    You can use the [Resource Locks Report|http://help.sap.com/saphelp_nw04/helpdata/en/14/a4d14030490b06e10000000a155106/frameset.htm] to unlock all the locked files in a given scope.
    It will be available in Content Administration -> KM Content -> Tool Box-> Reports
    I dont think locks will be removed even after 1 year without doing any thing to unlock
    The lock may remain. Also we cannot have a permission only to lock/unlock a resource.
    We can by the way remove the lock command from a specific KM Layout.
    Regards
    BP

  • Cannot connect to VPN after sleep - still works on Windows machine

    Hi Guys,
    I'm very new to using VPN which I now need for work. I recently set up a new connection and it was working fine for a few hours until I closed my MBP lid and sent the machine to sleep. Upon waking the Mac up again the VPN connection appeared to be lost. Trying to reconnect gives me the following error:
    The L2TP-VPN server did not respond. Try reconnecting. If the problem continues, verify your settings and contact your Administrator.
    I've spoken to the sys admin at work and he can't find any problems on his side and the same VPN details appear to work fine on multiple Windows machines. I've tried creating a new connection with the same details and deleting the old one with no success. Tried restarting the machine as well. What other things can I try to potentially get this issue solved?

    I tried BDAqua's suggestion. It did not work.
    System Preferences/Network will not allow a MTU smaller than 72, so I was unable to try a MTU of 53. Maybe there is a configuration file that can be edited manually, bypassing the GUI tool? I tried several other MTU sizes, including 72, no joy. I reset the MTU back to 1492 (to match the router setting) and eventually was able to connect. Running ifconfig in Terminal shows that en0, after connection, still has a MTU of 1492.
    I'm not sure that Mac OS X's dislike of PPPoA has anything to do with it, as this machine never sees PPPoA, it only sees standard TCP/IP - Ethernet. PPPoA is only, best I know, used between the router and the ISP, and no computer on the network cares or is even aware that something such as PPPoA exists. During the time I am unable to connect to the outside with this machine, I am also unable to connect on the inside, despite DHCP on the router having assigned an IP address to the en0 interface.

  • HT3529 Have an Iphone 5 and had to restore.  I recieved text message and replied after restore but they are no longer in thread.I did not erase. past messages still exist.  Did sending party delete them? If so can I retreave them?

    Have an Iphone 5 and had to restore.  I recieved text message and replied after restore but they are no longer in thread.I did not erase. past messages still exist.  Did sending party delete them? If so can I retreave them?

    No, they probably got lost out there somewhere. They're gone.

  • I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the "saved"  ones before I write the new one. What to do to finally/definitely delete the save

    I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the “saved”  ones before I write the new one. What to do to finally/definitely delete the save message?

    sorry it's ios6

Maybe you are looking for

  • Difficulty positioning drop zone images

    I have carefully and repeatedly read the sizing and positioning instructions for images in iDVD drop zones. I am just not "getting it". There must be more info. somewhere about putting predictability into this process. The photo does not appear in th

  • Can I use the iPhone as external microphone for my iMac?

    My imac doesn't have a mic in, only a line in. Is it possible to use the iPhone as external mircrophone with some extra software maybe? I want to create video tutorials and the internal microphone isn't good enough for this.

  • Problem While checkin in NWDI  adding TableSorter.java class in src of DC

    Hi I have added TableSorter.java class in Source folder of One Develop Component and implemented the code to sort the table.It is working fine Locally.     While I am trying to checkin in NWDI it is throwing error messages like location: package test

  • Difficulty sending out email from OSX Mail

    iMac 700 MHz PowerPC G4 with OSX 10.4.11 I have a problematic email message that won't send and it hangs up the Mail program.  I cannot delete the email or close it's window and the usual server won't send it out. The server dialog box keeps reopenin

  • HELP: Can anyone identify this E61 standby icon??

    I suddenly have a strange unidentified icon appearing in the upper right of the standby screen, right beside the wifi indicator. I've never seen it before, and now all of a sudden it's just there and never goes away. To me it looks like either a car