Unexpected end of input stream
Brian Ehmann <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
First let me say I am sorry if this is a duplicate. I've searched the archives and have found similar questions, but no answers. I just upgraded to MySql 5 (from 4) by installing the following package on my machine (mac os x 10.4.7) mysql-max-5.0.24a-osx10.4-powerpc.dmg I am able to connect to the database using the included command line client, however when I try to connect using any of the following version of the connector jar, I get an exception. (using ant, I have ensured that only the connector jar I am trying to test is on the classpath). mysql-connector-java-3.0.16-ga-bin.jar mysql-connector-java-5.0.3-bin.jar Has anyone figured this out? Thanks, Brian PS: The Exception: java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream ** BEGIN NESTED EXCEPTION ** java.io.IOException MESSAGE: Unexpected end of input stream STACKTRACE: java.io.IOException: Unexpected end of input stream at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1073) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:619) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511) at com.mysql.jdbc.Connection.<init>(Connection.java:485) at com.mysql.jdbc.Driver.connect(Driver.java:341) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at JDBCTest.main(JDBCTest.java:13) ** END NESTED EXCEPTION ** at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:692) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1511) at com.mysql.jdbc.Connection.<init>(Connection.java:485) at com.mysql.jdbc.Driver.connect(Driver.java:341) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at JDBCTest.main(JDBCTest.java:13)