wood burning stoves 2.0*
The moose likes JDBC and the fly likes connect to db2 8 error using JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connect to db2 8 error using JDBC" Watch "connect to db2 8 error using JDBC" New topic

connect to db2 8 error using JDBC

hu jingxuan

Joined: Aug 18, 2003
Posts: 2
my code is
Class.forName( "com.ibm.db2.jcc.DB2Driver" );
Connection cn = DriverManager.getConnection("jdbc b2://victor:50000/TOOLSDB","db2admin","db2admin");
the warning is
com.ibm.db2.jcc.b.DisconnectException: encoding not supported!!
at com.ibm.db2.jcc.a.ba.a(ba.java:499)
at com.ibm.db2.jcc.a.bb.br(bb.java:3904)
at com.ibm.db2.jcc.a.b.<init>(b.java:207)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:244)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at myprojects.dbcon.DbCon.connection1(DbCon.java:126)
at myprojects.dbcon.DbCon.main(DbCon.java:165)
The db2's version is Chinese Version.
I agree. Here's the link: http://aspose.com/file-tools
subject: connect to db2 8 error using JDBC