Results 1 to 4 of 4
  1. #1
    anny123 is offline Member
    Join Date
    Nov 2011
    Posts
    9
    Rep Power
    0

    Default com.mysql.jdbc.ResultSetImpl what does it mean?

    hello,
    while am trying to retrieve data from database in resultset in the servlet am getting weird values.
    and a null pointer exception.

    when I print the result set it shows

    com.mysql.jdbc.ResultSetImpl@1d98a
    [Ljava.lang.String;@1712651
    [Ljava.lang.String;@1712651


    I am not able to understand this. can anyone help me out.

    Thanks in advance.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: com.mysql.jdbc.ResultSetImpl what does it mean?

    Looks like the object you're trying to print is a String array. You can loop over the array and print each element, or you can use the static method of the Arrays class.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: com.mysql.jdbc.ResultSetImpl what does it mean?

    I presume you are directly printing the resultSet object? Retrieve the data from the ResultSet then print said data as needed.

    Retrieving and Modifying Values from Result Sets (The Java™ Tutorials > JDBC(TM) Database Access > JDBC Basics)

  4. #4
    anny123 is offline Member
    Join Date
    Nov 2011
    Posts
    9
    Rep Power
    0

    Default Re: com.mysql.jdbc.ResultSetImpl what does it mean?

    Thanks both of u...yeah was trying to print result set object.
    Its done now.:)

Similar Threads

  1. JDBC Problem - com.mysql.jdbc.Driver
    By icu222much in forum Advanced Java
    Replies: 5
    Last Post: 11-22-2011, 04:54 PM
  2. JDBC MySql question
    By santa in forum New To Java
    Replies: 12
    Last Post: 01-18-2011, 03:47 PM
  3. com.mysql.jdbc.Driver
    By uthpalaw in forum Eclipse
    Replies: 2
    Last Post: 10-14-2010, 05:09 AM
  4. MySQL/JDBC Mysql query output
    By thelinuxguy in forum Advanced Java
    Replies: 4
    Last Post: 02-13-2009, 01:57 AM
  5. help ... JDBC or PHP/MySQL
    By bluebarca in forum Advanced Java
    Replies: 1
    Last Post: 11-16-2007, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •