Re: doCatch in XML DSL broken in 3.8.0+

2021-04-09 Thread Claus Ibsen
Okay I have created a JIRA ticket
https://issues.apache.org/jira/browse/CAMEL-16476

-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


RE: doCatch in XML DSL broken in 3.8.0+

2021-04-09 Thread HOEFLAKEN Jacob
Hi Clause,

And yes, I am using route XML files.

Met vriendelijke groet / Kind regards,

Jacob Hoeflaken
Technology Leader

Tel: +31 88 988 90 00 - Mobiel: +31 6 11956482 - jacob.hoefla...@axians.com

 
 
-Original Message-
From: HOEFLAKEN Jacob  
Sent: Friday, April 9, 2021 10:25
To: users@camel.apache.org
Subject: RE: doCatch in XML DSL broken in 3.8.0+

Hi Clause,

I am using Camel Quarkus 1.8.0 (Camel 3.9) and 1.7.0 (Camel 3.8) moved back to 
1.6.0 (Camel 3.7).

Met vriendelijke groet / Kind regards,

Jacob Hoeflaken
Technology Leader

Tel: +31 88 988 90 00 - Mobiel: +31 6 11956482 - jacob.hoefla...@axians.com

 
 
-Original Message-
From: Claus Ibsen 
Sent: Friday, April 9, 2021 10:23
To: users@camel.apache.org
Subject: Re: doCatch in XML DSL broken in 3.8.0+

Hi

What runtime are you using to run Camel, and it looks like your route xml files 
are not spring xml files, but loaded via the new xml loader.
And if so then its a clue to it being the problem.

On Fri, Apr 9, 2021 at 10:10 AM HOEFLAKEN Jacob 
 wrote:
>
> Hi,
>
> I cannot add a doCatch anymore in the XML DSL since 3.8.0+.
>
>  xmlns="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcamel.apache.org%2Fschema%2Fspringdata=04%7C01%7Cjacob.hoeflaken%40axians.com%7Cf8df9dac4ce74270112b08d8fb30fd01%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535535107658914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=TftxhcjuSQmnRDwcwiekp88k%2FPUYJ%2F1wotYbSjcFG6Q%3Dreserved=0;
> 
> xmlns:xsi="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instancedata=04%7C01%7Cjacob.hoeflaken%40axians.com%7Cf8df9dac4ce74270112b08d8fb30fd01%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535535107658914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=lfkBXf0oQX2q4VYifcv%2F5c8YlKYgtZQQgR3ZSTz4b20%3Dreserved=0;
> 
> xsi:schemaLocation="https://eur01.safelinks.protection.outlook.com/?ur
> l=http%3A%2F%2Fcamel.apache.org%2Fschema%2Fspringdata=04%7C01%7Cj
> acob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d
> 06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CT
> WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C1000sdata=LXriq7KcYLk3UkA3en3jqtSw6gPszeNqm3Rv6XFrPjQ%3
> Dreserved=0
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcame
> l.apache.org%2Fschema%2Fspring%2Fcamel-spring.xsddata=04%7C01%7Cj
> acob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d
> 06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CT
> WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C1000sdata=tPTTbuYLOMoNQ68u3OdgWTSOoR4xBMlIisOX7qUdo6g%3
> Dreserved=0">
>
> 
> 
> 
> 
> 
> java.lang.RuntimeException
> 
> 
> 
> 
> 
>
> I gives me an error:
>
> java.lang.IllegalArgumentException: This doCatch should have a doTry 
> as its parent on DoCatch[ [class java.lang.RuntimeException] -> 
> [To[log:catch]]]
>
> See also
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstac
> koverflow.com%2Fquestions%2F66635970%2Fcannot-configure-docatch-block-
> in-camel-3-8-0-xmldata=04%7C01%7Cjacob.hoeflaken%40axians.com%7C9
> 92e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0
> %7C0%7C637535533885870298%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=u%2FRo
> LXmaDwbK3ltNh81oPFoTDcTedUSE3fSTmHAbwdM%3Dreserved=0
>
>
> Met vriendelijke groet / Kind regards,
>
> Jacob



--
Claus Ibsen
-
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2Fdata=04%7C01%7Cjacob.hoeflaken%40axians.com%7Cf8df9dac4ce74270112b08d8fb30fd01%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535535107658914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=%2BDwexTEbIvOJvwlTxbXy488LmFPJmygJVglNqvfOuJg%3Dreserved=0
 @davsclaus Camel in Action 2: 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2data=04%7C01%7Cjacob.hoeflaken%40axians.com%7Cf8df9dac4ce74270112b08d8fb30fd01%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535535107658914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=NWErulpncHPjFzbh1TVEVkEnHZzDi1q1bao0DCyk7ak%3Dreserved=0


RE: doCatch in XML DSL broken in 3.8.0+

2021-04-09 Thread HOEFLAKEN Jacob
Hi Clause,

I am using Camel Quarkus 1.8.0 (Camel 3.9) and 1.7.0 (Camel 3.8) moved back to 
1.6.0 (Camel 3.7).

Met vriendelijke groet / Kind regards,

Jacob Hoeflaken
Technology Leader

Tel: +31 88 988 90 00 - Mobiel: +31 6 11956482 - jacob.hoefla...@axians.com

 
 
-Original Message-
From: Claus Ibsen  
Sent: Friday, April 9, 2021 10:23
To: users@camel.apache.org
Subject: Re: doCatch in XML DSL broken in 3.8.0+

Hi

What runtime are you using to run Camel, and it looks like your route xml files 
are not spring xml files, but loaded via the new xml loader.
And if so then its a clue to it being the problem.

On Fri, Apr 9, 2021 at 10:10 AM HOEFLAKEN Jacob 
 wrote:
>
> Hi,
>
> I cannot add a doCatch anymore in the XML DSL since 3.8.0+.
>
>  xmlns="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcamel.apache.org%2Fschema%2Fspringdata=04%7C01%7Cjacob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=LXriq7KcYLk3UkA3en3jqtSw6gPszeNqm3Rv6XFrPjQ%3Dreserved=0;
> 
> xmlns:xsi="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instancedata=04%7C01%7Cjacob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=7J4Y%2Fe6iwjdmTVWjV92IiC2K14Zb4TEMWyaJsdkaOyU%3Dreserved=0;
> 
> xsi:schemaLocation="https://eur01.safelinks.protection.outlook.com/?ur
> l=http%3A%2F%2Fcamel.apache.org%2Fschema%2Fspringdata=04%7C01%7Cj
> acob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d
> 06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CT
> WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C1000sdata=LXriq7KcYLk3UkA3en3jqtSw6gPszeNqm3Rv6XFrPjQ%3
> Dreserved=0 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcame
> l.apache.org%2Fschema%2Fspring%2Fcamel-spring.xsddata=04%7C01%7Cj
> acob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d
> 06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CT
> WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI
> 6Mn0%3D%7C1000sdata=tPTTbuYLOMoNQ68u3OdgWTSOoR4xBMlIisOX7qUdo6g%3
> Dreserved=0">
>
> 
> 
> 
> 
> 
> java.lang.RuntimeException
> 
> 
> 
> 
> 
>
> I gives me an error:
>
> java.lang.IllegalArgumentException: This doCatch should have a doTry 
> as its parent on DoCatch[ [class java.lang.RuntimeException] -> 
> [To[log:catch]]]
>
> See also 
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstac
> koverflow.com%2Fquestions%2F66635970%2Fcannot-configure-docatch-block-
> in-camel-3-8-0-xmldata=04%7C01%7Cjacob.hoeflaken%40axians.com%7C9
> 92e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0
> %7C0%7C637535533885870298%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAi
> LCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=u%2FRo
> LXmaDwbK3ltNh81oPFoTDcTedUSE3fSTmHAbwdM%3Dreserved=0
>
>
> Met vriendelijke groet / Kind regards,
>
> Jacob



--
Claus Ibsen
-
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2Fdata=04%7C01%7Cjacob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885870298%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=PgiDbFGn6mmtqtL2ZLJYooEL5nFVAiAs0rLNzd6akRg%3Dreserved=0
 @davsclaus Camel in Action 2: 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2data=04%7C01%7Cjacob.hoeflaken%40axians.com%7C992e0bdfdc5141e808f208d8fb30b45f%7Ccae7d06108f340dd80c33c0b8889224a%7C0%7C0%7C637535533885880292%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000sdata=fgX1zYgnYpGQluF8RkrUm40IzjnSjO1%2FTTiKpy%2B8sk0%3Dreserved=0


Re: doCatch in XML DSL broken in 3.8.0+

2021-04-09 Thread Claus Ibsen
Hi

What runtime are you using to run Camel, and it looks like your route
xml files are not spring xml files, but loaded via the new xml loader.
And if so then its a clue to it being the problem.

On Fri, Apr 9, 2021 at 10:10 AM HOEFLAKEN Jacob
 wrote:
>
> Hi,
>
> I cannot add a doCatch anymore in the XML DSL since 3.8.0+.
>
> http://camel.apache.org/schema/spring;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> xsi:schemaLocation="http://camel.apache.org/schema/spring 
> https://camel.apache.org/schema/spring/camel-spring.xsd;>
>
> 
> 
> 
> 
> 
> java.lang.RuntimeException
> 
> 
> 
> 
> 
>
> I gives me an error:
>
> java.lang.IllegalArgumentException: This doCatch should have a doTry as its 
> parent on DoCatch[ [class java.lang.RuntimeException] -> [To[log:catch]]]
>
> See also 
> https://stackoverflow.com/questions/66635970/cannot-configure-docatch-block-in-camel-3-8-0-xml
>
>
> Met vriendelijke groet / Kind regards,
>
> Jacob



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2