I had the same problem. Just in case you didn't find it, there might be an older version of the driver in /Library/Java/Extensions - not sure where it came from. Maybe from CocoaMySQL?
Deleting that older version and using 3.1 fixed it for me.
Mark Matthews wrote: > Leslie Lowry wrote: > > I'm having a similar problem. I'm running a > java > > application which attempts to retrieve items > from > > a database MySQL version 4.1 on Mac OS X > Panther. > > My application works fine on Windows and > Linux > > environments but on Mac I'm seeing a very > similar > > stack as yours... > > > > 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:109 > > > 6) > > at > > > com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:62 > > > This stack trace tells me you're using an older > version of the driver that doesn't know how to > connect to MySQL-4.1 (the authentication protocol > changed in MySQL-4.1). > > Make sure you're using the latest version of the > driver, and that you don't have older versions > laying around in your classpath. > > -Mark >
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi Leslie,
I had the same problem. Just in case you didn't find it, there might be an older version of the driver in /Library/Java/Extensions - not sure where it came from. Maybe from CocoaMySQL?
Deleting that older version and using 3.1 fixed it for me.
Best wishes
and found this result in google https://unexpectedendoffile.com/unexpected-end-of-input-stream-error/
John Prince
Mark Matthews wrote:
> Leslie Lowry wrote:
> > I'm having a similar problem. I'm running a
> java
> > application which attempts to retrieve items
> from
> > a database MySQL version 4.1 on Mac OS X
> Panther.
> > My application works fine on Windows and
> Linux
> > environments but on Mac I'm seeing a very
> similar
> > stack as yours...
> >
> > 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:109
>
> > 6)
> > at
> >
> com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:62
>
>
> This stack trace tells me you're using an older
> version of the driver that doesn't know how to
> connect to MySQL-4.1 (the authentication protocol
> changed in MySQL-4.1).
>
> Make sure you're using the latest version of the
> driver, and that you don't have older versions
> laying around in your classpath.
>
> -Mark
>