[jcifs] Deadlock issue

Stéphane Bond stephane.bond at crim.ca
Tue Aug 29 16:54:41 GMT 2006

   We use jcifs 1.2.9 on a portal server where many simultaneous 
connections for different users have to be managed simultaneously in the 
same Tomcat context.

Some times, a deadlock appear and leave most of our threads in the 
"BLOCKED" state.

With jstack, we discover that all of the theses threads are blocked at 
the same line :

Thread 26101: (state = BLOCKED)
@bci=0, line=122 (Compiled frame)
 - jcifs.smb.SmbFile.connect() @bci=35, line=787 (Interpreted frame)
 - jcifs.smb.SmbFile.connect0() @bci=1, line=761 (Compiled frame)
 - jcifs.smb.SmbFile.listFiles(java.lang.String, int, 
jcifs.smb.SmbFilenameFilter, jcifs.smb.SmbFileFilter) @bci=93, line=1587 
(Interpreted frame)
 - jcifs.smb.SmbFile.listFiles() @bci=7, line=1495 (Interpreted frame)
- Portlet code...

Did somebody already see this problem ?

More information about the jcifs mailing list