TopLink and ResultSet: ojdbc14 vs. ojdbc6 - Closed command

Hi all,
I have problem with ojdbc library. We updated our ojdbc library from ojdbc14 to ojdbc6. But now, we have problem with SQLExcpetion: "java.sql.SQLException Closed statement".
We have following code:
Object result = session.executeQuery(query, args);
Map map = (Map)((Vector)result).firstElement();
// the data is in data type OracleResultSetImpl !!!
OracleResultSet out_data = (OracleResultSet) map.get(EmtasConstant.GRID_PROCEDURE_DATA_OUT);
OracleResultSetMetaData metadata = (OracleResultSetMetaData) out_data.getMetaData();
If we used library "ojdbc14.jar" everything works fine, we get metadata, read data from resultSet, etc... No problem!
But if we using "ojsbc6.jar" and call getMetadata, then throws: "java.sql.SQLException: Closed command: getMetaData" .. or "ava.sql.SQLException: Closed command: next()" or whatever we call on OracleResultSet out_data (we try OracleResultSet and ResultSet too)..
If we used "ojdbc14.jar" and I call out_data.close(), they throws same exception => Why is the ResultSet in library ojdbc6.jar closed??????
Any idea? I'm really stuck and I all day trying to come to solve the problem, but I resolved nothing.
Pls help!
Thx!
Best regards, KLD!
Sry for my English ;)

Yes, I have newest version of TopLink (11.1.1. ...) and Java (1.6_09).
Or, is any option how to convert ResultSet to any "normal" java object (like hasmap,collection, list, ...)
I returned multiple cursor objects from stored procedure, and I resolved it as follows:
More output cursors with StoredProcedureCall?
but now I have problem with ResultSet and i don't want call more times the procedure call (first option)...

Similar Messages

  • Closing Statements and ResultSets

    I just recently realized that you need to close Statements and ResultSets in order to avoid getting the "Too many cursors"-message.
    My question is:
    Do you need to close both Statements and ResultSets?
    - not that it's a problem...
    if so:
    Does it matter which one you close first?

    I usually place the stmt.close() code in my finally block, to ensure that the statement gets closed, even if a SQLException occurs during the query/update. The ResultSet does not explicitly have to be closed, ... it is automatically closed when the Statement is closed, or if a new query is run on the same statement.

  • JDBC: Closing Connection does it close statement and resultset

    In my application I am facing ORA-0100 Maximum open cursors exceeded problem. We are executing quite a few queries and stored procedures before we close the connection object. But in few places statements and resultsets are not closed. Can these be a problem? Shouldn't they be automatically closed when the connection is closed?
    We are executing this block of code in a loop.

    in few places statements and
    resultsets are not closed. Can these be a problem?Yes.

  • I was adding items with the intent of command z 'ing them back to their original when it crashed, autosaved, and my original numbers were lost to the temp numbers plugged in... how can i get back to the previous version? Because it had closed, command z

    I was adding items with the intent of command z 'ing them back to their original when it crashed, autosaved, and my original numbers were lost to the temp numbers plugged in... how can i get back to the previous version? Because it had closed, command z

    Sorry, this happened in CLOUD numbers....

  • After upgrading to 3.6.12 my browser is not opening pop-up windows and while closing the browser giving a message that some tabs are open and shall the same be closed? I have not encountered this problem with eralier version. Is there any known issues?

    Some of my web pages open a new pop-up window for entering credentilas and display sensitive information. After upgrading t0 3.6.12 i found that firefos is not opening pop-up windows (earlier version allowed). When I close the browser, it gives a quit message saying there are unclosed tabs and windows of firefox. shall they be saved for next time start.
    Also observed that the memory usage (from Task manager)is very high compared to earlier ones and the process is not closed even if I close the browser.

    3.6.13 is also behaving similarly.

  • What is the default key command for the COMMAND key?I seem to have changed it somehow along the way and now when I push the command key it hides all windows or shows desk top I need to correct this as soon as possible-.any ideas?

    What is the default key command for THE COMMAND (apple) key? I seem to have changed it somehow along the way and now when I push the command key (only) it hides all open windows and shows the desk top and when I push it again it shows all windows again...I need to return to default A.S.A.P. just this one key...Any ideas? Thanks in advance...

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?

    I am running OS 10.6.8 and Safari 5.1.  Option-Command-Escape now brings up Front Row.  How can this be fixed?
    Also, trying to copy portions of articles from Safari (5.1) to MS Word now results in the twirling ball. Any solutions?

    Try using the other Option (Alt) key. The reason I suggest that - the real command combo for Front Row is Command-Escape; yet yours was being activated when you pressed Command-Option-Escape. That would indicate that Finder was not responding to the inclusion of Option in the key combo. The simplest explanation for that would be that the Option key you are using is not working for some reason.
    One other 'simple' possibility - just to make sure (in case you are using a non-Apple keyboard), Option is the key adjacent to each Command key.

  • My MacBook Pro will not open documents via Adobe Reader. Says I need to aspen Reader in Browzer and accept terms and contitions first. Went through this 3 times and got through to "Finish", closed browser and then retried. No luck. What's going on?? Have

    My MacBook Pro will not open documents via Adobe Reader. Says I need to aspen Reader in Browzer and accept terms and contitions first. Went through this 3 times and got through to "Finish", closed browser and then retried. No luck. What's going on?? Have no problem with same documents on iPhone and iPad

    After you finished installing did you launch Adobe Reader from your /Applications folder and accept EULA(End User License Agreement)?
    What is your Adobe Reader version?
    What browser are you using and browser version?
    Thank You.

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • Acrobat won't open pdfs on clicking file icon and won't quit with key command

    Acrobat won't open pdfs on clicking the file icon and won't quit with key command.

    IF you command I on any .pdf file, what does open with show?
    Restore the Acrobat preferences files (Mac OS)
    Restore the Acrobat preferences files to eliminate problems caused by a damaged preferences file.
    Note: Re-creating the Acrobat preferences files restores settings to their defaults. 
    Quit Acrobat.
    Drag the following files from the Users/[Username]/Library/Preferences folder to the Desktop:
    Acrobat WebCapture Cookies
    com.adobe.Acrobat.Pro.plist or com.adobe.Acrobat.Pro_x86_9.0.plist
    Acrobat Distiller Prefs and com.adobe.Acrobat.Pro.plist (if you are troubleshooting an issue with Distiller)
    The Acrobat folder, which contains preferences for forms (MRUFormsList), collaboration (OfflineDocs), and color settings (AcrobatColor Settings.csf)
    Restart Acrobat

  • I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    Hi there. Hear are some other options . Hold down for click on the track pad while restarting and keep it down all the way thru boot. Or use right click on a mouse. If it's stuck, sometimes sticking a business card in top edge of slot while trying the eject option can work.

  • How to duplicate a target and add resources in xcode using command line?

    I am trying to use command line tools to create, add resources, build, archive and export to ipa in xcode. I could do the Build, Archive and Exporting to IPA through the command line tools(xcodebuild). But I also wanted to duplicate the target in the same project,add a new Info.plist to the duplicated target resource through command line itself. How to do it? I could not find any valuable answers by Googling. I could not find any proper documentation also in Apple Sites.
    Is there any tools that can be used to perform these? I don't want to use the UI. Please, help me out.

    The Mac App Store is not appropriate for command line tools. You can use any language you want.

  • Statement and ResultSet Interface type of Object

    Hi,
    Can any one explains me where exactly (in which Class) the implementation of the Statement and ResultSet Interface type of Object Instance be created
    Regards
    Krishna

    I dont really understand what you are trying to ask but:
    Your JDBC driver has concrete implementations of Statement and Resultset. If you want to know what classes are being used try something like:Connection con = ??;
    Statement st = con.createStatement();
    ResultSet rs = st.executeQuery( "???" );
    System.out.println( "Connection class: " + con.getClass().getName() );
    System.out.println( "Statement  class: " + st.getClass().getName() );
    System.out.println( "ResultSet  class: " + rs.getClass().getName() );

  • When using safari, my screen will suddenly scroll all the way to the bottom and will not resound to any commands.  This affects all running programs.  How do I stop this?

    When I am on the internet, my screen will suddenly scroll all the way to the bottom and will not respond to any commands.  All of the other programs are then affected the same way and you cannot even use the commands at the top of the screen becayse they all scroll to the bottom.  After a while, the screen resets by itself.  Help.

    It sounds like a problem wih the backlight inverter. Usually they just go, instead of on and off.
    In a dark room hold a flashlight on the display when it blacks out. If you can see the items on the desktop, it's probably the backlight.

  • How do I get refund of a tv season in my itune. I want it removed and refunded due to no closed caption on it.

    How do I get refund of a tv season in my itune. I want it removed and refunded due to no closed caption on it.

    All sales are final

Maybe you are looking for

  • Business area wise Balance

    How can i get report of Vendor balance depending on business area? Moderator: Please, avoid asking basic questions

  • IPod not putting out sound on right headphone

    As of yesterday, my iPod is not producing any sound through the right headphone. I've tried my headphones on other devices and they work, and also tried other headphones on my ipod and the right headphone still has no sound. It seems like a problem w

  • Why Doesn't The App Store Display Correctly on my MBP?

    Ever since OS updates were included in the App Store, I noticed that product icons never fully load on the storefront. I'm always having to reload the page to get everything to display properly and sometimes that doesn't work! Hey, Apple... fix your

  • Mail service in windows2003 server

    i have old server has windows 2003 server i want to apply mails through this server and i did that but my question  how can i connect between external mail and internal mail how can i create distribute list how can i backup mails

  • Need ABAP in SD, MM Document

    Hi,    Does anyone has some document about how to program ABAP in SD and MM?