2 loverfh2 loverfh2 于 2016.05.10 14:59 提问

jcifs访问远程共享文件拷贝文件报错

jcifs.util.transport.TransportException: Transport1 timedout waiting for response to SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0xC803,signSeq=0,tid=0,pid=41752,uid=0,mid=22550,wordCount=12,byteCount=71,andxCommand=0xFF,andxOffset=0,snd_buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,lmHash.length=0,ntHash.length=0,capabilities=-2147483564,accountName=null,primaryDomain=null,NATIVE_OS=Linux,NATIVE_LANMAN=jCIFS]
at jcifs.util.transport.Transport.sendrecv(Transport.java:73)
at jcifs.smb.SmbTransport.send(SmbTransport.java:633)
at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:395)
at jcifs.smb.SmbSession.send(SmbSession.java:224)
at jcifs.smb.SmbTree.treeConnect(SmbTree.java:176)
at jcifs.smb.SmbFile.doConnect(SmbFile.java:906)
at jcifs.smb.SmbFile.connect(SmbFile.java:949)
at jcifs.smb.SmbFile.connect0(SmbFile.java:875)
at jcifs.smb.SmbFile.open0(SmbFile.java:965)
at jcifs.smb.SmbFile.open(SmbFile.java:999)
at jcifs.smb.SmbFileInputStream.readDirect(SmbFileInputStream.java:154)
at jcifs.smb.SmbFileInputStream.read(SmbFileInputStream.java:142)
at jcifs.smb.SmbFileInputStream.read(SmbFileInputStream.java:132)
at util.FileUtils.readFromSmb(FileUtils.java:73)
at util.mediaupload.UploadTask.run(UploadTask.java:73)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

2个回答

CSDNXIAON
CSDNXIAON   2016.05.10 15:03

远程拷贝文件
windows 下远程拷贝文件
远程服务器和本机间的文件拷贝
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

qq423399099
qq423399099   Ds   Rxr 2016.05.11 13:00

1.Is it possible that you are trying to access the same SmbFile instance with multiple threads? JCIFS is thread-safe but you cannot concurrently access the same SmbFile with multiple threads.
2.Is it possible that the VM is too busy or the VM is running out of memory?

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!