[jcifs] Transport1 timedout waiting for response to SmbComSessionSetupAndX

Michael B Allen mba2000 at ioplex.com
Fri May 11 16:00:34 GMT 2007

On Fri, 4 May 2007 10:04:16 -0500
"Dave Haworth" <dhaworth at widen.com> wrote:

> if the folder I'm moving the shortcut to exists and creating it if it
> doesn't) thousands of times during the course of the job and a couple
> hundred of the shortcuts never make it out to the server and throw the
> following error:
> jcifs.smb.SmbException: 
> jcifs.util.transport.TransportException: Transport1 timedout waiting for
> response to
> SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false
> ,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=38283,uid=0,
> mid=9496,wordCount=13,byteCount=129,andxCommand=0x75,andxOffset=190,snd_
> buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,passwordLength=24
> ,unicodePasswordLength=24,capabilities=4180,accountName=collective,prima
> at jcifs.util.transport.Transport.sendrecv(Transport.java:76)
> at jcifs.smb.SmbTransport.send(SmbTransport.java:606)
> at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:277)
> at jcifs.smb.SmbSession.send(SmbSession.java:233)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:154)
> at jcifs.smb.SmbFile.connect(SmbFile.java:798)
> at jcifs.smb.SmbFile.connect0(SmbFile.java:768)
> at jcifs.smb.SmbFile.queryPath(SmbFile.java:1195)
> at jcifs.smb.SmbFile.exists(SmbFile.java:1277)
> It appears that it's running out of ports to connect to and it seems the
> error always happens while checking to see if the destination folder
> exists. I've increased both the responseTimeout and soTimeout properties
> in the configuration to twice their default values using
> Config.setProperty, but the results seems the same. I'm pretty new to
> jcifs, so there's a chance I'm missing something obvious. If anyone has
> any thoughts on what I might try it would be appreciated. Thanks!

Are you doing this on different servers? JCIFS should reuse
sessions. Sounds like the overall modus operandi is off somehow.


Michael B Allen
PHP Active Directory Kerberos SSO

More information about the jcifs mailing list