[jcifs] Write files to shared location

Duseja, Sushil sushil.duseja at fiserv.com
Sun Dec 7 18:45:17 GMT 2008


Hello,

I am required to write/save (large number of) files (approx. 10000) to a (secured) shared drive location (using jCIFS 1.3.1). If a file with the same name already exists, a new file needs to be created with an index higher than the previous one. 

I am using the constuctor - SmbFile("smb://domain;username:password@server/..../") or this purpose and I can connect to the shared location successfully; however during the creation of files, after generating few files, an Smbexception is thrown.

Here's the stacktrace:-

jcifs.smb.SmbException: The parameter is incorrect.
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:644)
        at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:356)
        at jcifs.smb.SmbSession.send(SmbSession.java:234)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:161)
        at jcifs.smb.SmbTree.send(SmbTree.java:66)
        at jcifs.smb.SmbFile.send(SmbFile.java:729)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1308)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1362)
	--------------------------------------------
	--------------------------------------------

Here are other details:-


Localized message...The parameter is incorrect.

Message...The parameter is incorrect.

NT Status..-1073741811



Please advise.

Thanks!


-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list