Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in Java FTP by (460 points)
I am on version 1.2.8 of the edtftpj-pro api and I have a question regarding check file status. I got the following exception when I tried to upload a file to a SFTP server. I was wondering if there was a way to disable the check file status after the file has been uploaded. It is not the ideal solution that want, but I at least need to investigate this. Here is the exception:

Regards,

John

21 Mar 2007 11:04:39 [AbstractOutputAdapter] ERROR - No such file : /234970/1146194300ALL.txt
com.enterprisedt.net.j2ssh.sftp.SftpSubsystemClient.getAttributes(SftpSubsystemClient.java:515)
com.enterprisedt.net.j2ssh.SftpClient.stat(SftpClient.java:1130)
com.enterprisedt.net.j2ssh.SftpClient.put(SftpClient.java:883)
com.enterprisedt.net.ftp.ssh.SSHFTPClient.put(Unknown Source)
com.alliantenergy.datatransfermanager.outputadapter.SFTPWriteOutputAdapter.process(SFTPWriteOutputAdapter.java:43)
com.alliantenergy.datatransfermanager.job.EAIJob.runOutputAdapter(EAIJob.java:160)
com.alliantenergy.datatransfermanager.job.EAIJob.execute(EAIJob.java:104)
org.quartz.core.JobRunShell.run(JobRunShell.java:195)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)[/code]

3 Answers

0 votes
by (162k points)
Yes, there is a flag for this.

setConfigFlags(ConfigFlags.DISABLE_CHMOD_AFTER_PUT);
0 votes
by (460 points)
setConfigFlags(ConfigFlags.DISABLE_CHMOD_AFTER_PUT);

The command above works great for when you are doing a put, but what about when you are doing a get? I am still getting the same exception after a get.
0 votes
by (460 points)
Found it.. nevermind.. it was my mistake...

Thanks for your help

Categories

...