I am passing on this question from a coworker:

Hello -- This has been posted on the forums.mysql.com for a week with no replies.

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

When I updated the jar to 3.0.15-ga we can still get to our external sites running MySQL 3.23.37. Our in house server has MySQL 3.23.37 runing on port 1031 and MySQL 4.0.20 running on port 1032. When connecting
to either sever with 3.0.15-ga, I get a null pointer error. (Our in house servers are Suns and Alphas.)


When I switch back to Connector J 3.0.6 with the exact same java code, everything works!

Our CAPI programs running on the server work fine, the MySQL control center works fine.

What properties are being intitialized?   Why is it crashing?


The connection url is: jdbc:mysql://205.111.111.111: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)
...


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to