jcifs.smb.SmbException: Access is denied. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:510) at jcifs.smb.SmbTransport.send(SmbTransport.java:610) at jcifs.smb.SmbSession.send(SmbSession.java:231) at jcifs.smb.SmbTree.send(SmbTree.java:102) at jcifs.smb.SmbFile.send(SmbFile.java:687) at jcifs.smb.SmbFile.open0(SmbFile.java:827) at jcifs.smb.SmbFile.open(SmbFile.java:845) at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:139) at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97) at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67) at jcifs.smb.SmbFile.getOutputStream(SmbFile.java:2512) at TestProtocole.main(TestProtocole.java:54) GÉNÉRATION TERMINÉE (durée totale 10 secondes)
Marsh Posté le 11-06-2011 à 05:40:31
Slt
j ai un petit pb je souhaite créer un flux sortant sur un dossier partagé
mais j ai un "Acces denied"
Un cou de pousse SVP!!!!!
Merci!!!!!!!!!!!
voici mon code
::::::::::::::::::::::CODE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
import ...
public class TestProtocole
{
public static void main(String[] args) throws IOException {
try {
SmbFile filesmb = new SmbFile("smb://WORKGROUP;login:pwd@AdressIP/DossierPartage/" );
OutputStream destination = filesmb.getOutputStream();
InputStream originalfile = new FileInputStream("C://tt//test223.txt" );
IOUtils.copy(originalfile,destination);
} catch (SmbException e)
{
e.printStackTrace();
}
}
}
::::::::::::::::::::::::::::::::::::::ERREUR::::::::::::::::::::::::::::::::::::::::::::
jcifs.smb.SmbException: Access is denied.
at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:510)
at jcifs.smb.SmbTransport.send(SmbTransport.java:610)
at jcifs.smb.SmbSession.send(SmbSession.java:231)
at jcifs.smb.SmbTree.send(SmbTree.java:102)
at jcifs.smb.SmbFile.send(SmbFile.java:687)
at jcifs.smb.SmbFile.open0(SmbFile.java:827)
at jcifs.smb.SmbFile.open(SmbFile.java:845)
at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:139)
at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
at jcifs.smb.SmbFile.getOutputStream(SmbFile.java:2512)
at TestProtocole.main(TestProtocole.java:54)
GÉNÉRATION TERMINÉE (durée totale 10 secondes)