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

2018-06-13 Thread Ronak Patel (JIRA)


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

Ronak Patel closed CAMEL-12574.
---
Resolution: Won't Fix

(i) Updating to latest jdk version 172 fixed the problem.

 

Thank you much [~coheigea] 

> 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: camel_pgp.zip, test.out
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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] [Commented] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-13 Thread Colm O hEigeartaigh (JIRA)


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

Colm O hEigeartaigh commented on CAMEL-12574:
-

Can you verify that you're getting that error with the sample project attached 
to this JIRA? Do you see any other versions of BouncyCastle when you do:

mvn dependency:tree | grep bouncy
[INFO] |  +- org.bouncycastle:bcpg-jdk15on:jar:1.57:compile
[INFO] |  +- org.bouncycastle:bcprov-jdk15on:jar:1.57:compile

What version of Maven are you using? Try the latest 3.5.3. Also try upgrading 
your JDK to 1.8.0_171/172.

> 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: camel_pgp.zip, test.out
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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] [Comment Edited] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-13 Thread Ronak Patel (JIRA)


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

Ronak Patel edited comment on CAMEL-12574 at 6/13/18 4:50 PM:
--

[~coheigea] - Attached my {{mvn clean install}} [^test.out]
{code:java}
cat ~/test.out|grep 'org.bouncycastle.openpgp.PGPPublicKeyRingCollection'
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
{code}


was (Author: ronpatel):
[~coheigea] - Attached my {{mvn clean install}} [^test.out]
{code:java}
cat ~/test.out|grep 'org.bouncycastle.openpgp.PGPPublicKeyRingCollection'  
12:47:34 
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 

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

2018-06-13 Thread Ronak Patel (JIRA)


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

Ronak Patel commented on CAMEL-12574:
-

[~coheigea] - Attached my {{mvn clean install}} [^test.out]
{code:java}
cat ~/test.out|grep 'org.bouncycastle.openpgp.PGPPublicKeyRingCollection'  
12:47:34 
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
Caused by: java.lang.NoSuchMethodError: 
org.bouncycastle.openpgp.PGPPublicKeyRingCollection.(Ljava/io/InputStream;Lorg/bouncycastle/openpgp/operator/KeyFingerPrintCalculator;)V
{code}

> 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: camel_pgp.zip, test.out
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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-13 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:

Attachment: test.out

> 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: camel_pgp.zip, test.out
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-13 Thread Andrea Cosentino (JIRA)


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

Andrea Cosentino commented on CAMEL-12573:
--

2.22.0,2.21.2 and 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] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

2018-06-13 Thread ayache khettar (JIRA)


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

ayache khettar commented on CAMEL-12573:


[~ancosen] any idea in which release this fix is going to be?

Thanks

> 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] [Commented] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-13 Thread Colm O hEigeartaigh (JIRA)


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

Colm O hEigeartaigh commented on CAMEL-12574:
-

The tests fail for me with "mvn clean install" but there is no error about 
'PGPPublicKeyRingCollection' in the output.

> 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: camel_pgp.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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-13 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:

Attachment: (was: junitTest.zip)

> 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: camel_pgp.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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-13 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:

Attachment: camel_pgp.zip

> 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: camel_pgp.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] [Commented] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-13 Thread Ronak Patel (JIRA)


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

Ronak Patel commented on CAMEL-12574:
-

[~coheigea] - Updated ticket with [^camel_pgp.zip]

> 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: camel_pgp.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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-13 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:* [^camel_pgp.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]

^*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}


> 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: camel_pgp.zip
>
>
> *Camel Version:* 2.21.0 (Springboot)
> *JDK version:* 1.8.0_121
> *unit test:* [^camel_pgp.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] [Commented] (CAMEL-12574) PGPDataFormat: java.lang.NoSuchMethodError: org.bouncycastle.openpgp.PGPPublicKeyRingCollection

2018-06-13 Thread Colm O hEigeartaigh (JIRA)


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

Colm O hEigeartaigh commented on CAMEL-12574:
-

Please update the attached test-case so that we can simply unzip and run the 
tests with the correct Camel version etc.

> 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] [Commented] (CAMEL-6840) Allow Throttler EIP to specify SLA per client/correlated-group

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


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

ASF GitHub Bot commented on CAMEL-6840:
---

onderson commented on issue #2366: CAMEL-6840 make it possible grouped 
throttling
URL: https://github.com/apache/camel/pull/2366#issuecomment-396961128
 
 
   Just reverted the changes in this PR. Implementation is not correct. It is a 
bit harder than i initially thought of. I will take a look at this again.


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


> Allow Throttler EIP to specify SLA per client/correlated-group
> --
>
> Key: CAMEL-6840
> URL: https://issues.apache.org/jira/browse/CAMEL-6840
> Project: Camel
>  Issue Type: New Feature
>  Components: camel-core, eip
>Reporter: Christian Posta
>Assignee: Önder Sezgin
>Priority: Major
> Fix For: 2.22.0
>
>
> Basic idea is to allow throttler to have a predicate to determine whether or 
> not to apply throttling to that exchange. 
> From this Mailing List discussion:
> http://camel.465427.n5.nabble.com/Throttling-by-client-ID-td5741032.html



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


chirag0103 commented on issue #1996: CAMEL-11879: Upgraded lucene version to 
7.0.0
URL: https://github.com/apache/camel/pull/1996#issuecomment-396859717
 
 
   @oscerd Thank you. :)


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 lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

2018-06-13 Thread Andrea Cosentino (JIRA)


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

Andrea Cosentino commented on CAMEL-11879:
--

Upgraded to 7.2.1 in CAMEL-12576

> Upgrade to lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Resolved] (CAMEL-11879) Upgrade to lucene 7

2018-06-13 Thread Andrea Cosentino (JIRA)


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

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

> Upgrade to lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


Github user oscerd closed the pull request at:

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


> Upgrade to lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


oscerd commented on issue #1996: CAMEL-11879: Upgraded lucene version to 7.0.0
URL: https://github.com/apache/camel/pull/1996#issuecomment-396852068
 
 
   I merged this PR and then I updated Lucene and Solr to 7.2.1
   
   
https://github.com/apache/camel/commit/f76d8bcbff81c7180003a68f32fa3dd880ec8f9b
   
   Now we just need SB 2.0.3


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 lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


oscerd closed pull request #1996: CAMEL-11879: Upgraded lucene version to 7.0.0
URL: https://github.com/apache/camel/pull/1996
 
 
   

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/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneConstants.java
 
b/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneConstants.java
index 74cea7f8824..9d098851385 100644
--- 
a/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneConstants.java
+++ 
b/components/camel-lucene/src/main/java/org/apache/camel/component/lucene/LuceneConstants.java
@@ -19,5 +19,5 @@
 import org.apache.lucene.util.Version;
 
 public interface LuceneConstants {
-Version LUCENE_VERSION = Version.LUCENE_5_4_1;
+Version LUCENE_VERSION = Version.LUCENE_7_0_0;
 }
diff --git 
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
 
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
index 7b039c2b603..57cbeb2b79b 100644
--- 
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
+++ 
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
@@ -108,7 +108,7 @@ public SolrComponent getComponent() {
 private CloudSolrClient getCloudServer() {
 CloudSolrClient rVal = null;
 if (this.getZkHost() != null && this.getCollection() != null) {
-rVal = new CloudSolrClient(zkHost);
+rVal = new CloudSolrClient.Builder().withZkHost(zkHost).build();
 rVal.setDefaultCollection(this.getCollection());
 }
 return rVal;
@@ -123,31 +123,19 @@ public Producer createProducer() throws Exception {
 ref = new SolrComponent.SolrServerReference();
 CloudSolrClient cloudServer = getCloudServer();
 if (cloudServer == null) {
-HttpSolrClient solrServer = new HttpSolrClient(url);
-ConcurrentUpdateSolrClient solrStreamingServer = new 
ConcurrentUpdateSolrClient(url, streamingQueueSize, streamingThreadCount);
-
-// set the properties on the solr server
-if (maxRetries != null) {
-solrServer.setMaxRetries(maxRetries);
-}
+HttpSolrClient solrServer = new 
HttpSolrClient.Builder(url).build();
+ConcurrentUpdateSolrClient solrStreamingServer = new 
ConcurrentUpdateSolrClient.Builder(url).withQueueSize(streamingQueueSize).withThreadCount(streamingThreadCount).build();
+
+// set the properties on the solr server   
 if (soTimeout != null) {
 solrServer.setSoTimeout(soTimeout);
 }
 if (connectionTimeout != null) {
 solrServer.setConnectionTimeout(connectionTimeout);
-}
-if (defaultMaxConnectionsPerHost != null) {
-
solrServer.setDefaultMaxConnectionsPerHost(defaultMaxConnectionsPerHost);
-}
-if (maxTotalConnections != null) {
-solrServer.setMaxTotalConnections(maxTotalConnections);
-}
+}
 if (followRedirects != null) {
 solrServer.setFollowRedirects(followRedirects);
-}
-if (allowCompression != null) {
-solrServer.setAllowCompression(allowCompression);
-}
+}
 ref.setSolrServer(solrServer);
 ref.setUpdateSolrServer(solrStreamingServer);
 }
diff --git 
a/components/camel-solr/src/test/java/org/apache/camel/component/solr/JettySolrFactory.java
 
b/components/camel-solr/src/test/java/org/apache/camel/component/solr/JettySolrFactory.java
index aa9a95082f8..fba1662bebd 100644
--- 
a/components/camel-solr/src/test/java/org/apache/camel/component/solr/JettySolrFactory.java
+++ 
b/components/camel-solr/src/test/java/org/apache/camel/component/solr/JettySolrFactory.java
@@ -29,6 +29,7 @@
 
 import org.apache.http.conn.ssl.SSLContextBuilder;
 import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
+import org.apache.solr.client.solrj.embedded.JettyConfig;
 import org.apache.solr.client.solrj.embedded.JettySolrRunner;
 import org.apache.solr.client.solrj.embedded.SSLConfig;
 import 

[jira] [Resolved] (CAMEL-12576) Bump to Lucene and Solr 7.2.1

2018-06-13 Thread Andrea Cosentino (JIRA)


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

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

> Bump to Lucene and Solr 7.2.1
> -
>
> Key: CAMEL-12576
> URL: https://issues.apache.org/jira/browse/CAMEL-12576
> Project: Camel
>  Issue Type: Task
>  Components: camel-lucene, camel-solr
>Reporter: Andrea Cosentino
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 2.22.0
>
>




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


[jira] [Commented] (CAMEL-5963) camel-smpp: Support TRX connection mode to the SMSC

2018-06-13 Thread Nitin Gupta (JIRA)


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

Nitin Gupta commented on CAMEL-5963:


Please mention the workaround in Camel (if any) as this has become a show 
stopper for me as well.

> camel-smpp: Support TRX connection mode to the SMSC
> ---
>
> Key: CAMEL-5963
> URL: https://issues.apache.org/jira/browse/CAMEL-5963
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-smpp
>Affects Versions: 2.10.3
>Reporter: Christian Müller
>Assignee: Christian Müller
>Priority: Major
> Fix For: Future
>
>
> See http://camel.465427.n5.nabble.com/camel-smpp-in-trx-mode-td5724608.html 
> for details



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


[jira] [Created] (CAMEL-12576) Bump to Lucene and Solr 7.2.1

2018-06-13 Thread Andrea Cosentino (JIRA)
Andrea Cosentino created CAMEL-12576:


 Summary: Bump to Lucene and Solr 7.2.1
 Key: CAMEL-12576
 URL: https://issues.apache.org/jira/browse/CAMEL-12576
 Project: Camel
  Issue Type: Task
  Components: camel-lucene, camel-solr
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
 Fix For: 2.22.0






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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


oscerd commented on issue #1996: CAMEL-11879: Upgraded lucene version to 7.0.0
URL: https://github.com/apache/camel/pull/1996#issuecomment-39681
 
 
   The release is by the end of June.


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 lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


[jira] [Commented] (CAMEL-11879) Upgrade to lucene 7

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


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

ASF GitHub Bot commented on CAMEL-11879:


chirag0103 commented on issue #1996: CAMEL-11879: Upgraded lucene version to 
7.0.0
URL: https://github.com/apache/camel/pull/1996#issuecomment-396833129
 
 
   @davsclaus Hello, i believe the release of 2.22.0 is on 13th june. Can you 
please let me know if we are including the SOLR upgrade with this release? As i 
mentioned before it's very crucial.


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 lucene 7
> ---
>
> Key: CAMEL-11879
> URL: https://issues.apache.org/jira/browse/CAMEL-11879
> Project: Camel
>  Issue Type: Improvement
>  Components: camel-lucene
>Reporter: Claus Ibsen
>Assignee: Viral Gohel
>Priority: Major
> Fix For: 2.22.0
>
>
> We should upgrade lucene and solr to newer versions.



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


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

2018-06-13 Thread Andrea Cosentino (JIRA)


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

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

> 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] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

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


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

ASF GitHub Bot commented on CAMEL-12573:


oscerd closed pull request #2372: CAMEL-12573: Fixing class cast exception
URL: https://github.com/apache/camel/pull/2372
 
 
   

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/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/KafkaSpanDecorator.java
 
b/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/KafkaSpanDecorator.java
index ecc92797d58..1ec0a6886eb 100644
--- 
a/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/KafkaSpanDecorator.java
+++ 
b/components/camel-opentracing/src/main/java/org/apache/camel/opentracing/decorators/KafkaSpanDecorator.java
@@ -58,7 +58,7 @@ public String getDestination(Exchange exchange, Endpoint 
endpoint) {
 public void pre(Span span, Exchange exchange, Endpoint endpoint) {
 super.pre(span, exchange, endpoint);
 
-String partition = (String)exchange.getIn().getHeader(PARTITION);
+String partition = getValue(exchange, PARTITION, Integer.class);
 if (partition != null) {
 span.setTag(KAFKA_PARTITION_TAG, partition);
 }
@@ -73,10 +73,22 @@ public void pre(Span span, Exchange exchange, Endpoint 
endpoint) {
 span.setTag(KAFKA_KEY_TAG, key);
 }
 
-String offset = (String)exchange.getIn().getHeader(OFFSET);
+String offset = getValue(exchange, OFFSET, Long.class);
 if (offset != null) {
 span.setTag(KAFKA_OFFSET_TAG, offset);
 }
 }
 
+/**
+ * Extracts header value from the exchange for given header
+ * @param exchange the {@link Exchange}
+ * @param header the header name
+ * @param type the class type of the exchange header
+ * @return
+ */
+private  String getValue(final Exchange exchange, final String header, 
Class type) {
+ T partition = exchange.getIn().getHeader(header, type);
+ return partition != null ? String.valueOf(partition) : 
exchange.getIn().getHeader(header, String.class);
+}
+
 }
diff --git 
a/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/KafkaSpanDecoratorTest.java
 
b/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/KafkaSpanDecoratorTest.java
index b3eda9c3770..2c51def5b47 100644
--- 
a/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/KafkaSpanDecoratorTest.java
+++ 
b/components/camel-opentracing/src/test/java/org/apache/camel/opentracing/decorators/KafkaSpanDecoratorTest.java
@@ -19,6 +19,7 @@
 import io.opentracing.mock.MockSpan;
 import io.opentracing.mock.MockTracer;
 
+import jdk.nashorn.internal.IntDeque;
 import org.apache.camel.Endpoint;
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
@@ -59,7 +60,7 @@ public void testGetDestinationNoHeaderTopic() {
 }
 
 @Test
-public void testPre() {
+public void testPreOffsetAndPartitionAsStringHeader() {
 String testKey = "TestKey";
 String testOffset = "TestOffset";
 String testPartition = "TestPartition";
@@ -72,8 +73,8 @@ public void testPre() {
 Mockito.when(endpoint.getEndpointUri()).thenReturn("test");
 Mockito.when(exchange.getIn()).thenReturn(message);
 
Mockito.when(message.getHeader(KafkaSpanDecorator.KEY)).thenReturn(testKey);
-
Mockito.when(message.getHeader(KafkaSpanDecorator.OFFSET)).thenReturn(testOffset);
-
Mockito.when(message.getHeader(KafkaSpanDecorator.PARTITION)).thenReturn(testPartition);
+Mockito.when(message.getHeader(KafkaSpanDecorator.OFFSET, 
String.class)).thenReturn(testOffset);
+Mockito.when(message.getHeader(KafkaSpanDecorator.PARTITION, 
String.class)).thenReturn(testPartition);
 
Mockito.when(message.getHeader(KafkaSpanDecorator.PARTITION_KEY)).thenReturn(testPartitionKey);
 
 SpanDecorator decorator = new KafkaSpanDecorator();
@@ -89,4 +90,29 @@ public void testPre() {
 assertEquals(testPartitionKey, 
span.tags().get(KafkaSpanDecorator.KAFKA_PARTITION_KEY_TAG));
 }
 
+@Test
+public void testPrePartitionAsIntegerHeaderAndOffsetAsLongHeader() {
+Long testOffset = 4875454l;
+Integer testPartition = 0;
+
+Endpoint endpoint = Mockito.mock(Endpoint.class);
+Exchange exchange = Mockito.mock(Exchange.class);
+Message message = Mockito.mock(Message.class);
+
+Mockito.when(endpoint.getEndpointUri()).thenReturn("test");
+

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

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


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

ASF GitHub Bot commented on CAMEL-12573:


Github user oscerd closed the pull request at:

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


> 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] [Commented] (CAMEL-12573) ClassCastException thrown KafkaSpanDecorator

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


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

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-396826349
 
 
   Merged on master, 2.21.x and 2.20.x, thanks.


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: 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)