The moose likes JDBC and the fly likes DB2 connection error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 connection error" Watch "DB2 connection error" New topic

DB2 connection error

Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi all ,
I'm getting following error while connecting to DB2 Data Base .please provide necessary help,


com.ibm.db2.jcc.b.SqlException: Unexpected throwable caught java.lang.StringIndexOutOfBoundsException
at com.ibm.db2.jcc.uw.UWConnection.a(UWConnection.java:416)
at com.ibm.db2.jcc.uw.UWConnection.<init>(UWConnection.java:236)
at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:233)
at java.sql.DriverManager.getConnection(DriverManager.java:562)
at java.sql.DriverManager.getConnection(DriverManager.java:186)
at com.metlife.us.ins.product.pup.communication.PUPComSvc.main(PUPComSvc.java:457)
Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi all,
issue is resolved..
i modified the code with
wood burning stoves
subject: DB2 connection error
Similar Threads
Very odd connection error
DB2 App Driver gives Null Pointer
java DB2 program
Problem in JDBC connection in Websphere 3.5.0
connect to db2 8 error using JDBC