I assume this was meant for geek.shrek instead of me?  I assume you are 
verifying that you do not encounter this problem with the latest code?  The 
stack trace below indicates to me that the application was not using the code 
in trunk.

Ralph

On Nov 11, 2009, at 7:56 AM, joseluis wrote:

> Ralph,
> 
> I posted to but my message was returned to me.
> 
> The right syntaxis of the URL is:
> 
> smb://MYDOMAIN\myusername:mypassw...@hostname/sharedresource/Folder1/myfolde
> rt/Test2/myfile.txt
> 
> Verify that the binary version of vfs includes the
> org.apache.commons.vfs.provider.smb classes if not, the right version is the
> latest release of vfs build with the smb libraries currently in the sandbox,
> and you must include the jCIFS libraries for smb connections.
> 
> Regards
> 
> José Luis
> 
> -----Mensaje original-----
> De: Ralph Goers [mailto:ralph.go...@dslextreme.com] 
> Enviado el: martes, 10 de noviembre de 2009 09:04 p.m.
> Para: Commons Users List
> Asunto: [VFS] Re: How to create file with samba vfs?
> 
> 
> What version of VFS are you using? I would suggest you check out trunk and
> try that.
> 
> 
> On Nov 10, 2009, at 4:17 PM, geek.shrek wrote:
> 
>> Hi,
>> 
>> I'm trying to build some functions for samba, such as create file,
>> delete, etc. I can read a file from my samba, but when I tried to 
>> create or delete I keep having this error
>> 
>> 
>> org.apache.commons.vfs.FileSystemException: Could not create file
> "smb://MYDOMAIN;myusername:mypassw...@sharefolder/Folder1/myfoldert/Test2/my
> file.txt".
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileOb
> ject.java:797)
>>   ...
>> Caused by: org.apache.commons.vfs.FileSystemException: Could not 
>> determine
> the type of file
> "smb://MYDOMAIN;myusername:mypassw...@sharefolder/Folder1/myfolder/Test2/myf
> ile.txt".
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject
> .java:1305)
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObjec
> t.java:412)
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.exists(AbstractFileObject
> .java:402)
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileOb
> ject.java:780)
>>   ... 2 more
>> Caused by: jcifs.smb.SmbException: The system cannot find the file
> specified.
>>   at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542)
>>   at jcifs.smb.SmbTransport.send(SmbTransport.java:644)
>>   at jcifs.smb.SmbSession.send(SmbSession.java:224)
>>   at jcifs.smb.SmbTree.send(SmbTree.java:111)
>>   at jcifs.smb.SmbFile.send(SmbFile.java:770)
>>   at jcifs.smb.SmbFile.open0(SmbFile.java:975)
>>   at jcifs.smb.SmbFile.open(SmbFile.java:992)
>>   at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73)
>>   at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65)
>>   at jcifs.smb.SmbFile.getInputStream(SmbFile.java:2826)
>>   at
> org.apache.commons.vfs.provider.url.UrlFileObject.doGetType(UrlFileObject.ja
> va:89)
>>   at
> org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject
> .java:1296)
>>   ... 5 more
>> 
>> 
>> Here is my code.
>> 
>> FileSystemManager fsManager;
>>       try
>>       {
>>           fsManager = VFS.getManager();
>>           FileObject sourceFile =
>> fsManager.resolveFile("smb://MYDOMAIN;myusername:mypassw...@sharefolde
>> r/Folder1/myfolder",authenticate());
>> 
>>           FileObject f = sourceFile.resolveFile("Test2/myfile.txt"); 
>>           f.createFile();
>>       }
>>       catch (FileSystemException e)
>>       {
>>           e.printStackTrace();
>>       }
>> 
>> Can someone please help me
>> Thanks,
>> 
>> 
>> 
>> 
>> 
> ____________________________________________________________________________
> ______
>> Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7. Enter now: 
>> http://au.docs.yahoo.com/homepageset/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to