Connector/J Null pointer in initializePropsFromServer
Posted by: Steve Podell
Date: October 11, 2004 03:11PM

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?
Thanks,
Steve

The connection url is:
jdbc:mysql://205.111.111.1111:1032/statistics?user=iii&password=M4&useUnicode=true&characterEncoding=utf8

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

** BEGIN NESTED EXCEPTION **
java.lang.NullPointerException
STACKTRACE:
java.lang.NullPointerException
at com.mysql.jdbc.Connection.initializePropsFromServer(Connection.java:3237)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1799)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.iii.MySQLConnect.openDatabase(MySQLConnect.java:124)
...

Options: ReplyQuote


Subject
Written By
Posted
Connector/J Null pointer in initializePropsFromServer
October 11, 2004 03:11PM


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.