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 > Accessing DB2 (Server-to-Server)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-22-03, 14:29
timmo timmo is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Accessing DB2 (Server-to-Server)

I developed a small Java based utility to do some DB related processing. The utility works fine when I run it locally (on a PC) and access a database on my laptop. However, when I configure the utility to run locally but access a database on a Unix workstation. I get the following error.

COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0621E Unsupported JDBC Server configuration.
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.check_r eturn_code(Unknown Source)
at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(Unkn own Source)
at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(Unkn own Source)
at COM.ibm.db2.jdbc.net.DB2Connection.create(Unknown Source)
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(Unknown Source)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager .java:543)
at java.sql.DriverManager.getConnection(DriverManager .java:194)
at com.wb.rpttrk.DBUtil.GetConnection(DBUtil.java:671 )
at com.wb.rpttrk.DBUtil.Demo(DBUtil.java:737)
at com.wb.rpttrk.DBUtil.main(DBUtil.java:140)
java.lang.NullPointerException
at com.wb.rpttrk.DBUtil.Execute(DBUtil.java:689)
at com.wb.rpttrk.DBUtil.Demo(DBUtil.java:739)
at com.wb.rpttrk.DBUtil.main(DBUtil.java:140)



Is there something special that I need to do for server to server communications? Any thought, comments and tips would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-22-03, 14:34
jayecarter jayecarter is offline
Registered User
 
Join Date: Aug 2002
Location: St. Louis
Posts: 16
It sounds like you have a mismatch between drivers on the server and your workstation. If the server is configured for jdbc2 then your client should use jdbc2 as well.
Reply With Quote
  #3 (permalink)  
Old 12-22-03, 14:52
timmo timmo is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
How can I determine which version is running on my the server?
Reply With Quote
  #4 (permalink)  
Old 12-22-03, 15:02
jayecarter jayecarter is offline
Registered User
 
Join Date: Aug 2002
Location: St. Louis
Posts: 16
Quote:
Originally posted by timmo
How can I determine which version is running on my the server?
I work in a Windows environment (UDB 7.2) so there may be differences.

In windows there's a file ..\sqllib\java12\inuse which indicates jdbc 1 or 2. The db2java.zip file actually in use is in ..\sqllib\java
Reply With Quote
  #5 (permalink)  
Old 12-22-03, 19:35
timmo timmo is offline
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks Jay,

Your comments were insightful and helpled me out... .. . I now have connectivity.
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