On Thu, Sep 12, 2013 at 11:06 PM, bocamel <johnz...@gmail.com> wrote: > Christian, > > I am afraid my celebration of the fix might be a little premature. :-). > This failure of renaming/deleting a consumed file error still occurs when I > forced a org.apache.camel.component.bean.AmbiguousMethodCallException in the > route. In other words, if the route receives a file from file consumer and > sends it to a bean (having similar methods) that may result the above > exception, then the File component cannot delete/rename the file. I have > been able to reproduce this issue consistently. >
Thanks for reporting. Please feel free to log a JIRA ticket. > Unfortunately in this case, since I am processing Excel files (binary > format), I cannot try to convert the file into String first to see whether > the problem will go away. > > Here is the route: > > <camel:route id="route-process-row"> > <camel:from uri="file:src/data/rowfile" /> > <camel:to uri="bean:converter" /> > <camel:onException> > <camel:exception>org.apache.camel.component.bean.AmbiguousMethodCallException</camel:exception> > > <camel:handled><constant>true</constant></camel:handled> > <camel:log message="*** Exception caught ***" > /> > </camel:onException> > <camel:onException> > > <camel:exception>java.lang.RuntimeException</camel:exception> > > <camel:handled><constant>true</constant></camel:handled> > <camel:log message="*** Exception caught ***" > /> > </camel:onException> > </camel:route> > > The two methods of bean:converter are: > public ExternalDoc processRowExcelDoc(@Body InputStream body, > @Header("CamelFileNameOnly") String fn) > and > public ExternalDoc processColExcelDoc(@Body InputStream body, > @Header("CamelFileNameOnly") String fn) > > Thanks for any help you may provide! > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-renaming-problems-under-Windows-tp5719484p5739283.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen