You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gardella juan <ga...@gmail.com> on 2013/08/16 18:45:08 UTC
camel-spring-batch 2.11.1 breaks previous working routes
Hi all,
I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 to
2.11.1 and the route that use camel-spring-batch have failed. I detect that
the problem is in 2.11.1 after the execution of the job the headers are
cleaned. So I changed my route to log the headers before and after execute
the job:
Route:
[...]
.log("Before: ${headers}")
.to("spring-batch:myJob")
.log("After: ${headers}")
[...]
And here is the log for the different versions:
2.11.0
==========================
INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
launched with the following parameters: [{CamelFileLength=1833, [...]}]
[...]
INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
completed with the following parameters: [{CamelFileLength=1833, [...]}] and
the following status: [COMPLETED]
INFO BatchProcessRouteBuilder.batch After: {CamelFileLength=1833, [...]}
2.11.1
=======================
INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
launched with the following parameters: [{CamelFileLength=1833,[...]}]
[...]
INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
completed with the following parameters: [{CamelFileLength=1833,[...]}] and
the following status: [COMPLETED]
*INFO BatchProcessRouteBuilder.batch After: {}*
I marked in bold the problem. The headers are empty. Do I have to raise a
JIRA ticket with this problem?
Thanks,
Juan
--
View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-spring-batch 2.11.1 breaks previous working routes
Posted by Gardella juan <ga...@gmail.com>.
I've attached "CAMEL-6656-testcase.zip" with a test to reproduce the bug in
the ticket. If we use camel 2.11.0 the test works fine.
--
View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426p5737694.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-spring-batch 2.11.1 breaks previous working routes
Posted by Claus Ibsen <cl...@gmail.com>.
I logged a ticket
https://issues.apache.org/jira/browse/CAMEL-6656
On Sat, Aug 17, 2013 at 9:04 AM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> Yeah sounds like a bug, feel free to log a JIRA, and as usual we love
> contributions with patches.
>
>
> On Fri, Aug 16, 2013 at 6:45 PM, Gardella juan
> <ga...@gmail.com> wrote:
>> Hi all,
>>
>> I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 to
>> 2.11.1 and the route that use camel-spring-batch have failed. I detect that
>> the problem is in 2.11.1 after the execution of the job the headers are
>> cleaned. So I changed my route to log the headers before and after execute
>> the job:
>>
>> Route:
>>
>> [...]
>> .log("Before: ${headers}")
>> .to("spring-batch:myJob")
>> .log("After: ${headers}")
>> [...]
>>
>> And here is the log for the different versions:
>>
>> 2.11.0
>> ==========================
>> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
>> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
>> launched with the following parameters: [{CamelFileLength=1833, [...]}]
>> [...]
>> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
>> completed with the following parameters: [{CamelFileLength=1833, [...]}] and
>> the following status: [COMPLETED]
>> INFO BatchProcessRouteBuilder.batch After: {CamelFileLength=1833, [...]}
>>
>> 2.11.1
>> =======================
>> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
>> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
>> launched with the following parameters: [{CamelFileLength=1833,[...]}]
>> [...]
>> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
>> completed with the following parameters: [{CamelFileLength=1833,[...]}] and
>> the following status: [COMPLETED]
>> *INFO BatchProcessRouteBuilder.batch After: {}*
>>
>> I marked in bold the problem. The headers are empty. Do I have to raise a
>> JIRA ticket with this problem?
>>
>> Thanks,
>> Juan
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: camel-spring-batch 2.11.1 breaks previous working routes
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah sounds like a bug, feel free to log a JIRA, and as usual we love
contributions with patches.
On Fri, Aug 16, 2013 at 6:45 PM, Gardella juan
<ga...@gmail.com> wrote:
> Hi all,
>
> I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 to
> 2.11.1 and the route that use camel-spring-batch have failed. I detect that
> the problem is in 2.11.1 after the execution of the job the headers are
> cleaned. So I changed my route to log the headers before and after execute
> the job:
>
> Route:
>
> [...]
> .log("Before: ${headers}")
> .to("spring-batch:myJob")
> .log("After: ${headers}")
> [...]
>
> And here is the log for the different versions:
>
> 2.11.0
> ==========================
> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> launched with the following parameters: [{CamelFileLength=1833, [...]}]
> [...]
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> completed with the following parameters: [{CamelFileLength=1833, [...]}] and
> the following status: [COMPLETED]
> INFO BatchProcessRouteBuilder.batch After: {CamelFileLength=1833, [...]}
>
> 2.11.1
> =======================
> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> launched with the following parameters: [{CamelFileLength=1833,[...]}]
> [...]
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> completed with the following parameters: [{CamelFileLength=1833,[...]}] and
> the following status: [COMPLETED]
> *INFO BatchProcessRouteBuilder.batch After: {}*
>
> I marked in bold the problem. The headers are empty. Do I have to raise a
> JIRA ticket with this problem?
>
> Thanks,
> Juan
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: camel-spring-batch 2.11.1 breaks previous working routes
Posted by David Karlsen <da...@gmail.com>.
Can you provide a strippped down project or unit test that shows the error?
2013/8/16 Gardella juan <ga...@gmail.com>
> Hi all,
>
> I've used camel-spring-batch from a while. I recently upgrade from 2.11.0
> to
> 2.11.1 and the route that use camel-spring-batch have failed. I detect that
> the problem is in 2.11.1 after the execution of the job the headers are
> cleaned. So I changed my route to log the headers before and after execute
> the job:
>
> Route:
>
> [...]
> .log("Before: ${headers}")
> .to("spring-batch:myJob")
> .log("After: ${headers}")
> [...]
>
> And here is the log for the different versions:
>
> 2.11.0
> ==========================
> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> launched with the following parameters: [{CamelFileLength=1833, [...]}]
> [...]
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> completed with the following parameters: [{CamelFileLength=1833, [...]}]
> and
> the following status: [COMPLETED]
> INFO BatchProcessRouteBuilder.batch After: {CamelFileLength=1833, [...]}
>
> 2.11.1
> =======================
> INFO BatchProcessRouteBuilder.batch Before: {CamelFileLength=1833, [...]}
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> launched with the following parameters: [{CamelFileLength=1833,[...]}]
> [...]
> INFO o.s.b.c.l.support.SimpleJobLauncher Job: [FlowJob: [name=myJob]]
> completed with the following parameters: [{CamelFileLength=1833,[...]}] and
> the following status: [COMPLETED]
> *INFO BatchProcessRouteBuilder.batch After: {}*
>
> I marked in bold the problem. The headers are empty. Do I have to raise a
> JIRA ticket with this problem?
>
> Thanks,
> Juan
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen