Mohan Cheema's Online Diary

Site Just to Keep Track of My Day to Day Work.

Ping failed in MysqlValidConnectionChecker in JBoss/MySQL-ConnectorJ Combination

| 0 comments

Today I was battling an issue for some of my colleagues. They were getting this exception from JBoss/Mysql ConnectorJ driver:

java.sql.SQLException: Unexpected error in ping : java.lang.IllegalArgumentException: object is not an instance of declaring class

in the JBoss console.

Then making a Google search for above error and we read a bit of forums that was mentioning the error. Which talked about problems due to a bug jconnector mysql. So we tried upgraded from 5.1.6 to 5.1.12 drivers no good. We also downgraded to 5.1.5 still no good. Than we removed the connector from applications WEB-INF/lib folder and placed it under $JBOSS_HOME/server/default/lib. Result: The application is better and I no longer have the above-mentioned exception.

Share

Author: Mohan Cheema

I am a Commerce Graduate currently I am working as Senior Support Analyst (Linux Administrator) with medium sized MNC Company. If time permits I do freelance work like setting up the servers as per the requirement, do performance tuning and so on.

Leave a Reply

Required fields are marked *.

*

* Copy this password:

* Type or paste password here:

2,943 Spam Comments Blocked so far by Spam Free Wordpress


CommentLuv badge

Notify me of followup comments via e-mail. You can also subscribe without commenting.