Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sftp: The server sent an invalid id field #27

Closed
GoogleCodeExporter opened this issue May 23, 2015 · 1 comment
Closed

sftp: The server sent an invalid id field #27

GoogleCodeExporter opened this issue May 23, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Using build 261 and getting the following exception.

cd: cwd=/home/campbell/outgoing/to_xsb/test
put: absPath=/home/campbell/outgoing/to_xsb/test/f1
numBytesRead=7, offset=0
numBytesRead=-1, offset=7
put: absPath=/home/campbell/outgoing/to_xsb/test/f2
Exception in thread "main" java.io.IOException: The server sent an invalid id 
field.
    at ch.ethz.ssh2.SFTPv3Client.openFile(SFTPv3Client.java:1233)
    at ch.ethz.ssh2.SFTPv3Client.createFileTruncate(SFTPv3Client.java:1148)
    at ch.ethz.ssh2.SFTPv3Client.createFileTruncate(SFTPv3Client.java:1129)
    at sftp.put(sftp.java:59)
    at sftp.main(sftp.java:106)

Test code is attached.

Original issue reported on code.google.com by rossolin...@gmail.com on 25 Oct 2013 at 4:23

Attachments:

@GoogleCodeExporter
Copy link
Author

You have to close the file handle after writing with 
sftpClient.closeFile(fileHandle).

Original comment by dkocher@sudo.ch on 9 Apr 2014 at 7:39

  • Changed state: Invalid

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant