Tuesday, October 1, 2013

Jar file Error In Java

Dear Friend this post to those people those are start learning java.When people are new in error so worry about this common error the error as below

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.<init>(Connection.java:524)
        at com.mysql.jdbc.Driver.connect(Driver.java:359)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at com.aquafold.aquacore.scripts.ConnectionProperties.getConnection(Unknown Source)
        at com.aquafold.datastudio.mainframe.dialog.ConnectionDialog.onOk(Unknown Source)
        at com.aquafold.datastudio.mainframe.dialog.ConnectionDialog.access$600(Unknown Source)
 
 
 Solution for this error:-
 
( Your JVM is picking up an old version of Connector/J somewhere in it's classpath.)
 
Means you are add old version of my(e.g mysql-connector-java-5.1.18-bin.jar) 
 So you add latest version of jar fine than problem was solved.
 
 
thanks you for read welcome to add you suggestion.  
 
 
 
 
 

No comments:

Post a Comment