Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:11:34+00:00 2026-06-18T09:11:34+00:00

I am trying to retrieve data from MySQL database table. To do that, I

  • 0

I am trying to retrieve data from MySQL database table. To do that, I use following code on various platforms. My code works perfectly on Windows and Linux platforms. But when I use same code in AIX 6.1, it does not retrieve correct data.

The Main Function:

String storedstring = objDBUtil.lookup(0);
logger.info(storedstring);

The Database Util Function:

public String lookup(String number) throws Exception {
    String sql = "SELECT info FROM records WHERE Snumber=?";

    Connection dbConn = connect();
    try {
        PreparedStatement stmt = dbConn.prepareStatement(sql);

    try {
           stmt.setString(1, number);

           ResultSet rs =  stmt.executeQuery();

            try {
                if (!rs.next()) {
                    throw new TException("does not exist in the database");
                }
                return  rs.getString(1);
            } catch (Exception e) {
                logger.info("Unexpected exception caught during auth: " + e.getClass().toString() + " " + e.getMessage());
                return null;
            }finally {
                rs.close();
            }
        } finally {
            stmt.close();
        }
    } finally {
        dbConn.close();
    }
}

Output of the main function on Windows, I get the entire string from the database. But exact code gives me encrypted value on AIX machine.

Output on AIX machine [B@62637268

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:11:36+00:00Added an answer on June 18, 2026 at 9:11 am

    I resolved the issue. Issue was with connector file. I was using older version of connector file.

    MySQL version I was using:
    mysql-5.5.2-m2-aix5.3-powerpc-64bit

    Non working version of Mysql connector with above mysql:
    mysql-connector-java-3.1.7-bin.jar

    Working version of MySQL connctor with above mysql:
    New version: mysql-connector-java-5.1.6-bin.jar

    Thank you everyone for looking into my question and trying to help me. Really appreciated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Iam trying to retrieve data from mysql database into stylesheet.php but it is not
I am trying to retrieve specific data from my MySQL database by passing the
I am trying to retrieve CLOB data from our Oracle database. the code is
I am trying to retrieve data from mysql database using PDO but DATABASE NOT
I am trying to retrieve the data from mysql database using PDO but I
Hi i am trying to retrieve data from mysql database to create flot graph
I am trying to figure out how to retrieve data from a MySQL database
I'm trying to retrieve hierarchical data from a table but am failing to do
I'm trying to retrieve record data from an MS-Access database and store it into
I'm trying to use Python 2.7 regex's to retrieve data from sample web pages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.