Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SFTP ; SSH_FX_FAILURE:

843790Aug 21 2008
Hi.

I am trying to do a fsetstat on a file using sftp:

fileAttributes = sftpClient.fstat(fileHandle);
fileAttributes.permissions = new Integer(00777);
sftpClient.fsetstat(fileHandle, fileAttributes);

The files permission gets changed as requested on the server but an exception gets thrown, I can�t figure out why the exception is thrown :SSH_FX_FAILURE: An error occurred, but no specific error code exists to describe the failure.

I am able to do createFile which indicates that my connection and file handle is working...
Also the file gets created by the process and therefor I have all the neccesary permission to make changes to the file.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2008
Added on Aug 21 2008
0 comments
1,844 views