Connection Problem - Unexpected end of input stream
Posted by: steve
Date: April 08, 2005 03:27PM

Hello,

I've been stuck on this one all day. I have a Connection problem where I get the following error:

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:1080)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:619)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1532)
at com.mysql.jdbc.Connection.<init>(Connection.java:486)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:326)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.abc.etc.utility.HydraLoadSheet.main(HydraLoadSheet.java:88)


** END NESTED EXCEPTION **

I'm using Mysql 4.1.11 and Connector/J 3.1.7

Code looks like this:

private static String dbUrl = new String("jdbc:mysql://localhost/hydraRepository?user=root&password=password");
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection(dbUrl);

Thanks.....

Options: ReplyQuote


Subject
Written By
Posted
Connection Problem - Unexpected end of input stream
April 08, 2005 03:27PM


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.