Dear All,

Please help me to come out of below problem.

Background :
We are placing Known_Host.txt file in a central place i.e. in a File
Server.
Client machine will update Host keys in the Known_Host.txt file in the
file server.

Context In which Problem Occurred:
While updating the Known_Host.txt file  , i.e. in setKnownHost()
function due to some network problem exception ( java.io.IOException: An
unexpected network error occurred ) is thrown.
All subsequent session calls to setKnownHost throws exception
(java.lang.ArrayIndexOutOfBoundsException: 506) . So fails to open
session.

Looking for answers for the below points:

1.Does network error exception thrown in setKnownHost , will corrupt the
file Known_host.txt ?

   -if file is corrupted the or file format is changed , exception
suppose to throw is  KnownHosts: invalid format .

2. I have no idea how this exceptions are co-related .If somebody faced
such scenario , please tell me does these two exceptions  are
co-related.

3. How can I recover the contents of Known_Host.txt ?
    - In the above scenario ,Once the file corrupted it throws the
ArrayIndexOutOfBoundException .
      I am looking for hints/solution which can remove only corrupted
part of the Known_Host.txt file.

Thanks and Regards,
Sharat Bhat.
________________________________________________________________________
_____________
OBS OSS RD SPA 13 | Nokia Siemens Networks | Bangalore | Phone: +91 80
4363 3007 




------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to