Hi

I have created a ticket
https://issues.apache.org/activemq/browse/CAMEL-2897

And I am working on a fix. Running tests now.

Can you test the fix on your windows system?

You can either build the source or wait till tomorrow when a new
SNAPSHOT jars have been build and published
http://camel.apache.org/download.html
http://camel.apache.org/building.html

If you are only using camel-core.jar then I can attach a build .jar to
the JIRA ticket which you can test asap.



On Fri, Jul 2, 2010 at 9:32 AM, Claus Ibsen <[email protected]> wrote:
> On Fri, Jul 2, 2010 at 9:27 AM, bryan <[email protected]> wrote:
>>
>> I just tested this on Windows XP 32-bit with JDK 1.6.0_20 32-bit, and have
>> this same issue. I'm not sure what you mean by the configuration of the file
>> endpoint URI? I have my entire camel spring context shown. The .camel
>> directory is being created successfully, but the file is never moved there
>> when using a split. Again, the file is moved fine when not using a split, so
>> this doesn't seem related to file permissions or such.
>>
>> My suspicion is that the split code is not closing the file properly on
>> Windows, and thus it cannot be moved. I tried deleting the file from the
>> Windows command line after processing and get a "file in use" error. I also
>> tried adding a delay of 10 sec at the end of the route, but this didn't
>> solve anything.
>>
>
> Yeah I suspect its the tokenizer used by the splitter which has some
> handle on the file in use. Will have to dig in the code to see if
> there is a close needed to be invoked after usage.
>
> You can try doing a custom splitting without the tokenizer. Just for
> fun you can do a
>
> <split>
>   <constant>Hello,World</constant>
>   ...
> </split>
>
> Which should split into Hello and World.
>
>
>
>> (A side note, I also tested this on my Mac, and this problem does not occur,
>> so it is Windows-specific.)
>>
>> --
>> View this message in context: 
>> http://camel.465427.n5.nabble.com/File-can-t-be-moved-or-deleted-on-Windows-tp512484p512559.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to