If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > CLI0616E Error opening socket. SQLSTATE=08S01

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 09:18
dobaandr dobaandr is offline
Registered User
 
Join Date: May 2004
Posts: 4
CLI0616E Error opening socket. SQLSTATE=08S01

HI
I'm trying to connect to my db2 table but getting error:
COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.socketE xception(SQLExceptionGenerator.java:579)
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Conne ction.java:251)
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Conne ction.java:200)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.j ava:215)
at java.sql.DriverManager.getConnection(DriverManager .java:512)
at java.sql.DriverManager.getConnection(DriverManager .java:171)
at LogOnPackage.DB2Conns.main(DB2Conns.java:24)

Somebody suggested the DB2 JDBC Applet Server has to run. It is running on the db2 server. What else should I check.

This is my class:
import java.sql.*;

class DB2Conns {
static {
try {
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").ne wInstance();
} catch (Exception e) {
e.printStackTrace();
}
}
public static void main(String argv[]) {
try {
String server = ("9.131.73.18");
String port = ("50000");
String url = "jdbc:db2:// "+server+":"+port+"/JAVATEST";

String userid = ("UId");
String password = ("pw");

Connection con;
con = DriverManager.getConnection(url, userid, password );

} catch( Exception e ) {
e.printStackTrace();
}
}
}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On