Hi What version of Camel are you using? And as always try with latest version as well to test if its been fixed already.
On Tue, Nov 9, 2010 at 2:13 PM, Andreas A. <[email protected]> wrote: > > Hi > > I'm struggling with a problem that I think occurs because of two threads > trying to do something to the same file but I'm not sure. > > Route1 processes a large file and spends around 30 seconds doing this. > > ... > <split> > <simple>body</simple> > <log message="sending message to queue" /> > <to uri="jms:{{jms.queue.in}}" /> > <log message="Waiting ${properties:message.interval} before sending > next > message to queue" /> > <delay> > <simple>${properties:message.interval}</simple> > </delay> > </split> > <to uri="seda:MyAggregatorQueue" /> > </when> > <!-- Route ends --> > > Towards the end I send the message to an aggregator that zips the message > and writes it do disk. > > Sometimes I then get a GenericFileOperation exception stating that camel > cannot move the file to .camel\filename and at the same time, the route > tries to read the file again, but now the route fails because the file seems > to be empty, at least it cannot be converted to string. > > I tried converting the message to String before sending it to the aggregator > because I thought maybe the aggregator would lock the file while the first > route would try to move it? But this has not helped. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Processed-file-being-read-again-and-is-empty-tp3256771p3256771.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
