camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "onder sezgin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-11120) Camel ZipFile does cannot move file after succesful processing
Date Fri, 07 Apr 2017 11:21:41 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-11120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960518#comment-15960518
] 

onder sezgin edited comment on CAMEL-11120 at 4/7/17 11:20 AM:
---------------------------------------------------------------

Tested both windows and unix box. It is working.
please see my UT

https://github.com/onders86/camel/commit/a67b49c9653c4f49f7acf4c0a88a54408e870a6b




was (Author: onders):
Tested both windows and unix box. It is working.
please see my UT

https://github.com/onders86/camel/commit/077e5df4f6904e13d76444821737bcc0dafe23c0



> Camel ZipFile does cannot move file after succesful processing
> --------------------------------------------------------------
>
>                 Key: CAMEL-11120
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11120
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zipfile
>    Affects Versions: 2.18.3
>         Environment: Windows 7 x64
>            Reporter: Thomas Leber
>            Assignee: onder sezgin
>            Priority: Minor
>
> When creating a route as follows:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/spring"
>   xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
>   xsi:schemaLocation="
>           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
>           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
>           http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
>           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
>   <bean id="zipFileDataFormat" class="org.apache.camel.dataformat.zipfile.ZipFileDataFormat">
>     <property name="usingIterator" value="true" />
>   </bean>
>   <camelContext xmlns="http://camel.apache.org/schema/spring" streamCache="true">
>     <route>
>       <from uri="file:C:/camelTest/in" />
>       <unmarshal ref="zipFileDataFormat" />
>       <split streaming="true">
>         <simple>${body}</simple>
>         <log loggingLevel="INFO" message="$simple{header.zipFileName}" />
>         <to uri="file:C:/camelTest/xml" />
>       </split>
>       <log loggingLevel="INFO" message="$simple{file:name} Succesful processed" />
>     </route>
>   </camelContext>
> </beans>
> {code}
> the renaming of the file fails with 
> {code}
> Renaming file from 'C:\camelTest\in\20161201T0030Z_1D_BE00_EQ.zip' to 'C:\camelTest\in\.camel\20161201T0030Z_1D_BE00_EQ.zip'
failed: Cannot delete file 'C:\camelTest\in\20161201T0030Z_1D_BE00_EQ.zip' after copy succeeded
> {code}
> The file stays in input folder and gets processed over and over again.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message