[jcifs] Difficulties writing files on Win98 server

Brand Hilton b-hilton at adventact.com
Tue Jan 9 19:53:34 GMT 2007


I have a shared folder on a Win98 machine.  I've set it up with "full 
access" and no password.  I can bring the folder up in Windows Explorer 
on my WinXP system and create, delete, and edit files in the folder all 
I want.

Using jcifs, I'm able to read and even delete existing files with no 
problem.  However, if I try to create a file or open an existing file 
for output, I get the following exception: 

Exception in thread "main" jcifs.smb.SmbException: The system cannot 
find the file specified.

That's from the SMBFileOutputStream constructor, invoked as follows:

               SmbFileOutputStream out = new 
SmbFileOutputStream("smb://Actw98/HICAP/testfile.txt");

Note that I don't see this problem when the remote machine is WinXP or 
Win2k.  Only with Win98.

I'm using jcifs 1.2.12. 

Here's the full traceback of that exception:

Exception in thread "main" jcifs.smb.SmbException: The system cannot 
find the file specified.
    at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:511)
    at jcifs.smb.SmbTransport.send(SmbTransport.java:611)
    at jcifs.smb.SmbSession.send(SmbSession.java:239)
    at jcifs.smb.SmbTree.send(SmbTree.java:109)
    at jcifs.smb.SmbFile.send(SmbFile.java:690)
    at jcifs.smb.SmbFile.open0(SmbFile.java:838)
    at jcifs.smb.SmbFile.open(SmbFile.java:848)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:142)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:82)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:54)
    at SMBFileManipulator.copyFileToRemote(SMBFileManipulator.java:218)

Any help is appreciated.


Brand

 


More information about the jcifs mailing list