[jira] [Updated] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-12573:
-
Fix Version/s: 2.22.0
   2.21.2
   2.20.4

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.20.4, 2.21.2, 2.22.0
>
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-12573:


Assignee: Andrea Cosentino

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: Andrea Cosentino
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12575) camel-cxfrs: NPE on GET request with Content-Type header

2018-06-12 Thread Chris Ribble (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Ribble updated CAMEL-12575:
-
Description: 
This commit  
[https://github.com/apache/camel/commit/e4ad40f2eebb68cfde175b171538e26b278f63f6]
 modified DefaultCxfRsBinding.populateCxfRsResponseFromExchange in a way that 
causes an NPE on line #116 when a GET request is made with the Content-Type 
header set. Since Camel copies the request headers into the response, this 
causes the check for Content-Type to find the header and the code after that 
assumes that cxfExchange.getOutMessage() is non-null.

I can work around this by asking clients not to send the Content-Type header 
(which is generally meaningless for a GET), but I cannot force them not to send 
it. I think I can also add header filtering before the endpoint is executed to 
strip the Content-Type header for GET requests, but ideally 
DefaultCxfRsBinding.populateCxfRsResponseFromExchange would not call 
cxfExchange.getOutMessage().putIfAbsent if getOutMessage returns null.

  was:
This commit  
[https://github.com/apache/camel/commit/e4ad40f2eebb68cfde175b171538e26b278f63f6]
 modified DefaultCxfRsBinding.populateCxfRsResponseFromExchange in a way that 
causes an NPE on line #116 when a GET request is made with the Content-Type 
header set (which is copied into the response).

I can work around this by asking clients not to send the Content-Type header 
(which is generally meaningless for a GET) and/or by adding header filtering 
before the endpoint is executed, but ideally this code would not call 
cxfExchange.getOutMessage().putIfAbsent if getOutMessage returns null so that 
the NPE would not be triggered.


> camel-cxfrs: NPE on GET request with Content-Type header
> 
>
> Key: CAMEL-12575
> URL: https://issues.apache.org/jira/browse/CAMEL-12575
> Project: Camel
>  Issue Type: Bug
>  Components: camel-cxfrs
>Affects Versions: 2.21.1
>Reporter: Chris Ribble
>Priority: Major
>
> This commit  
> [https://github.com/apache/camel/commit/e4ad40f2eebb68cfde175b171538e26b278f63f6]
>  modified DefaultCxfRsBinding.populateCxfRsResponseFromExchange in a way that 
> causes an NPE on line #116 when a GET request is made with the Content-Type 
> header set. Since Camel copies the request headers into the response, this 
> causes the check for Content-Type to find the header and the code after that 
> assumes that cxfExchange.getOutMessage() is non-null.
> I can work around this by asking clients not to send the Content-Type header 
> (which is generally meaningless for a GET), but I cannot force them not to 
> send it. I think I can also add header filtering before the endpoint is 
> executed to strip the Content-Type header for GET requests, but ideally 
> DefaultCxfRsBinding.populateCxfRsResponseFromExchange would not call 
> cxfExchange.getOutMessage().putIfAbsent if getOutMessage returns null.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CAMEL-12575) camel-cxfrs: NPE on GET request with Content-Type header

2018-06-12 Thread Chris Ribble (JIRA)
Chris Ribble created CAMEL-12575:


 Summary: camel-cxfrs: NPE on GET request with Content-Type header
 Key: CAMEL-12575
 URL: https://issues.apache.org/jira/browse/CAMEL-12575
 Project: Camel
  Issue Type: Bug
  Components: camel-cxfrs
Affects Versions: 2.21.1
Reporter: Chris Ribble


This commit  
[https://github.com/apache/camel/commit/e4ad40f2eebb68cfde175b171538e26b278f63f6]
 modified DefaultCxfRsBinding.populateCxfRsResponseFromExchange in a way that 
causes an NPE on line #116 when a GET request is made with the Content-Type 
header set (which is copied into the response).

I can work around this by asking clients not to send the Content-Type header 
(which is generally meaningless for a GET) and/or by adding header filtering 
before the endpoint is executed, but ideally this code would not call 
cxfExchange.getOutMessage().putIfAbsent if getOutMessage returns null so that 
the NPE would not be triggered.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-12 Thread Ronak Patel (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronak Patel updated CAMEL-12574:

Labels: crypto pgp  (was: pgp)

> PGPDataFormat: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection
> ---
>
> Key: CAMEL-12574
> URL: https://issues.apache.org/jira/browse/CAMEL-12574
> Project: Camel
>  Issue Type: Bug
>  Components:  camel-crypto
>Affects Versions: 2.21.0
>Reporter: Ronak Patel
>Priority: Major
>  Labels: crypto, pgp
> Attachments: junitTest.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^junitTest.zip]
> *issue:*
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
> at 
> org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
> at 
> org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
> at 
> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
> ... 17 common frames omitted{code}
>  
> *more details:* [on 
> StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-12 Thread Ronak Patel (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronak Patel updated CAMEL-12574:

Description: 
*Camel Version:* 2.21.0 (Springboot)

*JDK version:* 1.8.0_121

*unit test:* [^junitTest.zip]

^*more details:* [on 
StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]^

*issue:*
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
at 
org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
... 17 common frames omitted{code}

  was:
*Camel Version:* 2.21.0 (Springboot)

*JDK version:* 1.8.0_121

*unit test:* [^junitTest.zip]

*issue:*
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
at 
org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
... 17 common frames omitted{code}
 

*more details:* [on 
StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]


> PGPDataFormat: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection
> ---
>
> Key: CAMEL-12574
> URL: https://issues.apache.org/jira/browse/CAMEL-12574
> Project: Camel
>  Issue Type: Bug
>  Components:  camel-crypto
>Affects Versions: 2.21.0
>Reporter: Ronak Patel
>Priority: Major
>  Labels: crypto, pgp
> Attachments: junitTest.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^junitTest.zip]
> ^*more details:* [on 
> StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]^
> *issue:*
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
> at 
> org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
> at 
> org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
> at 
> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
> ... 17 common frames omitted{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-12 Thread Ronak Patel (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronak Patel updated CAMEL-12574:

Labels: pgp  (was: )

> PGPDataFormat: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection
> ---
>
> Key: CAMEL-12574
> URL: https://issues.apache.org/jira/browse/CAMEL-12574
> Project: Camel
>  Issue Type: Bug
>  Components:  camel-crypto
>Affects Versions: 2.21.0
>Reporter: Ronak Patel
>Priority: Major
>  Labels: pgp
> Attachments: junitTest.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^junitTest.zip]
> *issue:*
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
> at 
> org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
> at 
> org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
> at 
> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
> ... 17 common frames omitted{code}
>  
> *more details:* [on 
> StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-12 Thread Ronak Patel (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ronak Patel updated CAMEL-12574:

Component/s:  camel-crypto

> PGPDataFormat: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection
> ---
>
> Key: CAMEL-12574
> URL: https://issues.apache.org/jira/browse/CAMEL-12574
> Project: Camel
>  Issue Type: Bug
>  Components:  camel-crypto
>Affects Versions: 2.21.0
>Reporter: Ronak Patel
>Priority: Major
>  Labels: pgp
> Attachments: junitTest.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^junitTest.zip]
> *issue:*
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
> at 
> org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
> at 
> org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
> at 
> org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
> at 
> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
> ... 17 common frames omitted{code}
>  
> *more details:* [on 
> StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-12 Thread Ronak Patel (JIRA)
Ronak Patel created CAMEL-12574:
---

 Summary: PGPDataFormat: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection
 Key: CAMEL-12574
 URL: https://issues.apache.org/jira/browse/CAMEL-12574
 Project: Camel
  Issue Type: Bug
Affects Versions: 2.21.0
Reporter: Ronak Patel
 Attachments: junitTest.zip

*Camel Version:* 2.21.0 (Springboot)

*JDK version:* 1.8.0_121

*unit test:* [^junitTest.zip]

*issue:*
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:204)
at 
org.apache.camel.converter.crypto.PGPDataFormatUtil.findPublicKeys(PGPDataFormatUtil.java:96)
at 
org.apache.camel.converter.crypto.PGPDataFormat.getEncryptionKeys(PGPDataFormat.java:235)
at 
org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.marshal(PGPKeyAccessDataFormat.java:222)
at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:69)
... 17 common frames omitted{code}
 

*more details:* [on 
StackOverflow|https://stackoverflow.com/questions/50610962/camel-2-21-0-pgp-encryption-not-working]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ayache khettar reassigned CAMEL-12573:
--

Assignee: (was: ayache khettar)

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509810#comment-16509810
 ] 

ASF GitHub Bot commented on CAMEL-12573:


akhettar commented on issue #2372: CAMEL-12573: Fixing class cast exception
URL: https://github.com/apache/camel/pull/2372#issuecomment-396646766
 
 
   @oscerd I've just amended the commit with the Jira number


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509809#comment-16509809
 ] 

ASF GitHub Bot commented on CAMEL-12573:


akhettar commented on issue #2372: CAMEL-12573: Fixing class cast exception
URL: https://github.com/apache/camel/pull/2372#issuecomment-396646766
 
 
   @oscerd I've just amended the commit with the Jira nunber


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509778#comment-16509778
 ] 

ASF GitHub Bot commented on CAMEL-12573:


oscerd commented on issue #2372: CAMEL-12573: Fixing class cast exception
URL: https://github.com/apache/camel/pull/2372#issuecomment-396639580
 
 
   Can you please add the Jira number to the commit message? Otherwise it looks 
good.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509777#comment-16509777
 ] 

ayache khettar edited comment on CAMEL-12573 at 6/12/18 3:49 PM:
-

Can anyone review this for me, please? Pull request: 
[https://github.com/apache/camel/pull/2372] 


was (Author: akhettar):
Can anyone review this for me please?

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Work started] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-12573 started by ayache khettar.
--
> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ayache khettar reassigned CAMEL-12573:
--

Assignee: ayache khettar

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509777#comment-16509777
 ] 

ayache khettar commented on CAMEL-12573:


Can anyone review this for me please?

> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Assignee: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}
> {code:java}
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509774#comment-16509774
 ] 

ASF GitHub Bot commented on CAMEL-12573:


akhettar opened a new pull request #2372: CAMEL-12573: Fixing class cast 
exception
URL: https://github.com/apache/camel/pull/2372
 
 
   I have introduced a generic method which extracts the values of the 
`Partition` and the `Offset` from the Exchange headers according to their 
corresponding types.
   
   Here is the Jira ticket for 
it.https://issues.apache.org/jira/browse/CAMEL-12573


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix and I will raise a pull 
> request shortly.
>  
>  
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ayache khettar updated CAMEL-12573:
---
Description: 
ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and the 
Offset header values. The fix to this is to cast the partition to an Integer 
and the Offset to a Long. I have got a fix for it and here is a pull request 
for it: https://github.com/apache/camel/pull/2372 
{code:java}
2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
tracing data

java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
at 
org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
 [camel-kafka-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
 [camel-kafka-2.21.0.jar:2.21.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[na:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
{code}
{code:java}
 {code}

  was:
ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and the 
Offset header values. The fix to this is to cast the partition to an Integer 
and the Offset to a Long. I have got a fix and I will raise a pull request 
shortly.

 

 
{code:java}

2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
tracing data

java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
at 
org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
 [camel-kafka-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
 [camel-kafka-2.21.0.jar:2.21.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[na:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
{code}{code}


> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix for it and here is a pull 
> request for it: https://github.com/apache/camel/pull/2372 
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> 

[jira] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509775#comment-16509775
 ] 

ASF GitHub Bot commented on CAMEL-12573:


GitHub user akhettar opened a pull request:

https://github.com/apache/camel/pull/2372

CAMEL-12573: Fixing class cast exception

I have introduced a generic method which extracts the values of the 
`Partition` and the `Offset` from the Exchange headers according to their 
corresponding types.

Here is the Jira ticket for 
it.https://issues.apache.org/jira/browse/CAMEL-12573

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/akhettar/camel master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/camel/pull/2372.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #2372


commit aa9464cdd8a30ff9a88bf893999158ec7c8ae40e
Author: akhettar 
Date:   2018-06-12T15:31:12Z

Fixing class cast exception. Handling kafka.Partition as Integer and 
kafka.Offset as a Long.




> ClassCastException thrown KafkaSpanDecorator
> 
>
> Key: CAMEL-12573
> URL: https://issues.apache.org/jira/browse/CAMEL-12573
> Project: Camel
>  Issue Type: Bug
>  Components: camel-opentracing
>Reporter: ayache khettar
>Priority: Major
>
> ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and 
> the Offset header values. The fix to this is to cast the partition to an 
> Integer and the Offset to a Long. I have got a fix and I will raise a pull 
> request shortly.
>  
>  
> {code:java}
> 2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
> o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
> tracing data
> java.lang.ClassCastException: java.lang.Integer cannot be cast to 
> java.lang.String
> at 
> org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
>  ~[camel-opentracing-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
>  [camel-core-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at 
> org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
>  [camel-kafka-2.21.0.jar:2.21.0]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [na:1.8.0_151]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [na:1.8.0_151]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [na:1.8.0_151]
> at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
> {code}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-12 Thread ayache khettar (JIRA)
ayache khettar created CAMEL-12573:
--

 Summary: ClassCastException thrown KafkaSpanDecorator
 Key: CAMEL-12573
 URL: https://issues.apache.org/jira/browse/CAMEL-12573
 Project: Camel
  Issue Type: Bug
  Components: camel-opentracing
Reporter: ayache khettar


ClassCastException is thrown by `KafkaSpanDecorator` for the Partition and the 
Offset header values. The fix to this is to cast the partition to an Integer 
and the Offset to a Long. I have got a fix and I will raise a pull request 
shortly.

 

 
{code:java}

2018-06-12 16:36:26.224 WARN 34820 --- [kaConsumer[ocr]] 
o.a.camel.opentracing.OpenTracingTracer : OpenTracing: Failed to capture 
tracing data

java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
at 
org.apache.camel.opentracing.decorators.KafkaSpanDecorator.pre(KafkaSpanDecorator.java:61)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.opentracing.OpenTracingTracer$OpenTracingRoutePolicy.onExchangeBegin(OpenTracingTracer.java:297)
 ~[camel-opentracing-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor$RoutePolicyAdvice.before(CamelInternalProcessor.java:495)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:149)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:97)
 [camel-core-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.doRun(KafkaConsumer.java:295)
 [camel-kafka-2.21.0.jar:2.21.0]
at 
org.apache.camel.component.kafka.KafkaConsumer$KafkaFetchRecords.run(KafkaConsumer.java:187)
 [camel-kafka-2.21.0.jar:2.21.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
[na:1.8.0_151]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[na:1.8.0_151]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[na:1.8.0_151]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]
{code}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (CAMEL-12570) Support fixed property placeholders from Aries blueprint

2018-06-12 Thread Grzegorz Grzybek (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509323#comment-16509323
 ] 

Grzegorz Grzybek edited comment on CAMEL-12570 at 6/12/18 9:57 AM:
---

[~ancosen], [~gnt], [~jbonofre], with this fix, Camel will work with 
blueprint.core 1.10.0, *but* if we upgrade Karaf 4.2.1 to blueprint.core 1.10.0 
/ blueprint.cm 1.3.0, existing Camel applications will stop working (expecting 
{{org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder}} to be 
derived from {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder}} and 
not from new {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholderExt}}).

The only backward compatible change I can think of is to have (in blueprint.cm 
1.3.1):
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholderExt and
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder

Which instance should be created by 
{{org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler#parsePropertyPlaceholder()}}
 should actually depend on XSD of 
{{http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.*}} version used - 
existing (before blueprint.core 1.10.0) cm XSD versions should fallback to 
{{CmPropertyPlaceholder}} derived from {{AbstractPropertyPlaceholder}}, so 
existing Camel applications work after upgrading blueprint.core to 1.10.0 (new 
1.10.1 actually). WDYT?


was (Author: gzres):
[~ancosen], [~gnt], [~jbonofre], with this fix, Camel will work with 
blueprint.core 1.10.0, *but* if we upgrade Karaf 4.2.1 to blueprint.core 1.10.0 
/ blueprint.cm 1.3.0, existing Camel applications will stop working (expecting 
{{org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder}} to be 
derived from {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder}} and 
not from new {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholderExt}}).

The only backward compatible change I can think of is to have (in blueprint.cm 
1.3.1):
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholderExt and
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder

Which instance should be created by 
{{org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler#parsePropertyPlaceholder()}}
 should actually depend on XSD of 
{{http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.\*}} version used - 
existing (before blueprint.core 1.10.0) cm XSD versions should fallback to 
{{CmPropertyPlaceholder}} derived from {{AbstractPropertyPlaceholder}}, so 
existing Camel applications work after upgrading blueprint.core to 1.10.0 (new 
1.10.1 actually). WDYT?

> Support fixed property placeholders from Aries blueprint
> 
>
> Key: CAMEL-12570
> URL: https://issues.apache.org/jira/browse/CAMEL-12570
> Project: Camel
>  Issue Type: Bug
>  Components: camel-blueprint
>Affects Versions: 2.21.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
>Priority: Major
> Fix For: 2.21.2, 2.22.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Resolved] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-12572.
--
Resolution: Fixed

> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.22.0
>
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino updated CAMEL-12572:
-
Fix Version/s: 2.22.0

> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.22.0
>
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread Andrea Cosentino (JIRA)


 [ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-12572:


Assignee: Andrea Cosentino

> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.22.0
>
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12570) Support fixed property placeholders from Aries blueprint

2018-06-12 Thread Andrea Cosentino (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509375#comment-16509375
 ] 

Andrea Cosentino commented on CAMEL-12570:
--

I think is the best solution to allow backward compatibility.

> Support fixed property placeholders from Aries blueprint
> 
>
> Key: CAMEL-12570
> URL: https://issues.apache.org/jira/browse/CAMEL-12570
> Project: Camel
>  Issue Type: Bug
>  Components: camel-blueprint
>Affects Versions: 2.21.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
>Priority: Major
> Fix For: 2.21.2, 2.22.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509373#comment-16509373
 ] 

ASF GitHub Bot commented on CAMEL-12572:


oscerd closed pull request #2370: CAMEL-12572: Upgrade jaxb to 2.3.0.1
URL: https://github.com/apache/camel/pull/2370
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/camel-core/pom.xml b/camel-core/pom.xml
index 1933d7b395b..b1d0c0edf60 100644
--- a/camel-core/pom.xml
+++ b/camel-core/pom.xml
@@ -703,12 +703,12 @@
   
 com.sun.xml.bind
 jaxb-core
-2.3.0
+2.3.1
   
   
 com.sun.xml.bind
 jaxb-impl
-2.3.0
+2.3.0.1
   
 
   
diff --git a/components/camel-blueprint/pom.xml 
b/components/camel-blueprint/pom.xml
index b02bd2e827f..11844d646c6 100644
--- a/components/camel-blueprint/pom.xml
+++ b/components/camel-blueprint/pom.xml
@@ -507,7 +507,7 @@
 
   org.glassfish.jaxb
   jaxb-jxc-jdk9
-  2.3.0
+  2.3.0.1
 
 
   javax.activation
diff --git a/components/camel-spring/pom.xml b/components/camel-spring/pom.xml
index b547dda84f1..892a119fb51 100644
--- a/components/camel-spring/pom.xml
+++ b/components/camel-spring/pom.xml
@@ -627,7 +627,7 @@
   
 org.glassfish.jaxb
 jaxb-jxc-jdk9
-2.3.0
+2.3.0.1
   
   
 javax.activation
diff --git a/parent/pom.xml b/parent/pom.xml
index 0363ec490bb..64310057903 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -5623,7 +5623,7 @@
 
   
   
-2.3.0
+2.3.0.1
   
 
   
diff --git 
a/platforms/spring-boot/spring-boot-dm/camel-spring-boot-dependencies/pom.xml 
b/platforms/spring-boot/spring-boot-dm/camel-spring-boot-dependencies/pom.xml
index dea320a6708..72855acc3b7 100644
--- 
a/platforms/spring-boot/spring-boot-dm/camel-spring-boot-dependencies/pom.xml
+++ 
b/platforms/spring-boot/spring-boot-dm/camel-spring-boot-dependencies/pom.xml
@@ -118,12 +118,12 @@
   
 com.sun.xml.bind
 jaxb-core
-2.3.0
+2.3.0.1
   
   
 com.sun.xml.bind
 jaxb-impl
-2.3.0
+2.3.0.1
 
   
 javax.jws
@@ -134,7 +134,7 @@
   
 com.sun.xml.bind
 jaxb-jxc
-2.3.0
+2.3.0.1
   
   
 com.sun.xml.parsers
diff --git a/pom.xml b/pom.xml
index b0fb2925ad7..031e8aceb1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,7 +56,7 @@
 
 
 
-2.3.0
+2.3.0.1
 2.5
 3.0
 1.5


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Priority: Major
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509374#comment-16509374
 ] 

ASF GitHub Bot commented on CAMEL-12572:


Github user oscerd closed the pull request at:

https://github.com/apache/camel/pull/2370


> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Priority: Major
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509372#comment-16509372
 ] 

ASF GitHub Bot commented on CAMEL-12572:


oscerd commented on issue #2370: CAMEL-12572: Upgrade jaxb to 2.3.0.1
URL: https://github.com/apache/camel/pull/2370#issuecomment-396518900
 
 
   Thanks merged!


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Priority: Major
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12570) Support fixed property placeholders from Aries blueprint

2018-06-12 Thread Grzegorz Grzybek (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509323#comment-16509323
 ] 

Grzegorz Grzybek commented on CAMEL-12570:
--

[~ancosen], [~gnt], [~jbonofre], with this fix, Camel will work with 
blueprint.core 1.10.0, *but* if we upgrade Karaf 4.2.1 to blueprint.core 1.10.0 
/ blueprint.cm 1.3.0, existing Camel applications will stop working (expecting 
{{org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder}} to be 
derived from {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder}} and 
not from new {{org.apache.aries.blueprint.ext.AbstractPropertyPlaceholderExt}}).

The only backward compatible change I can think of is to have (in blueprint.cm 
1.3.1):
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholderExt and
* org.apache.aries.blueprint.compendium.cm.CmPropertyPlaceholder

Which instance should be created by 
{{org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler#parsePropertyPlaceholder()}}
 should actually depend on XSD of 
{{http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.\*}} version used - 
existing (before blueprint.core 1.10.0) cm XSD versions should fallback to 
{{CmPropertyPlaceholder}} derived from {{AbstractPropertyPlaceholder}}, so 
existing Camel applications work after upgrading blueprint.core to 1.10.0 (new 
1.10.1 actually). WDYT?

> Support fixed property placeholders from Aries blueprint
> 
>
> Key: CAMEL-12570
> URL: https://issues.apache.org/jira/browse/CAMEL-12570
> Project: Camel
>  Issue Type: Bug
>  Components: camel-blueprint
>Affects Versions: 2.21.1
>Reporter: Grzegorz Grzybek
>Assignee: Grzegorz Grzybek
>Priority: Major
> Fix For: 2.21.2, 2.22.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CAMEL-12572) Upgrade to jaxb 2.3.0.1

2018-06-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/CAMEL-12572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16509294#comment-16509294
 ] 

ASF GitHub Bot commented on CAMEL-12572:


oscerd commented on issue #2370: CAMEL-12572: Upgrade jaxb to 2.3.0.1
URL: https://github.com/apache/camel/pull/2370#issuecomment-396496418
 
 
   Maybe we can go ahead with merging the PR and centralized jaxb version 
property


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Upgrade to jaxb 2.3.0.1
> ---
>
> Key: CAMEL-12572
> URL: https://issues.apache.org/jira/browse/CAMEL-12572
> Project: Camel
>  Issue Type: Improvement
>  Components: build system
>Reporter: Craig
>Priority: Major
>
> Camel master (soon to be 2.22) is using jaxb 2.3.0. The latest version of 
> jaxb is 2.3.0.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)