Connector/J Null pointer in initializePropsFromServer
Posted by: Steve Podell
Date: October 08, 2004 05:02PM

We have been using Connector J 3.0.6 for a year or more at hundreds of customer sites and in house.

When I updated the jar to 3.0.15-ga we can still get to our external sites running MySQL 3.23.37, but at our in house server which runs MySQL 3.23.37 and MySQL 4.0.20, I get a null pointer error. Each MySQL server is running on the same Compaq Alpha on two different ports with two different sockets. This problem occurs with both MySQL 3.23.37 and MySQL 4.0.20.

Switching back to Connector J 3.0.6 with the exact same java code and everything works!

CAPI programs work fine, MySQL control center works fine.

Any ideas?

The connection url is:

SQLException: Unable to connect to any hosts due to exception: java.lang.NullPointerException

at com.mysql.jdbc.Connection.initializePropsFromServer(
at com.mysql.jdbc.Connection.createNewIO(
at com.mysql.jdbc.Connection.<init>(
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at com.iii.MySQLConnect.openDatabase(

Options: ReplyQuote

Written By
Connector/J Null pointer in initializePropsFromServer
October 08, 2004 05:02PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.