hoodwink.d enhanced
 

juretta.com

Java and MySQL on Mac OS X: "java.io.IOException: Unexpected end of input stream" | August 19, 2006-->

August 19, 2006
While trying to get Struts working with MySQL 5 on Mac OS X 10.4 i got the following exception:
java.io.IOException: Unexpected end of input stream
        at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:339)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:782)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:1585)
        at com.mysql.jdbc.Connection.(Connection.java:524)
[...]
After trying different versions of MySQL Server and MySQL/J-Connector i found out that there was an old JDBC-Driver in my user library ~/Library/Java/Extensions. It appears that on OS X this location takes precedence over the $CLASSPATH environment variable!
@19:53 | Comments: 0 | Tags: Database (4), Mac (18)

Diggman

Related Entries


About

juretta.com is the personal workspace of Stefan Saasen. You can send him an email or read more about this site in the „About“ section.

« Previous entry

Ruby: Net::Http and open-uri
posted about 1 year ago

» Next entry

Profiling Your Applications with Ecli...
posted about 1 year ago

Related Entries

Recent comment

On: “New Zealand Daylight Saving Time Change: Mac OS X and Java

very usefull,thanks,i linked it on my blog ispig:hobix

posted 5 months ago by foxcamel

Look!

Latest links  RSS  

More...