Re: Connection Problem - Unexpected end of input stream
Posted by: Alex Morgado
Date: April 18, 2005 01:56PM

steve wrote:
> 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:108
> 0)
> at
> com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:61
> 9)
> at
> com.mysql.jdbc.Connection.createNewIO(Connection.j
> ava:1532)
> at
> com.mysql.jdbc.Connection.<init>(Connection.
> java:486)
> at
> com.mysql.jdbc.NonRegisteringDriver.connect(NonReg
> isteringDriver.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(HydraLoadS
> heet.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?use
> r=root&password=password");
> Class.forName("com.mysql.jdbc.Driver").newInstance
> ();
> conn = DriverManager.getConnection(dbUrl);
>
> Thanks.....

Options: ReplyQuote


Subject
Written By
Posted
Re: Connection Problem - Unexpected end of input stream
April 18, 2005 01:56PM


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.