Having multiple resultsets open at the same time

Hi,
I have the following piece of code to populate multiple resultsets returned by a call to a stored procedure in Sybase.
int l_noOfResultSetsReturned = 0;
int l_nextResultSetToPopulate = 1;
boolean l_isResultSet = l_CallableStatement.execute();
        while( l_isResultSet )
            switch ( l_nextResultSetToPopulate )
                case 1:
                    l_reportListResultSet =  l_CallableStatement.getResultSet();
                    break;
                case 2:
                    l_inputSetterResultSet = l_CallableStatement.getResultSet();
                    break;
                case 3:
                    l_outputGetterResultSet = l_CallableStatement.getResultSet();
                    break;
                case 4:
                    l_outputColumnHeaderResultSet = l_CallableStatement.getResultSet();
                    break;                     
                default:
                    //throw new CubeInvalidNumberOfResultSetsException();
                    System.out.println(" More than 4 RS returned");
            l_noOfResultSetsReturned++;
            l_nextResultSetToPopulate++;
            l_isResultSet = l_CallableStatement.getMoreResults(PreparedStatement.KEEP_CURRENT_RESULT);
        }The problem is that when I try to run this, I get the following error:
java.lang.AbstractMethodError: com.sybase.jdbc.SybCallableStatement.getMoreResults(I)Z
I am using NetBeans 3.6 as the IDE with the java version 1.4.2_06. I got this error when I tried using jconnect45.jar for the driver part. I also tried the same with jconn2.jar. It also gave me the same error.
I need someway to ensure that the four resultsets are open for further down the line processing. Any help would be most welcome.
Thanks and regards,
Ganesh

I think the AbstractMethod Error is caused by calling a method which is not available on your JDBC Driver. This means you are using a JDBC 3 method on a JDBC 2 driver (or JDBC 2 on JDBC 1 driver). Check the JDBC version of your driver and use only the methods allowed for the JDBC driver version you have (or get a newer one).
Good Luck!

Similar Messages

  • Having multiple environments open in the same thread.

    Dear Sir,
    I have a question about the concurrency model inside the bdbje. I read the documents and faqs and wrote some simple
    programs using it.
    Here is my question, from my understanding, one can open an environment in multiple processes assuming that only
    one of the environments is opened for writing. I would like to know how can I open one read environment
    and one write environment in the same process. Since in my application, reads and writes can be initiated from
    multiple processes [assuming that always having at most one writer]. In my tests when a process receives
    a read requests it creates an environment for reading, and if during the reading process the process receives
    a write request, it create a new environment to handle the write request. This simple thing throws the following exception:
    je.env.isReadOnly is set to false in the config parameter which is incompatible with the value of true in the underlying environment
    It seems like I can't have multiple environments with different configurations open at the same time in the same process, i would like
    to know if this is really the case, are there any option that I can tweak to fix this.
    Thanks,
    AliS

    hello,
    An immutable property of an Environment can not be changed
    at runtime. The ReadOnly property for an environment is one of
    the few immutable environment properties. Hence, the IllegalArgumentException
    was thrown when your application tried to open an environment handle as
    ReadWrite when a handle had already been opened ReadOnly. All environment
    handles opened by a single process must have the same value for immutable
    properties.
    You can find some additional information is at:
    http://www.oracle.com/technology/documentation/berkeley-db/je/java/index.html
    under: EnvironmentConfig
    thanks,
    Sandra

  • Can ADF keep multiple pages open at the same time?

    My company is currently developing an application to upgrade a client's FORMS system to one based on ADF. One of our client's biggest complaints with the new technology is that he can't work on many tasks at the same time, because our application can't work with "tabs" or "different windows", like Forms can with the "open form ()" function.
    Currently, we use a page called "main.jspx" with the main menu and a region under it, where we load all the "jsff" pages, which do all the different tasks in their systems (like autorizeBuyOrder.jsff, createNewOrder.jsff, etc...).
    Right now, I can only have one "jsff" page loaded on the region at once, and I wanted to make my application able to load and keep track of as many as the user wants. I was thinking on something like a tabs system, or multiple windows system. Does ADF provide any elegant way to do this? Any material you can recommend me?
    Much appreciated,
    Daniel

    Daniel Kaiser wrote:
    Hm, yes, this looks like it could be a possible solution for my problem. I'm gonna try to apply this to my app and get back to you. Thanks for the helpful answer!If you will have any questions on the application of the UI Shell template, then it is better to ask they here
    ADF UI Patterns & Best Practices

  • Can't have multiple videos open at the same time?

    I often start buffering another video when one is finished, so I usually tend to have 3-4 videos open at times. However, about a week ago, the adobe flash plugin would crash. So, I followed this guide:
    http://support.mozilla.com/en-US/kb/The+Adobe+Flash+plugin+has+crashed?style_mode=inproduct
    I also disabled the plugin container. Now, the plugin stops crashing, but firefox stops responding whenever I open a third video. Then, firefox itself crashes. Please help!
    == This happened ==
    Every time Firefox opened
    == About a week ago.

    The same thing just happened when I opened a second video instead of a third one.

  • [SOLVED] Having multiple DEs installed at the same time

    Hi
    I'm currently using KDE but I would like to try other DEs like KDEmod and XFCE. How can install and try these DEs without removing KDE?
    Last edited by paldepind (2010-03-18 16:30:19)

    You don't have to remove any DE/WM to use another. You simply have to start the one that you wish to use. Normally this is done either through the ~/.xinitrc script (by adding the neccesary line for the DE/WM you wish to use and commenting out the rest) or manually by running "xinit /usr/bin/startkde" or something along those lines.
    If you wish to use Fluxbox, Openbox or any such WM it is quite possible to run them without a DE (by running, say, openbox-session through your .xinitrc) but you will most likely have to tailor the "desktop" experience on your own. For example Openbox comes with no file manager, no taskbar/tray, it doesn't even support wallpapers on it's own. But you can choose your own utilities for such tasks rather easily.
    All of this is thouroghly explained in their respective Arch Wiki pages so just read up and have fun.
    Last edited by DeVelox (2010-03-17 20:45:50)

  • How do I open multiple Firefox home pages? I want all of my different Firefox email accounts open at the same time. I recently upgraded to Win7 and now I have to close and open Firefox to access another email acount!

    I want 3 separate, distinct Firefox home pages for each of my 3 email accounts to be open at the same time.

    Questions are typically followed by a question mark. My answer answered your question.
    Firefox doesn't do email, so there are no "Firefox email accounts". If you are accessing "email" with Firefox, you are using web mail. Some web mail services don't allow for direct access, they want their users to access their email from a "portal" or "main" page and will re-direct any attempt to load an "internal" web site page back to the main page.
    As far as loading 3 different web mail accounts at the same time, if they are in the same domain it won't work on Firefox without a Firefox addon. http://br.mozdev.org/multifox/
    IOW, if those three email accounts all with Yahoo, without that add-on you would have to logon to each email account separately and log out of the first before logging into the 2nd. Then log out of the 2nd before logging into the 3rd. Firefox isn't capable of having multiple session cookies for simultaneous logon's to the same server. That add-on provides that "multiple sessions cookies" feature.

  • I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps.

    I want to open a folder in a separate window by clicking on it.  For some reason when I click on a folder it just replaces the one I was just in.  I want them both to be open at the same time without having to go through several steps. Old apple operating systems made it easy to have several folders open at one time. 

    Eric, thanks that works but seems like an extra added step also to do it that way.  I've got to move and organize a ton of files and I'm looking for a easy way to get this done.  I could also open the folder into a separate tab and then drag the tab out so it becomes an open window but thats a lot of fussing around also with extra steps.  Not sure why these newer operating system seems more confusing and less user friendly than what they used to.  In the past I could just click on any folder and it would open in a separate window making it really easy to copy or move files from one place to the other just by simply dragging them from one window to the other.  Seems like I'm going through several extra steps now to do a simple task. 

  • Is it possible to have 2 profiles open at the same time? instead of having to open and close firefox everytime you want to switch.

    I have several profiles and was wondering if it is possible to have more then one open at the same time? At the moment I am having to close the current firefox browser to open up a different profile.

    See these support articles. <br />
    http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • Help I can only have max. 3 osx apps. open at the same time ?

    Help I can only have max. 3 apps. open at the same time ?
    If I have 3 apps. open, and try to open a 4th. this message comes up :
    The application "Mail" cannot be launched. -10810
    Of cause if I'm trying to open up something else than mail, lets say iPhoto, it will say "iPhoto".
    This is very weird to me, and I'm normally pretty good at solving issues myself, but I'm stuck with this one.
    Please help out

    I've had this quite a lot too. Do you find that under these conditions you can't load a disk image either?
    At first I put this down to Rosetta taking up a lot of resources. I was running OmniWeb with a lot of pages open in the workspaces so I've switched back to Safari until OmniWeb is UB. This morning I read that having Windows file sharing switched on helps to cause this problem. I switched this off, rebooted and ran disk utility to repair disk permissions and I've been running OK since then. I've currently got 13 apps open plus Finder and Widgets. They include 2 bigguns, Eclipse/MyEclipse and Visual Paradigm for UML. It'll probably stop working now I've written that.
    I run a MBP 17 with 2GB memory. My guess is that Windows file sharing does cause problems. I just hope Apple has resolved this in 10.4.7... whenever that is.
    Gareth

  • Why does mountain lion "bunch up" all my microsoft office documents that I have open when I hit f3? When I had snow leopard for example, if i had 4 or 5 different microsoft office documents open at the same time I could hit f3 and easily pick one of them

    Why does mountain lion "bunch up" all my microsoft office documents that I have open when I hit f3? When I had snow leopard for example, if i had 4 or 5 different microsoft office documents open at the same time I could hit f3 and easily pick one of them.
    Notice how in the photo, I can't identify which MS office document I would like to switch too. Perhaps since the Dashboard and Desktop windows are at the top of my screen now Apple doesn't let you have all the applications take up the full screen and be sized individually so that you can have a better idea on what to pick.
    I like the idea of grouping to an extent... If you have a bunch of random things it was hard for me to decifer between what was safari, chrome, or word. But now that they grouped them like this, if you have multiple pages of one program running, you can't switch between those pages easily like before.

    If I wanted to open any of my Applework documents I had to open them one at a time and resave them with pages. This could take weeks.I have 1000s of apple work documents.
    You don't have to open and re-save every AppleWorks document you have right now. Just wait till you need one, then do it. The documents aren't going anywhere.
    Am I dealing with Microsoft? This was a BIG surprise to me that Apple would release an OS without testing all programs.
    Frankly, it is not Apple's responsibility to ensure compatibiltiy with every piece of software available for OS X. That is the responsibility of the software vendor. Lion has been available to developers for several months before it's release, so Microtek had plenty of time to update their software. Yet they did not. How is that Apple's fault? I think Apple was very generous to give you a refund for Lion.
    I'm not trying to belittle your frustration but I do think your ire is misplaced.

  • I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    Try one of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • How do I view multiple inbox folders at the same time in Mail?

    I want to configure Mail to show me multiple inbox folders at the same time. I want to be able to split the screen and show in the top section unread messages, then messages I've marked with label A, then messsges I've marked with label B, then everything else in my inbox (like using the multiple inbox feature in Gmail). Is this possible?

    Just figured it out - I can select multiple messages as you suggested when I am not in full screen mode.
    So once I come out of full screen mode - then the multiple windows open.
    QED

  • How can i run two firefox's so i can have both my face book acounts open at the same time without one logging in to the other

    as you can see, im trying to have two firefox windows open so i can have both my facebook accounts open at the same time on the same pc
    all i get just now is they both log in to there user but ass soon as the page refreshes one drops its user and logs into the other

    Try of of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • Can I have mail and contacts open at the same time

    I really want to be able to have one or more iCloud Apps open at the same time; for example, I may be looking up some info on a contact or in calendar in order to mail someone. At times I have just opened a different tab, but it seems that iCloud then gets messed up.
    I am running Windows 7 at work and the latest version fo Chrome.
    Any help would be greatly appreciated.
    Bryan

    Hi,
    I don't know in Chrome, but in Safari (pc or mac) you can open icloud.com twice on two different tab or windows and open one with contact and the other in Mail without messing up.  What kind of mess to do you experience?
    There is no other options to do what you want to do.  You need to click on the little top cloud to switch from one to another.
    Beside, I don't understand why even 2 open tab would help more than having to switch via the cloud icon.  I may need to cut/paste some info from contact or calendar from time to time, but switch via the cloud icon is not really painfull.

Maybe you are looking for

  • Associative  array binding - poor performance

    Dear All i have very very low performence when i am inserting a binary array using associative array bind. i mean when i insert huge jagged binary array. the jagged array has BinarryArray[0][0]........BinarryArray[0][8000] BinarryArray[1][0]........B

  • Why so much space used

    Hello All, Being a newbe this may have been answered but I will ask any way. My Daughter received a ned iPod Touch for Christmas so I got the iPod Gen 5 Video..... hand me down. I have around 2,500 songs on my iTunes and just did a Sync to the 30GB u

  • Number of the Invoice the Transaction Belongs to (INVFO-REBZG)

    Hi, - in MIRO transaction depending on the value of field List field: transaction/event RM08M-VORGANG - in tabstrip "Payment" - i need to make obligatory field Number of the Invoice the Transaction Belongs to  INVFO-REBZG is it possible? How can i do

  • Using Cue Points to advance to next scene

    I'm pretty new to AS3. I'm a designer trying to do it myself. What I'm trying to do is use a cue point at the end of my FLV (which is loaded using ui loader in my flvSWF) to go to the next scene in my mainSWF file. here's the code I'm using in my flv

  • Cannot read/write error message when synching

    I've been doing my best to get my iPod up to date, but every time I try to sync the message that the drive is not able to be read from or written to appears about an tenth of the way in. I've restored my iPod and updated iTunes but the message contin