camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Leber (JIRA)" <>
Subject [jira] [Created] (CAMEL-11120) Camel ZipFile does cannot move file after succesful processing
Date Thu, 06 Apr 2017 16:22:41 GMT
Thomas Leber created CAMEL-11120:

             Summary: Camel ZipFile does cannot move file after succesful processing
                 Key: CAMEL-11120
             Project: Camel
          Issue Type: Bug
          Components: camel-zipfile
    Affects Versions: 2.18.3
         Environment: Windows 7 x64
            Reporter: Thomas Leber

When creating a route as follows:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="" xmlns:xsi=""
  xmlns:context="" xmlns:util=""


  <bean id="zipFileDataFormat" class="org.apache.camel.dataformat.zipfile.ZipFileDataFormat">
    <property name="usingIterator" value="true" />

  <bean id="zipAggregationStrategy" class="org.apache.camel.processor.aggregate.zipfile.ZipAggregationStrategy">
    <constructor-arg index="0" value="true" />
    <constructor-arg index="1" value="true" />

  <camelContext xmlns="" streamCache="true">
      <from uri="file:C:/camelTest/in" />
      <unmarshal ref="zipFileDataFormat" />
      <split strategyRef="zipAggregationStrategy" streaming="true">
        <log loggingLevel="INFO" message="$simple{header.zipFileName}" />
        <to uri="file:C:/camelTest/xml" />
      <log loggingLevel="INFO" message="$simple{file:name} Succesful processed" />

the renaming of the file fails with 
Renaming file from 'C:\camelTest\in\' to 'C:\camelTest\in\.camel\'
failed: Cannot delete file 'C:\camelTest\in\' after copy succeeded
The file stays in input folder and gets processed over and over again.

This message was sent by Atlassian JIRA

View raw message