Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DB2 connection error

 
Amitosh Mishra
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
issue is resolved..
i modified the code with
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!