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 > DB2 connection error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-09, 08:43
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 64
Thumbs down DB2 connection error

Hi ,

I am trying to connect a DB2 server using JDBC .
I am getting the following error :
Quote:
Caused by: com.ibm.db2.jcc.c.DisconnectException: java.lang.reflect.InvocationTargetException : Error opening socket to server test_db2/<IP_address> on port 60000 with message : null DB2ConnectionCorrelator: null
at com.ibm.db2.jcc.a.gc.a(gc.java:371)
at com.ibm.db2.jcc.a.gc.<init>(gc.java:63)
at com.ibm.db2.jcc.a.gc.<init>(gc.java:65)
at com.ibm.db2.jcc.a.a.v(a.java:255)
at com.ibm.db2.jcc.a.b.a(b.java:1855)
at com.ibm.db2.jcc.c.p.<init>(p.java:1019)
at com.ibm.db2.jcc.a.b.<init>(b.java:346)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:1 65)
at java.sql.DriverManager.getConnection(DriverManager .java:582)
at java.sql.DriverManager.getConnection(DriverManager .java:185)
I checked the TCP/IP port by executing the command 'get dbm cfg' which is 60000 as specified above .

Please suggest me hot to resolve this
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 08:52
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Please post the connection string used.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 03-30-09, 10:28
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
has db2comm been set
db2set -all should indicate -after this stop-start of instance
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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