When i execute this code i get an error " SQLException: Driver not capable"

Hi,
I have a piece of code that should update DB2 Database
The code is as follows :
try {
con = DriverManager.getConnection(url,"administrator", "PCTEAM2000");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
     ResultSet.CONCUR_UPDATABLE);
ResultSet uprs = stmt.executeQuery("SELECT * FROM GEETHA");
uprs.moveToInsertRow();
uprs.updateString("NAME", "Kona");
uprs.insertRow();
uprs.moveToInsertRow();
uprs.updateString("NAME", "SAI");
uprs.insertRow();
uprs.beforeFirst();
while (uprs.next())
String s = uprs.getString("NAME");
}uprs.close();
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
Thanks

con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.);
some drivers wont support CONCUR UPDATABLE...
by defualt all drivers are TYPE_SCROLL_SENSITIVE.so its not a problem.
check your driver documentation whether is support CONCUR_UPDATABLE r not.
chek for jdbc 3.0 complaint jdbc driver ..
sree

Similar Messages

  • I have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this

    i have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this bluetooth with my devices, thanks

    sos1der wrote:
    pairing the apple equipment is not a big deal just wanted to add songs from itunes wirelessly.
    You can only add songs to your iOS device from iTunes via Wi-Fi sync or via your cable, not Bluetooth.
    sos1der wrote:
    but i tried paring my LG bluetooth so i can listen to music on my computer wirelessly buy it gives me the same error message
    That's an entirely different issue, unrelated to your iOS devices.

  • TS3212 i have windows 7 and when trying to install itunes i get the error message "can not access network location %PUBLIC%\Desktop\."

    i have windows 7 and am having trouble installing itunes 10. during the installation process, i get the error message "can not access the network location %PUBLIC%\Desktop\." i cant find anything online that helps me and without itunes my ipod touch ios basically useless. please help me!!

    I've seen a report here of the following instructions helping with that particular variation of the 1606 error message:
    http://quicksolver.blogspot.in/2012/02/unable-to-install-office-2010-on.html

  • When i executed this class file  i am getting runtime errors

    when i executed this class file i am getting runtime errors
    code is :
    import java.awt.event.*;
    import java.awt.*;
    public class Test extends Frame
    java.awt.Window w;
         TextField t;
         Test()
         t=new TextField(20);
         add(t);
         addWindowListener(new WindowAdapter()
                             public void windowDeactivated(WindowEvent ev)                               {                    
                                  w.toFront();          
                                  System.out.println("hai");
         setSize(300,300);
         setVisible(true);
    public static void main(String args[])
    Test t =new Test();
    after executing that class i am getting this errors
    Exception occurred during event dispatching:
    java.lang.NullPointerException:
    at WindowEventDemo.windowActivated(WindowEventDemo.java:76)
    at java.awt.Window.processWindowEvent(Window.java:612)
    at java.awt.Window.processEvent(Window.java:576)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Window.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
    if anybody know how to pls help me

    You are using w that you have not done anything with.
    Add following code to the begining of your cinstructor:
    w = this;
    Then it should work.
    //Anders ;-D

  • When I execute my code that contains SetCtrlVal, I get the following error:

    When I execute my code that contains SetCtrlVal, I get the following error:
    “Invalid argument type found double expected int.”   The variable in question is declared double, and from reading the help info, the variable should adapt to the declared type.
    Solved!
    Go to Solution.

    A typical reason for this error is using a wrong panel handle in SetCtrlVal: check that the handle passed to the function effectively is the one returned from LoadPanel or NewPanel function.
    Another common issue it trying to address a control on a tab page using the handle of the panel that holds the tab control: you must consider that each tab page has its own panel handle as it were a separate panel; you can retrieve the handle associated with tab pages with GetPanelhandleFromTabPage () command.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • HT201210 I am using a 3GS iphone.While attempting a download of the new OS IO6 my phone has frozen on the itunes screen. When i attempt to restore I get the Error code 1611. This happens on different laptops. I've followed all the given resolutions with n

    I am using a 3GS iphone. While attempting a download of the new OS IO6 my phone has frozen on the itunes screen. When i attempt to restore I get the Error code 1611. This happens on different laptops. I've followed all the given resolutions with no change.I am using a 3GS iphone.While attempting a download of the new OS IO6 my phone has frozen on the itunes screen. When i attempt to restore I get the Error code 1611. This happens on different laptops. I've followed all the given resolutions with no change?

    If you are having the same issue on several computers then it is a hardware issue! Not a software issue! Replacement is the only resolution!
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne

  • HT201413 I am receiving the error code (-50). The original itune songs etc were installed on a win 7 32 bit system and I have now moved to a win 7 64 bit system. Is this why I get the error code? I can access the itunes store to view my account. Any ideas

    I am receiving the error code (-50) when trying to access the itunes store. The original itune songs etc were installed on a win 7 32 bit system and I have now moved to a win 7 64 bit system (same PC) and have copied the folder across. Has the switch from 32 to 64 bit caused the problem? Is this why I get the error code? I can, however, access the itunes store to view my account. Any ideas please?

    Hello,
    The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • I try to drag certain loops but when i drop them in i get the error:   Result code = -5000     File = GarageBand-Temp-B262E454.tmp

    I try to drag certain loops but when i drop them in i get the error: 
         Result code = -5000   
         File = GarageBand-Temp-B262E454.tmp

    Hi,
       I've been trying to solve this problem for a school my companey has set up. After some research and looking at a number of similar posts I tracked the problem down to loops that came with jam packs or with apps like soundtrack pro. These loops are located in /Library/audio/appleloops. If you give everyone read and write access to this folder and it items the loops seem to work.
    I also noticed that once the loops were working agin GB had to convert the sample rate so it's possible that it's the sample rate on certain loops that causess the issue or prehaps the need to change the rate.
    Hope this helps.
    Matt Fleming
    (ACSA)

  • When trying to open iphoto I get the error message "You can't open the application iPhoto because it may be damaged or incomplete." How do I fix this and get my photo's back?

    When trying to open iphoto I get the error message "You can't open the application iPhoto because it may be damaged or incomplete." How do I fix this and get my photo's back?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • When I try to install Adobe Acrobat XI Pro, I get an error message, "Key not valid for use in specified state".  What is this?

    When I try to install Adobe Acrobat XI Pro, I get an error message, "Key not valid for use in specified state".  What is this?

    See if this post by turingtest2 fixes it : key not valid for use in specified state

  • I purchased two songs on i-tune and when I attempt to down load them, I get an error,"you do not have enough access privilege for this operation.?????

    I purchased two songs on i-tune and when I attempt to down load them, I get an error,"you do not have enough access privilege for this operation.?????

    To fix Home folder permissions
    Open the Terminal application in the Utilities folder.  At the command line prompt enter or paste the following command line:
    sudo chown -R `id -un`:`id -gn` ~
    Press RETURN.  You will be prompted to enter your admin password which will not be echoed.

  • When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    If you'd asked a question in your original post it might have solicited more pertinent responses. As it is, you were stating a fact. No one knew whether you considered that fact a problem, or what you were hoping to gain by doing so.
    The simple addition of 'can anyone help me fix this so I can run Terminal' would have counted for a lot.
    As it is, your solution is likely to require the Terminal, so you're going to need to fix that one way or another. The simplest would be to create a new admin account (System Preferences -> Users & Groups) then log in using that account.
    Then try and launch the terminal. If that works the problem is specific to your original account and can likely be fixed via some command-line tweaking. I'd start with:
    dscl . read /Users/<username>
    (where <username> is the short name of the account having a problem). This will show the records in the directory data for your account, one of which will be UserShell. Chances are that value is invalid, or missing, and can be corrected via:
    sudo dscl . -change /Users/<username> UserShell <currentValue> /bin/bash
    (where <currentValue) is the current setting for UserShell) which will change the user's shell to /bin/bash (the default).
    Of course, you might already know this and already tried, but since you didn't say so in your original post it's worth checking.

  • When trying to install Itunes 10.2 I get an error message "Could not access network location %APPDATA%\."  How can I fix this?

    When trying to install Itunes 10.2 I get an error message "Could not access network location %APPDATA%\."  How can I fix this?

    With that particular variety of 1606 (it's a 1606 error message even though the 1606 error message number isn't returned by the iTunes installer), the following Microsoft document is worth a try:
    You receive an "Error 1606" error message when you try to install or remove a Microsoft program

  • I downloaded itunes but when i try to install i get an error saying "There is a problem with this windows installer package. a programe required for this install could not be run" can anyone help?

    I downloaded itunes but when i try to install i get an error saying "There is a problem with the windows install. A programe needed to install could not be open"
    can anyone help?

    Ok, Below is what worked for me somewhat. 
    Okay ... try downloading and saving a copy of the iTunesSetup.exe to your PC from the Apple website:
    http://www.apple.com/itunes/download/
    Now download a trial version of WinRAR:
    http://www.rarlab.com/download.php
    Open the iTunesSetup.exe with WinRAR, and try to run the standalone install of Apple Application Support from the AppleApplicationSupport.msi you find in there.
    It works now BUT there are still problems.  It is not allowing or recognizing my Cd/DVD player and i CANT burn.  Looking still for this fix.

  • When attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    when attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    I did a search on my system and found the Photoshop has a fastcore plug-in.  Creative Cloud includes a subscription version of CS6 version 13.1.2.   I do not know if you installed that or not.  The cc un-install may have done something.  You may need to use Adobe Cleaner then Install The Perpetual CS6 version of Photoshop  CS6 version 13.0.6 Mac or Photoshop  CS6 version 13.0.1.3 PC and not the subscription CS6 extended version 13.1.2.  Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6   If you need to download the CS6 installer Download CS6 products.
    You may also be able to recover your cs6 using an old system backup
    fastcore.8bx on my system...

Maybe you are looking for

  • Using Mts With Oracle Database

    I m building Com using Visual basic.I have made them transactional using MTS.first i have firstly user Sql Server database.the components are working properly.but when i have made back end as Oracle the Trasactions fails. if i make them not Mts objec

  • Hide Dynamic columns and remove space

    I have an application that allows users to generate a Crystal report containing selected columns.  A user is able to check which columns should appear on the report from a web page.  I'm able to display and suppress the dynamic columns but the space

  • What needs to be configured on a webstart client pc

    Hi there, Here is my problem: I have a J2SE application which is being deployed with WebStart. Everthing works fine for me and most of the users: They click on a link to the JNLP-File, their Internet Explorer pops up and immediately Java WebStart sta

  • Can't open Nikon D600 Raw Files

    I have installed my second copy of PS CS6 on my laptop. Update says everything is up to date, but the D600 files won't open. (They do on my desktop.) I tried a manual uplaod of ACR 7.3 (couldn't see 7.4 which is out there.) Installation failed. What

  • Flashing adapter led lights - not charging

    Often (but not always) my charger flashes orange-green-orange-green etc, and the symbol in the toolbar tells me 'battery is not charging'. I had to replace my charger recently, but it was doing it with a spare that I was borrowing too. I hoped it was