Showing different exceptions for different ResultSetTypes??

For the code below, I am getting different exceptions for different ResultSet types.
ResultSet rs = stmt.executeQuery("Select * from usermaster");
rs.absolute(3);
rs.updateString("emailID", "newID");
rs.updateRow();
For ResultSet -> ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY, I am getting following exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid attribute/option identifier
     at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)
     at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)
     at DBConnector.<init>(DBConnector.java:56)
For ResultSet -> ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, I am getting following exception
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]String data, right truncation
     at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)
     at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)
     at DBConnector.<init>(DBConnector.java:56)
I am using SQL Server 2000, and JDK1.4 beta.
I am not able to identify what is going wrong here? Please help

ResultSet.absolute(int) is a JDBC 2.0 function,
currently most JDBC-ODBC driver only support jdbc
1.1,
check your jdbc driver.
It is so common why there is no compilation error, but
throw exception in Production.
RexI have JDBC2.0

Similar Messages

  • I have lost one of my devices (ipad2) and i cannot seem to find it on my findmyiphone app. all other devices show up except for this one. is there something i can do?

    i cannot seem to actively see/locate my ipad2 on my findmyiphone app. is there a way i can find it using the serial # of my device

    If the iPad was running iOS 7, the thief/finder will not ever be able to use it.
    iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • How To Show Different Artwork For CD With Same Name?

    In 2002, Chris Botti released a holiday CD named December. In 2006 he also released another CD named December with the only difference being track 2 (Ave Maria) & track 7 (I Really Don't Want Much For Christmas which are not included on the 2002 release. These are not additional tracks but replace 2 songs from the original 2002 release. The album art is different for both CDs. So, how can I show these two CDs with the same name and same artist but with different artwork in Cover Flow mode? Help!
    iMac G5 1.8 Ghz iMac 1.8 GHz G5 17" Mac OS X (10.4.8) 1.5 GB RAM   Mac OS X (10.4.8)  

    If you store Album artwork the way i described using Command I (get info) - then the artwork is actually EMBEDDED in each song and is carried with that song wherever it goes.. and in this case it doesnt matter if u had 3 copies of the same album - all identical. You could even save a diff image for each tarck if u wanted.
    If there is no artwork embedded, then coverflow places the image in a separate folder that is only referenced by iTunes for the whole CD.
    You also might want to turn off coverlfow and continue doing what u had been doing in the past - add you won.
    I also think i know what may be happening. You say they are identical except for track 2 - But problem is - I don't think iTunes can handle 2 identical CD's from the same artist.
    Here's an experiment:
    Goto any of the songs.... right-click and select "Show in Finder" the Finder will open and show you the song file and its location. Do you see one album once or 1 album twice?
    If you see 2 of everything, i would recommend the following:
    Rename the first album "December (2002)" and the second "December (2006)" then iTunes will definately separate them out.

  • I have a problem while typing in my MacBook pro. it is showing different characters when i type. for example: qw`e§r]t[y=   this is how when we type "qwerty|" can anyone help me pls?

    I have a problem while typing in my MacBook pro. it is showing different characters when i type. for example: qw`e§r]t[y=   this is how when we type "qwerty|" can anyone help me pls?

    You could just try changing your Input Sources under System Preferences>Language & Text:
    But I kind of doubt that's going to work. It may be a hardware problem or a system problem. If you take it into Apple they might be able to determine which and might advise a reinstallation of System software. I would take it to an Apple Store or an AASP but, first, make sure that you have a backup just in case they suggest a clean install of the system.
    Good luck,
    Clinton

  • Forms personilization - show different color in a field for all records

    Hi All,
    In forms personilization am trying to achieve the below one.
    Example:
    When querying for a person name with 'A%' and then say find, new form opens with the result.
    Say it has 10 records where person names starts with 'A'. If salary >5000, show different color to that person names field.
    As per the condition say 4 record satisfies. The requirement is when showing the result in new form with 10 records, need that 4 person nameso achieve (4 records) to be in different color. But I am able to achieve for 1st record, there after only if we navigate to other records and condition satisfies color is appearing.
    Let me know is there any possibility to achieve this.
    Thanks,
    Vinoth

    Hello,
    If it is tabular block and you want to fill only one item's color. Then then post query trigger should work. And you will have need to set through SET_ITEM_INSTANCE_PROPERTY built-in like this...
    Trigger = POST-QUERY (BLOCK-LEVEL)
    IF Your_Condition THEN
      SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');
    ELSE
      SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');
    END IF;-Ammad

  • Keychain showing different character for the password

    Hi just wanted to ask why my keychain is showing different character for my password in my AIM and Yahoo account? When i mark the show password its show plenty of letters but not the one i am really using. How can i show the right one?

    Hi Irvin,
    If you see a crazy corrupt password, I'd delete that item, ythen login yo AIM or Yahoo again to create a new one, unless you don't remember your PW, then try Keychain First Aid under the Window Menu item, then either check the Password under that item, change it, or delete it and start over.
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • How do I configure my iPhone to show different colours for my two calendars both from separate email accounts, both Exchange.

    How do I configure my iPhone to show different colours for my two calendars both from separate email accounts, both Exchange.

    It does so by default... what's the issue?

  • HT1688 My album art is all messed up.  It plays a song and shows the art for a completely different artist/album.  ***?

    It plays a song and shows the art for a completely different artist/album.  ***?

    Have you tried re-building the artwork?
    Try unchecking "display album artwork" in the music preferences section when your iPod is connected and click "apply". Then sync your iPod.
    Then check "display album artwork" in the music preferences section when your iPod is connected and click "apply". Then sync your iPod again.
    This should resync the album artwork to the iPod.
    If this does not work, you might need to restore the iPod and reload the songs in order to correct this error.

  • In Cover Flow, a compilation album shows different covers for each song.  How do I make it show one cover for the whole album?

    In Cover Flow, a compilation album shows different covers for each song.  How do I make it show one cover for the whole album?

    Also in the first page of Get Info for all tracks set the Album Artist to be Various Artists.
    If you select all the tracks and right click to get info then you can do all the tracks in one go

  • How to show multiple messages for a single exception

    hi
    Please consider this example application created using JDeveloper 11.1.1.3.0
    at http://www.consideringred.com/files/oracle/2010/MultipleMessagesExceptionApp-v0.01.zip
    It has a class extending DCErrorHandlerImpl configured as ErrorHandlerClass in DataBindings.cpx .
    Running the page and entering a value starting with "err" will result in an exception being thrown and multiple messages shown.
    See the screencast at http://screencast.com/t/zOmEOzP4jmQ
    To get multiple messages for a single exception the MyDCErrorHandler class is implemented like
    public class MyDCErrorHandler
      extends DCErrorHandlerImpl
      public MyDCErrorHandler()
        super(true);
      @Override
      public void reportException(DCBindingContainer pDCBindingContainer,
        Exception pException)
        if (pException instanceof JboException)
          Throwable vCause = pException.getCause();
          if (vCause instanceof MyMultiMessageException)
            reportMyMultiMessageException(pDCBindingContainer,
              (MyMultiMessageException)vCause);
            return;
        super.reportException(pDCBindingContainer, pException);
      public void reportMyMultiMessageException(DCBindingContainer pDCBindingContainer,
        MyMultiMessageException pException)
        String vMessage = pException.getMessage();
        reportException(pDCBindingContainer, new Exception(vMessage));
        List<String> vMessages = pException.getMessages();
        for (String vOneMessage : vMessages)
          reportException(pDCBindingContainer, new Exception(vOneMessage));
    }I wonder if calling reportException() multiple times is really the way to go here?
    question:
    - (q1) What would be the preferred use of the DCErrorHandlerImpl API to show multiple messages for a single exception?
    many thanks
    Jan Vervecken

    fyi
    Looks like using MultipleMessagesExceptionApp-v0.01.zip in JDeveloper 11.1.1.2.0 (11.1.1.2.36.55.36) results in a different behaviour compared to when used in JDeveloper 11.1.1.3.0 (11.1.1.3.37.56.60)
    see http://www.consideringred.com/files/oracle/img/2010/MultipleMessages-111130versus111120.png
    When using JDeveloper 11.1.1.2.0 each exception seems to result in two messages where there is only one message (as intended/expected) per exception when using JDeveloper 11.1.1.3.0 .
    (Could be somehow related to the question in forum thread "multiple callbacks to DCErrorHandlerImpl".)
    But, question (q1) remains and is still about JDeveloper 11.1.1.3.0 .
    regards
    Jan

  • FSV showing different values when executed by different users

    Hi Experts,
    While executing FSV throug RFBILA00 we are getting different values when executed by differet users. Variant selection is same except the user (which is different). For one user report is perfect for another user some GL accounts were not displayed and some accounts shows different values.
    Anybody could help on this. Is there any userwise settings are there.
    Thanks in advance.
    Regards,
    Narayanan

    Hi,
    check user authorization, maybe one user has limited display authorization for some values (as they are linked to specific profit center,...)
    BR Christian

  • After connecting a late 2008 MacBook to an external monitor can I show different images on them?

    After connecting an external monitor to my MacBook(late 2008) is it possible to show different images on the two screens at the same time?
    TIA

    Yes. Open System Preference (under the Apple menu) and select Displays. See the instructions in this Apple article for how to continue.
    Best of luck.

  • MB5B shows different opening quantity when we select diffferent Stock Type

    Dear All,
    I am trying to run report MB5B - Stock on posting date with 2 different Stock Types:
    - Storage Loc/Batch Stock
    - Valuated Stock
    But the report shows different opening quantity,total receipt, total issue, but closing quantity is ok.
    Could you pls tell me the reason?
    Thanks
    Cao Huy

    Hi,
    MB5B transaction is used to display the stock on posting date
    It is not possible to view at the same time both Valuated stock and special stock. This is radio button input control,so any one of the stock type only possible to display the material document.
    This report display the material and plant vise material document number and total stock and total issue etc for the example,
    Plant            1256  test plant
    Material         TH1
    Description    steel rod
    Stock on 01/01/2010                   0.000  PC
      Total Receipts                      29.500  PC
      Total Issues                         3.000- PC
    Stock on 12/31/9999                   26.500  PC
    SLoc MvT S Mat. Doc.  Item Pstng Date          Quantity BUn
    TEST 101   5000003029    1 12/23/2009            1.000  PC
    TEST 101   5000003039    1 12/31/2009            1.000  PC
    Regards,
    thiru

  • CJR2 entries in version 0 (original) and EFC (copy) show different ? amount

    HI Team,
    Recently we copied data from Version O to Version EFC using T code CJ9F , When running CJ9F to copy V0 to EFC, the work centre rate has updated in Version EFC with the latest from Version  0 , Therefore, the CJR2 entries in version 0 (original) and EFC (copy) show different ? amounts: is this correct?
    My Analysis  on the above  incident between two Versions
    Version EFC
    1.     Version EFC consist  checkedu201D Integrated planningu201D check box 
    2.     Exchange Rate type u201CMu201D ,
    3.     It doesnu2019t consist any u201Cvalue date  u201C 
    4.     checked   u201C integrated planning with cost center / bus. Process.
    Version u201C 0u201D
    Version u201C Ou201D doesnu2019t checked  u201C integrate planning  check box from 2003 fiscal year
    2 . Exchange rate type u201C Pu201D  u201C
    3 .value date u201C 01.04.2003
    4 . unchecked u201Cintegrated planning with cost center / bus. Process
    where is the data corrected can any one guide me and let me know if any steps are missing
    thanks
    Ranamka

    Hi kim standley,
    Thanks for using Apple Support Communities.  I would first try resetting SyncServices as described here:
    Mac OS X: Resetting the SyncServices folder
    http://support.apple.com/kb/TS1627
    If the issue persists after that, I'd move on to this article:
    Sync Services: Advanced troubleshooting for contact and calendar syncing
    http://support.apple.com/kb/ts2481
    Cheers,
    - Ari

  • In print preview of PO shows Different VAT percentage

    Dear Experts
    In PO print preview VAT amount one time shows 14%, other time it shows 19%, some other time it shows 28%.  But actual percentage is 14%. How it shows different time different values.
    Please reply
    Regards
    Karan

    Hi,
    Might be you have selected Plant/Vendor/Material combination in key combination of FV11.If this is the case then you get the percentage which you maintained for that combination in FV11.check it out for all your combination is FV12.
    Thanks

Maybe you are looking for

  • You can download past purchases on this computer with just one Apple ID every 90 days

    I have a mac which my fiancee and I share. There are 2 separate accounts and 2 separate apple ids used to buy different music (i.e. we have 2 separate iphones and music collections). I received the following error (see uploaded image) which states th

  • Report template will not load

    When I opened Pages report template a slave window opened which appeared to be loading something; however, it never loads, nor stops. the only way to clase the progema is to Froce Quit. Now I cannot work on any Pages document because the report templ

  • How to put the break at the first place of execution While Loop

    Hello everybody, I have a problem with a while loop. I made the interface of a tic-tac-toe game with labview. my problem is that after the computer has won or there is a draw, that the board has to be updated, which i do by shift register. My problem

  • Flash audio that begins playing before fully donwloaded?

    I'm trying to help a friend add flash audio to his website. The problem is that the file won't play until the whole thing is loaded...he uses a so called squeeze page and many people will leave the site before the audio is fully loaded so they'll nev

  • Exception when starting emanager

    Hi All, When trying to go to the "deployer" page in the emanager I'm getting an error of a connect timeout. During the startup of emanager (startserver.bat) I'm getting the following exception: 2008-02-26 22:37:16,218 INFO com.stc.egate.em.services.b