Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: [Microsoft][ODBC Driver Manager] Invalid string or buffer length exception

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Microsoft][ODBC Driver Manager] Invalid string or buffer length exception

    Hi,
    I did a project in java with Database as MS-Access.
    While running the Application I got the following Exception in 64 bit System but it is working fine in 32 bit System.

    ERROR: Java.sql.Exception:[Microsoft][ODBC Driver Manager] Invalid string or buffer length exception.

    I searched for root cause of Exception but I did not get right answer.

    I tried the following scenario's but I got the same Exception.

    scenario's:-
    I. When I try to insert the data more than 100 rows using execute batch, Exception is throwing.
    II. When I fetch the data from db with two columns, Exceptions is throwing
    III. when I fetch the data of String and integer data type the Exception is throwing but if I applied getString() for all data types it is working..
    Ex:
    rst.getString(1);
    rst.getInt(2);
    rst.getString(3);
    In this case it's throwing the Exception.

    rst.getString(1);
    rst.getString(2);
    rst.getString(3);
    In this case it's working fine.

    IV. when I call jasper reports (I am passing the connection variable to jasper) at that time also the same Exception is throwing.

    Can any one help me how to solve this Exception

    Thanks in Advance...
    Last edited by kishore.b; July 22nd, 2014 at 09:16 AM. Reason: to give clear idea


Similar Threads

  1. Replies: 0
    Last Post: July 28th, 2013, 09:57 AM
  2. Replies: 0
    Last Post: March 13th, 2013, 01:32 AM
  3. Replies: 1
    Last Post: July 20th, 2012, 07:08 PM
  4. Replies: 2
    Last Post: January 9th, 2012, 10:03 AM
  5. Replies: 2
    Last Post: November 17th, 2011, 08:03 AM