Hello rahul kcle,
I have no idea about the java client but this might solve your problem:
add the following line into your /etc/security/limits.conf :
* soft nofile 65535
* hard nofile 65535
reboot your machine and run your program again, see if it works?
Best wishes,
BlueT
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkriGOUACgkQfoJ/q1KWx6iSGwCfd4+bKd0cPPuMcMkMYlRWt9jd
ouQAn2jrirGxC3PMq/5ujWWaeLveicrO
=72jZ
-----END PGP SIGNATURE-----