Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JbuilderX Mysql database connectio

Status
Not open for further replies.

assedo

Programmer
Jun 11, 2006
1
IT
I use JBuilderX with MySQL Server 4.1
driver ver. - mysql-connector-java-3.1.0-alpha-bin.jar -
i created library Mysql
put renamed mysql-connector-java-3.1.0-alpha-bin.jar as mysql.jar inside Library Folder mysql

Using enterprise setup it created mysql.config
----------------
addpath C:/PROJECT/MYSQL/MYSQL.JAR

-----------------------------------
using database pilot i put name of driver(com.mysql.jdbc.Driver) in the list

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 **
Thanks Adri
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top