Hi Danya,

Could you please let us know the values of these parameters? Is there any
slash character issue in the given URI?

transport.vfs.FileURI
transport.vfs.MoveAfterProcess

Thanks

On Fri, Feb 23, 2018 at 2:19 PM, dhanya <dhanyasanth2...@gmail.com> wrote:

> Hi,
>
> While using an inbound endpoint for file processing, i am getting  the
> error
> message that the file could not be renamed even though the file is
> processed
> successfully and move to the specified "ProcessedFiles" folder.
>
> What could be causing this error message?
>
>
> [2018-02-23 13:24:26,534] [EI-Core] ERROR - FilePollingConsumer Error
> moving
> file : file:///C:/Sample.txt to file://C:/ProcessedFiles
> org.apache.commons.vfs2.FileSystemException: Could not rename
> "file:///C:/Sample.txt" to "file:///C:/ProcessedFiles/Sample.txt".
>         at
> org.apache.commons.vfs2.provider.AbstractFileObject.
> moveTo(AbstractFileObject.java:1117)
>         at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.
> moveOrDeleteAfterProcessing(FilePollingConsumer.java:849)
>         at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.
> directoryHandler(FilePollingConsumer.java:570)
>         at
> org.wso2.carbon.inbound.endpoint.protocol.file.FilePollingConsumer.poll(
> FilePollingConsumer.java:214)
>         at
> org.wso2.carbon.inbound.endpoint.protocol.file.
> FilePollingConsumer.execute(FilePollingConsumer.java:134)
>         at
> org.wso2.carbon.inbound.endpoint.protocol.file.
> FileTask.taskExecute(FileTask.java:47)
>         at
> org.wso2.carbon.inbound.endpoint.common.InboundTask.
> execute(InboundTask.java:51)
>         at
> org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
>         at
> org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.
> execute(TaskQuartzJobAdapter.java:67)
>         at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
>         at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1149)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not rename
> file "C:\Sample.txt" to "file:///C:/ProcessedFiles/Sample.txt".
>         at
> org.apache.commons.vfs2.provider.local.LocalFile.
> doRename(LocalFile.java:141)
>         at
> org.apache.commons.vfs2.provider.AbstractFileObject.
> moveTo(AbstractFileObject.java:1103)
>
>
> Inbound Endpoint:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <inboundEndpoint name="InboundEndpointA" protocol="file"
> sequence="Endpoint"
> suspend="false" xmlns="http://ws.apache.org/ns/synapse";>
>     <parameters>
>         <parameter name="interval">10</parameter>
>         <parameter name="sequential">false</parameter>
>         <parameter name="coordination">true</parameter>
>         <parameter name="transport.vfs.ContentType">text/plain</parameter>
>         <parameter name="transport.vfs.ActionAfterFailure">MOVE</
> parameter>
>         <parameter name="transport.vfs.MaxRetryCount">3</parameter>
>         <parameter name="transport.vfs.ActionAfterProcess">MOVE</
> parameter>
>         <parameter key="conf:/Sample/InboundFileUri"
> name="transport.vfs.FileURI"/>
>         <parameter key="conf:/Sample/AfterFailure"
> name="transport.vfs.MoveAfterFailure"/>
>         <parameter key="conf:/Sample/AfterProcessed"
> name="transport.vfs.MoveAfterProcess"/>
>         <parameter name="transport.vfs.CreateFolder">true</parameter>
>         <parameter name="transport.vfs.Streaming">false</parameter>
>         <parameter name="transport.vfs.Build">false</parameter>
>     </parameters>
> </inboundEndpoint>
>
> Thanks and regards,
> Dhanya
>
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
shak...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to