BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MySql connection - java.io.IOException - unexpected end of

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases
View previous topic :: View next topic  
Author Message
adri
Guest





PostPosted: Sun Jun 11, 2006 10:17 pm    Post subject: MySql connection - java.io.IOException - unexpected end of Reply with quote



I use JBuilder x with MySQL Server 4.1 (WinXP)
driver ver. - mysql-connector-java-3.1.0-alpha-bin.jar -
create library Mysql
i put renamed mysql-connector-java-3.1.0-alpha-bin.jar in mysql.jar inside
Library Folder mysql
and Jbuilder/lib/ext and ..../j2re../lib/ext

Using enterprise setup it created mysql.config
----------------
addpath C:/PROJECT/MYSQL/MYSQL.JAR
(my library folder)
-----------------------------------
using database pilot i put name of driver(com.mysql.jdbc.Driver) in the list
because i couldn't find it !!

service is Ok i connect with Mysql Control Center
but testing connection on Jbuilder connection windows ........error

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: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:171) at
com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at
com.borland.jbuilder.cmt.editors.l.c(Unknown Source) at
com.borland.jbuilder.cmt.editors.l.actionPerformed(Unknown Source)
................
** END NESTED EXCEPTION **

trying connection with a new datamodule same problem

** 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: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:171) at
com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at
com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source) at
com.borland.jdbcx.metadata.e.run(Unknown Source)

** END NESTED EXCEPTION **
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.