Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.5k views
in Java FTP by (220 points)
hi,
I am doing a sftp transfer and doing a file put..
I get the exception below but the file is transferred successfully.
The directory on the ftp server is Inbound/Encrypted. and the file name i am transferring is 20090313a.
Any suggestions ?

thanks

DEBUG [com.enterprisedt.net.j2ssh.sftp.SftpMessageStore] 14 Mar 2009 19:38:41.26 : Waiting for new messages
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 14 Mar 2009 19:38:41.135 : Received SSH_MSG_CHANNEL_DATA
DEBUG [com.enterprisedt.net.j2ssh.transport.AsyncService] 14 Mar 2009 19:38:41.135 : Routing SSH_MSG_CHANNEL_DATA
DEBUG [com.enterprisedt.net.j2ssh.connection.ConnectionProtocol] 14 Mar 2009 19:38:41.135 : Received 101 bytes of data for channel id 0
DEBUG [com.enterprisedt.net.j2ssh.subsystem.SubsystemMessageStore] 14 Mar 2009 19:38:41.135 : Received SSH_FXP_STATUS subsystem message
DEBUG [com.enterprisedt.net.j2ssh.transport.AsyncService] 14 Mar 2009 19:38:41.135 : Finished processing SSH_MSG_CHANNEL_DATA
com.enterprisedt.net.ftp.FTPException: /Inbound/Encrypted/20090313a is not a valid file path : /Inbound/Encrypted/20090313a
at com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getAttributes(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.stat(Unknown Source)
at com.enterprisedt.net.j2ssh.SftpClient.put(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.put(Unknown Source)
at test.TestSFTP.getData(TestSFTP.java:71)
at test.TestSFTP.main(TestSFTP.java:204)
Exception in thread "main"

2 Answers

0 votes
by (162k points)
Could you email the full log file to support at enterprisedt dot com?
0 votes
by (162k points)
This problem was fixed in version 1.5.1 (released 1 May, 2007), but you can avoid it in your version simply by setting the DISABLE_CHMOD_AFTER_PUT flag in SSHFTPClient. You do this as follows:

sftpClient.setConfigFlags(SSLFTPClient.ConfigFlags.DISABLE_CHMOD_AFTER_PUT);

If you are able to upgrade to the latest version then that would be advisable of course.

Categories

...