I am not able to connect to DB2 database from java, no matter what driver I use.
con = datasource.getConnection();
"Exception in thread "main" com.ibm.db2.jcc.am.yn: jcct4203011211http://3.57.82 A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream. Error location: Reply.fill(). Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001"
I am setting setServerName ,setUser ,setPassword, setDriverType, setPortNumber, setDatabaseName, setPlanName
Is there anything I am missing here?
Jars - db2jcc_lencese_cisuz.jar,db2jcc_jar,db2jcc4.jar,db2jcc_license_cu.jar
Thank you for your help in Advance.
Pinned topic Not able to connect to db2 from java
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-01-17T02:48:21Z at 2012-01-17T02:48:21Z by SystemAdmin
SystemAdmin 110000D4XK1731 Posts
Re: Not able to connect to db2 from java2012-01-17T02:48:21ZThis is the accepted answer. This is the accepted answer.have you tried running one of the samples that comes with the client/server installation?
you can find them under SQLLIB\samples\jdbc