Discussion:
Failed to delete file SampleFile.INC. Ftp error: 500
Sesharao
2012-05-02 05:18:14 UTC
Permalink
Hi All,

i am using FileZilla Server fo FTP,

my requirment is pick files from FTP server and write them to
'/OUT/CUSCAR/OUT/Processed' folder in FTP site and 'C:/log/in' folder in my
local system.

if am picking file sizes lessthan 10KB every thing is fine, if file size's
like 195KB files are not deleting from FTP Site(/OUT/CUSCAR/OUT).

Mule is showing below error message:
ERROR 2012-05-01 16:33:59,010 [inboundFTPConnector.receiver.02]
org.mule.exception.DefaultSystemExceptionStrategy: Caught exception in
Exception Strategy: Failed to delete file 807-Cuscar.INC. Ftp error: 500
java.io.IOException: Failed to delete file 807-Cuscar.INC. Ftp error: 500
at
org.mule.transport.ftp.FtpMessageReceiver.postProcess(FtpMessageReceiver.java:203)
at
org.mule.transport.ftp.FtpMessageReceiver.processFile(FtpMessageReceiver.java:171)
at
org.mule.transport.ftp.FtpMessageReceiver$FtpWork.run(FtpMessageReceiver.java:293)
at org.mule.work.WorkerContext.run(WorkerContext.java:310)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662).

My Code Synpet is:
<ftp:connector name="inboundFTPConnector"
binary="false"
pollingFrequency="9500" streaming="true">
</ftp:connector>

<ftp:connector name="outboundFTPConnector"
binary="false"
streaming="true">
</ftp:connector>

<file:connector name="writeConnector"/>

<flow name="ReadsCuscarEDIFilesFromFTP">

<ftp:inbound-endpoint path="/OUT/CUSCAR/OUT"
connector-ref="inboundFTPConnector" user="sesrao" password="helloworld"
host="127.0.0.1" port="21"
pollingFrequency="1000"/>
<object-to-byte-array-transformer/>

<all>
<ftp:outbound-endpoint path="/OUT/CUSCAR/OUT/Processed"
connector-ref="outboundFTPConnector" user="sesrao"
password="helloworld" host="127.0.0.1"
port="21"

outputPattern="#[header:originalFilename]"/>
<file:outbound-endpoint connector-ref="writeConnector"
path="C:/log/in"

outputPattern="#[header:originalFilename]"/>
</all>
</flow>

Thanks in Advance...

-----
-Sesha Rao.Nuthanki
--
View this message in context: http://mule.1045714.n5.nabble.com/Failed-to-delete-file-SampleFile-INC-Ftp-error-500-tp5679665.html
Sent from the Mule - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Sesharao
2013-07-22 05:08:40 UTC
Permalink
Hi Leo Chu, Thanks for your reply,

some how i am able to resolve this issue, below you can find my code.

<flow name="ReadsCuscarEDIFilesFromFTP">
<description>
Reads CuscarEDI files from MSC-FTP site and move those files to
Processed folder after copying to localsystem In folder.
</description>

<ftp:inbound-endpoint path="${ftp.cuscar.incoming.dir}"
connector-ref="inboundFTPConnector" user="${ftp.username}"
password="${ftp.password}"
host="${ftp.host}" port="21"
pollingFrequency="1100" transformer-refs="ObjectToString"/>

<all>
<ftp:outbound-endpoint
path="${ftp.cuscar.incoming.moveToDirectory}"
connector-ref="outboundFTPConnector" user="${ftp.username}"
password="${ftp.password}"
host="${ftp.host}" port="21"

outputPattern="#[header:originalFilename]"/>
<file:outbound-endpoint connector-ref="writeConnector"
path="${message.cuscar.incoming.dir}"

outputPattern="#[header:originalFilename]"/>
</all>
</flow>



-----
-Sesha Rao.Nuthanki
--
View this message in context: http://mule.1045714.n5.nabble.com/Failed-to-delete-file-SampleFile-INC-Ftp-error-500-tp5679665p5718391.html
Sent from the Mule - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...