java - org.apache.commons.vfs2.FileSystemException: Could not create file -


i want access file remotely , using code :

fileobject destn=vfs.getmanager().resolvefile(f.getabsolutepath());         logger.debug("object created" +destn);         domain, username, password         userauthenticator auth=new staticuserauthenticator(domain, username, password);         logger.debug("authenticator object created" +auth);          filesystemoptions opts=new filesystemoptions();         defaultfilesystemconfigbuilder.getinstance().setuserauthenticator(opts, auth);           fileobject fo=vfs.getmanager().resolvefile(remotefilepath,opts); 

at line getting exception :

org.apache.commons.vfs2.filesystemexception: not create file "file:////172.50.33.115/d$/testfile.txt".     @ org.apache.commons.vfs2.provider.abstractfileobject.createfile(abstractfileobject.java:382)     @ controller.inputcontroller.dopost(inputcontroller.java:92)     @ javax.servlet.http.httpservlet.service(httpservlet.java:647)     @ javax.servlet.http.httpservlet.service(httpservlet.java:728)     @  caused by: org.apache.commons.vfs2.filesystemexception: not create folder "file:////172.50.33.115/d$/".         @ org.apache.commons.vfs2.provider.abstractfileobject.createfolder(abstractfileobject.java:436)         @ org.apache.commons.vfs2.provider.abstractfileobject.getoutputstream(abstractfileobject.java:1392)         @ org.apache.commons.vfs2.provider.abstractfileobject.getoutputstream(abstractfileobject.java:1353)         @ org.apache.commons.vfs2.provider.abstractfileobject.createfile(abstractfileobject.java:372)         ... 22 more     caused by: org.apache.commons.vfs2.filesystemexception: not create directory "\\172.50.33.115\d$".         @ org.apache.commons.vfs2.provider.local.localfile.docreatefolder(localfile.java:158)         @ org.apache.commons.vfs2.provider.abstractfileobject.createfolder(abstractfileobject.java:425)         ... 25 more 

i running code on windows. web application.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -