while debugging my program within which I am synchronizing threads, an error message pops up on the sleeping instruction. does anyone know how to fix those kind of problem. I have the feeling that this might be because the thread might sleeping and requested at the same time. but this only occurs when debugging which means that my assumption is wrong .Below is a sample of the code where the sleep instruction is.
private static void testAsync(byte []data){
sendAsync(data);
try{
Thread.sleep(5000);// the error occurs here when sleeping
}catch(InterruptedException){}
}
this is the error message: org eclipse jdi timeoutexception: error occured while waiting for packet xxx. occured creating a step request. I am having eclipse 3.8 the best answer I got is at Eclipse Java EE debug crashes but it does not give me much info since there is not strict answer and the situations are also different