Closing the Statement returned from ResultSet.getStatement does not work

With the ORACLE JDBC driver, I have discovered (the hard way) that it is essential to explictly close a Statement object after use. (http://www.orafaq.com/node/758 was useful here).
Failure to do so leaves the Cursor open and eventually your application will fail with the ORA-01000 Too Many Cursors error.
That works well if your code still has access to the Statement object which it created when it has finished with the results from executing the Statement.
But, I've inherited some code where this is not the case. The results in the form of a ResultSet are passed through a few layers before it is eventually processed and can then be closed. The original Statement object is no longer available.
I thought then that the solution would be use the ResultSet.getStatement method and to close that Statement.
BUT that doesn't seem to work. The number of cursors continues to go up.
Any ideas, anyone?
(I'm using ojdbc6.jar and ORACLE 10g Express.)
Edited by: Termind on 22-Jul-2010 10:00

Copied in second message as first gets unreadable...
eclipse.buildId=I20070625-1500
java.version=1.5.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments:  -os win32 -ws win32 -arch x86 -data D:\Dokumente\Projekte\workspace
Error
Tue Sep 29 11:30:49 CEST 2009
Unhandled event loop exception
java.lang.NullPointerException
at org.eclipse.jpt.db.internal.ForeignKey.getReferencedTable(ForeignKey.java:104)
at org.eclipse.jpt.gen.internal.GenTable.addReferencedTablesTo(GenTable.java:106)
at org.eclipse.jpt.gen.internal.GenScope.buildReferencedTables(GenScope.java:169)
at org.eclipse.jpt.gen.internal.GenScope.configureManyToManyRelations(GenScope.java:81)
at org.eclipse.jpt.gen.internal.GenScope.initialize(GenScope.java:46)
at org.eclipse.jpt.gen.internal.GenScope.<init>(GenScope.java:33)
at org.eclipse.jpt.gen.internal.PackageGenerator.<init>(PackageGenerator.java:48)
at org.eclipse.jpt.gen.internal.PackageGenerator.generateEntities(PackageGenerator.java:38)
at org.eclipse.jpt.ui.internal.generic.EntitiesGenerator$GenerateEntitiesRunnable.run(EntitiesGenerator.java:129)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1779)

Similar Messages

  • The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    I found this plugin which solved pretty much all of my mail font rendering problems.  It is designed for Lion, so don't know whether it will work but thought I would offer it up.
    http://noware-it.zxq.net/

  • Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from

    Redemption code from Photoshop Elements 12 purchased from Best Buy does not work 'Oops! This code doesn't seem to be active. Please contact the retailer you purchased the card from, or use a different code.'   I have an invoice and the pickup notice from Best Buy.   What other information does Best Buy need?   What will they do?   Will I get a new box?   What happened to the days of just typing in a simple s/n?   

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • My camera works with the photobooth and with skype but does not work with online applications such as "lolcam from facebook" or "faceonthehole" application. Please help

    My camera works with the photobooth and with skype but does not work with other applications like the "lolcam" from facebook or the " faceonthe hole" application. Can anyone help?

    There was a issue with school computers being used to spy on kids in their bedrooms, Mac's were involved.
    So Apple most likely tightened the API's to only select, trustworthy companies as not to abuse the web cam access priviledge.
    If you want to use a web cam with these other programs and services, you'll likely have to buy a third party USB one, so you can manually disconnect it.
    There isn't a way to physcially disconnect the built in web cam on Mac's without busting open the machine.

  • HT1202 The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.

    The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.
    How can I transfer my music to a second computer iTune?
    Thanks,

    See this user tip
    Syncing iPhone to a "New" Computer or replacing a "crashed" Hard Drive

  • Why does Adobe sendnow work and the newest and greatest Adobe Send does not work?

    Why does Adobe sendnow work and the newest and greatest Adobe Send does not work? I wasted about 8 hours on trying to get Adobe Send to upload 269 files that amounted to 469MB. When it did not work I made a zip file and after a lot of wasted run time that did not work. The first situation gives little indication of when a file is loaded compared to Adobe SendNow. In both cases with Send it failed with a message like only the first 50 can be loaded. When I went and looked none of them had been loaded. With the zip file (I wanted to hide the individual files so they would not be counted) it appeared to work but very slowly and finally said it was done and I went and looked and it had done anything for oever 2 hours except a false "I'm runninng" indication.
    Thus, I took a chance with Adobe SendNow and it works great. It never gave me a limit on the amount of files nor on the size of the complete job. It shows me one file at a time when it has finished with the file uploading it. SendNow has never given me any problems.
    Why woiuld you want to change the program from SendNow to Send without the newest program being the best, fastest, user friendly program of the two? It just doesn't make sense to me. I suggest that Adobe keep SendNow working until Send is fixed. I would also suggest that SendNow and how it looks be kept, called Send, then modify Send one thing at a time until you get it to the point you need it to be for Acrobat. I have heard nothing good and now I have experienced it that Send is a piece of junk. I wasted most of my work day on giving Adobe the benefit of the doubt to find out I made a very bad decision to trust Adobe to make good decisions on the transfer of a function to another place .... both Adobe's responsibility.without making it painless for your customers that totally rely on you. Don't throw away customer confidence as it is very hard to get it back.

    Funny how you answer to "troll". (What's your handle on AT&T forums?)
    Yep! Verizon living up to it's contractual obligations by not releasing updates. Caveat emptor!
    I think there are some reasonable expectations here to keep customer's happy. When one carrier offers upgrades there is an expectation the same will happen across all the carriers. We have seen that except Big Red.
    Verizon could have said the update is in MS court months ago and stilled the voice of the disgruntled, or at least redirected it, but instead chose to be silent. Not for market share but for partial blame I think.
    We will have to agree to disagree since you only see Terms & Conditions and I, see customer satisfaction.

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • Thumbnail view for Library copied from Asset Library does not work

    Hello ,
    I created list definition based on Assed Library (I copied files from \15\TEMPLATE\FEATURES\AssetLibrary\AssetLibrary ) - I reused schema.xml and other files.
    Then I added my new custom content type.
    The problem is following:  thumbnail view does not work now ( "/AssetLibraryDemo/Forms/Thumbnails.aspx" )
    I don't have any javascript errors and any specific error in ULS log.
    Can you give me advice, why thumbnail view has stopped working?

    I need to use "List teplates" gallery functionality for this task.

  • The sound on my Macbook Pro does not work.

    The sound on my Macbook Pro does not work.  When we press the volume buttons, the sound icon pops up, but the bar is full with a small "Does not work" circle below it, and nothing happens when I hit volume up or done.  I went into system preferences, but there aren't any options there that I can see to change it. 

    "Unfortunately, it doesn't provide any help for a MacBook Pro, other than indicating to call Apple Support" (sic).
    Au contraire. TS1574's title and affected products are thusly:
    "Troubleshooting issues with no audio from built-in speakers on Macs
    Products Affected Mac mini, MacBook, MacBook Pro, iMac"
    As a result, the instructions of the article are relevant. To be sure, follow those steps, the last of which is to contact Apple.
    So, by way of reminder, here are the steps to troubleshoot the audio on your MacBook Pro. There is no red light, so the port is likely fine. Headphones work, so clearly your sound card is fine.
    1. Ensure an incorrect version of OS X is not installed. If one is, then reinstall or erase/install after backing up your data.
    2. Remove any external audio devices from USB, firewire, etc.
    3. Open Sys Prefs > Sound > Output
    If Internal Speakers is listed, select it and test again.
    If Digital Out is listed, confirm again that all external audio devices and cables have been removed.
    If mute is selected, unselect it.
    If the volume slider is low, raise the volume.
    If the above simply doesn't fix it, the issue may be a corrupted plist. Apple Support might be able to help troubleshoot the issue further, per the last step of TS1574.
    I hope it gets resolved for you. Good luck.

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When running windows defrag using schedule or from command line, it does not work. The command that I am executing as administrator is
    C:\Windows\system32>defrag /c
    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.
    It displays the above message and exits back to the command prompt. However if I run the command defrag C: it does work. Defragmenting from the GUI works as well as long as both the disks (C: and System Reserved) are selected and when I click on
    Defragment disks, works fine.
    I am concerned about defrag running from the task scheduler with the command "defrag /c" (auto scheduled using Configure Schedule... from Disk Defragmenter) does not work and the system never gets defragmented automatically.
    This happens only with some of the windows 7 VM's that we have.
    There are no entries in Event Log that point to the defrag (using task scheduler). Any ideas what may be going on?

    Hi,
    Could you defrag as below method:
    1. Open Disk Defragmenter by clicking the Start button. In the search box, type
    Disk Defragmenter, and then, in the list of results, click
    Disk Defragmenter.
    2.Under Current status, select the disk you want to defragment.
    3.To determine if the disk needs to be defragmented or not, click Analyze disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Once Windows is finished analyzing the disk, you can check the percentage of fragmentation on the disk in the
    Last Run column. If the number is above 10%, you should defragment the disk.
    4.Click Defragment disk. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    For more information, please read this article:
    Ways to improve your computer's performance
    http://windows.microsoft.com/en-in/windows/improve-performance-defragmenting-hard-disk#1TC=windows-7
    Meanwhile, read this article:
    Defrag from the Command-Line for More Complete
    Control
    http://technet.microsoft.com/en-us/magazine/ff458356.aspx
    Karen Hu
    TechNet Community Support

  • Itunes does not open,everytime i try it says "The itunes application could not be opened. The required folder cannot be found" I have tried the shift key option but that does not work. help!!

    I cannot open itunes. Everytime i try it says "The itunes application could not be opened.The folder cannot be found." I have tried the shift key option but this does not work. Please help.!!

    Try the actions here for that driver.
    iOS: Device not recognized in iTunes for Windows
    I would first do this:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • HT1695 the internet on my iphone 4s does not work outside of my house

    My iphone 4s only connects to the internet in my house, it does not work if I am anywhere else. Everyone else who has an iphone can, how can I make mine work??

    Same. Reset Network -> not solved.
    Restore twice -> not solved.
    I take to genius bar. The STAFF tell me i need take the responsibility on updating the system. Haha.
    I NEED TAKE MY risk on updating to ios6.
    As my iphone4s is out of warranty, the staff told me need to paid 1560HKD to repair.
    I using ios 5 without ANY PROBLEM just because i need install new apps which require ios6.1
    Now the other iphone4s (I got 2 total, one self one my wife) not planning to upgrade, or will not interest iphone 5, who knows if update ios 7 will got something else error and told me is personal fault.

  • Help!!! I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.

    I can not make or receive calls! other functions itself. Internet, sms, whatsapp work. I restored as new iphone from the phone and from itunes and still not working.
    Sorry for my english i'm spanish

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • The Notification Center Yosemite primary user does not work in my Macbook pro and the other users if it works.

    The Notification Center Yosemite primary user does not work in my Macbook pro and the other users if it works. How can I fix it?

    The Notification Center Yosemite primary user does not work in my Macbook pro and the other users if it works. How can I fix it?

Maybe you are looking for

  • HTTP_RESP_STATUS_CODE_NOT_OK - HTTP message to XI system

    Hi, We receive this error when trying to post HTTP message to XI system. Have edited the username, password in SICF, xi->engine but it did not solve the problem. Can you please let us know if there is anything else we can do. Regards, Amar

  • Pie Chart / Query : Top 3 and Remainder

    Hi I am trying to develop a template, which shows various exception information to the end user. There are approximately 20 exception scenarios which are analysed each night and data stored in the cube. This information is then related back to the en

  • How can I recover deleted iPhoto photos

    Hello, Just a few weeks ago, I noticed my hard drive was nearly to capacity on my imac, so thanks to the boards here, I moved my entire iPhoto library to an external hard drive.  The move was successful, however, recently I was organizing photos in i

  • Transferrng Data from Old Computer

    I have a 2008 MacBook and I just purchased a 2010 MacBook Pro. I realize I had the opportunity to transfer all the data from my 2008 MacBook to my new MacBook Pro when I first turned on the MacBook Pro BUT I for a number of reasons I did not. For one

  • No composite image, no extension

    I'm on a Mac computer, and having been using CS2 for a long time. All of a sudden something has changed. This is what it's doing: When I try to mail someone a file by attaching it, there's no icon from the file. If I try to email the file to someone