Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Unanswered: MySQL ConnectorJ 3.1 --> java.io.IOException: Unexpected end of input stream

    Hi all.

    I use MySQL with Connector J.
    I just updated to Connector J 3.1 and I now get the following error


    SQL Connection exceptionjava.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:339 )
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:78 2)
    at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1585)
    at com.mysql.jdbc.Connection.<init>(Connection.java:5 24)
    at com.mysql.jdbc.Driver.connect(Driver.java:359)
    at java.sql.DriverManager.getConnection(DriverManager .java:512)
    at java.sql.DriverManager.getConnection(DriverManager .java:193)
    at DbHelper.getConnection(DbHelper.java:34)
    at DbHelper.main(DbHelper.java:466)


    ** END NESTED EXCEPTION **

    Any ideas on possible causes?

    Thank you for your time,
    Theo

  2. #2
    Join Date
    May 2004
    Posts
    1

    Exclamation I meet this message too !!!

    i use
    window2000server,sp4,
    ie6.0
    j2sdk1.4.2
    tomcat-5.0.22
    mysql-5.0.0-alpha-win
    mysql-connector-java-3.1.0-alpha-bin.jar

    I havenot install any software as above before.

    I needs help really. please send me a mail if you know why. My Email address is slaper410@hotmail.com

    thanks.

    slaper from china

  3. #3
    Join Date
    Aug 2012
    Posts
    1

    same exception here....any solution???

    SQL Connection exceptionjava.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:339 )
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:78 2)
    at com.mysql.jdbc.Connection.createNewIO(Connection.j ava:1585)
    at com.mysql.jdbc.Connection.<init>(Connection.java:5 24)
    at com.mysql.jdbc.Driver.connect(Driver.java:359)
    at java.sql.DriverManager.getConnection(DriverManager .java:512)
    at java.sql.DriverManager.getConnection(DriverManager .java:193)
    at DbHelper.getConnection(DbHelper.java:34)
    at DbHelper.main(DbHelper.java:466)


    ** END NESTED EXCEPTION **



    Thank you,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •