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