You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Vinu Raj <vi...@wipro.com> on 2014/04/03 19:49:58 UTC

File processing stops on bean invocation at times

I have a simple route as following

from("file:{{input.dir}}?sortBy=file:name&include=.*.data&move={{done.dir}}&delay={{poll.delay}}")
        .id("FileConsumer")
        .log("Processing file ${file:name}")
        .beanRef("FileBinder","bind")
        .beanRef("PU","execute")
        .log("Completed processing ${file:name}")
        .end();

Running Apache Camel 2.13.1 in Apache Karaf 3.0.0. I have around 100 files
in the input directory. Camel processes 5-6 files initially and then the
second bean invocation doesn't happen and the file processing stops at that
point with no exceptions. I have another Camel route which is using quatrz2
cron like scheduler producing these files in {{input.dir}}. When ever there
is an invocation from quartz scheduler in between the above mentioned route,
the issue happens. What is going wrong here ? The camel trace 
MethodInfo.java:276 | >>>> invoking is not appearing for the second bean
invocation.



--
View this message in context: http://camel.465427.n5.nabble.com/File-processing-stops-on-bean-invocation-at-times-tp5749736.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File processing stops on bean invocation at times

Posted by Vinu Raj <vi...@wipro.com>.
My mistake, it is Apache Camel 2.12.2.
Got the issue resolved. FileBinder was waiting for a resource which never
got released.



--
View this message in context: http://camel.465427.n5.nabble.com/File-processing-stops-on-bean-invocation-at-times-tp5749736p5749768.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File processing stops on bean invocation at times

Posted by Christian Müller <ch...@gmail.com>.
Apache Camel 2.13.1 doesn't exist at present.
Can you share the code of your beans?
Can you share your log files (debug level)?

Best,

Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Thu, Apr 3, 2014 at 7:49 PM, Vinu Raj <vi...@wipro.com> wrote:

> I have a simple route as following
>
>
> from("file:{{input.dir}}?sortBy=file:name&include=.*.data&move={{done.dir}}&delay={{poll.delay}}")
>         .id("FileConsumer")
>         .log("Processing file ${file:name}")
>         .beanRef("FileBinder","bind")
>         .beanRef("PU","execute")
>         .log("Completed processing ${file:name}")
>         .end();
>
> Running Apache Camel 2.13.1 in Apache Karaf 3.0.0. I have around 100 files
> in the input directory. Camel processes 5-6 files initially and then the
> second bean invocation doesn't happen and the file processing stops at that
> point with no exceptions. I have another Camel route which is using quatrz2
> cron like scheduler producing these files in {{input.dir}}. When ever there
> is an invocation from quartz scheduler in between the above mentioned
> route,
> the issue happens. What is going wrong here ? The camel trace
> MethodInfo.java:276 | >>>> invoking is not appearing for the second bean
> invocation.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/File-processing-stops-on-bean-invocation-at-times-tp5749736.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>