aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 connection error" Watch "DB2 connection error" New topic
Author

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,



Exception

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 connection error