Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.

FTPException - SFTP

no avatar
User

rock945

Posts

4

Joined

Wed Aug 09, 2006 8:11 am

FTPException - SFTP

by rock945 » Sun Mar 15, 2009 12:47 pm

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"
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: FTPException - SFTP

by support2 » Sun Mar 15, 2009 3:29 pm

Could you email the full log file to support at enterprisedt dot com?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: FTPException - SFTP

by support2 » Tue Mar 17, 2009 7:50 am

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.

Who is online

Users browsing this forum: No registered users and 16 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign