Re: Connection Problem - Unexpected end of input stream
Posted by: Mark Matthews
Date: May 07, 2005 11:34PM

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)
[snip]

Steve,

You're not using 3.1.7 (or 3.1.anything-recent) as far as I can tell. That stack trace lines up with an older driver. Check and see if you have something old laying around in your CLASSPATH or jre/lib/ext. Older drivers don't know how to talk with MySQL-4.1.0 and newer since the authentication mechanism changed.

-Mark

Mark Matthews
Consulting Member Technical Staff - MySQL Enterprise Tools
Oracle
http://www.mysql.com/products/enterprise/monitor.html

Options: ReplyQuote


Subject
Written By
Posted
Re: Connection Problem - Unexpected end of input stream
May 07, 2005 11:34PM


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.