Please help me to come out of below problem.
We are placing Known_Host.txt file in a central place i.e. in a File
Client machine will update Host keys in the Known_Host.txt file in the
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
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
3. How can I recover the contents of Known_Host.txt ?
- In the above scenario ,Once the file corrupted it throws the
I am looking for hints/solution which can remove only corrupted
part of the Known_Host.txt file.
Thanks and Regards,
OBS OSS RD SPA 13 | Nokia Siemens Networks | Bangalore | Phone: +91 80