I can reproduce the problem "from time to time", and when it happens, it is when trying to read a temp file, stored in :
This temp file has the name of a "demon thread" I can see in the Debug view of Eclipse, and depiste the fact it's a random problem, it seems it's always the same file which causes the java.io.StreamCorruptedException !
If I stop the application and the JBoss server, delete those files in the folder, and restart, it works but only once - it seems that the 1st time after a clean/restart, the exception can be thrown but silently, right after the main treatment is done. If a try one more time, it fails.
This happens when calling a hibernate
so I don't know what I can do since it deals with the way java manages its temporary files... Do you have some idea to give to me ?