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

2018-06-14 Thread Ronak Patel (JIRA)


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

Ronak Patel commented on CAMEL-12574:
-

(i) so it turned out that jdk version wasn't a problem, but issue was when we 
renamed the older bc jars in java installation {{$JAVA_HOME/jre/lib/ext}} dir 
with {{.out}} we assumed these jars are not being loaded on classpath, but it 
seems they do get loaded. When I deleted from these older jar completely from  
{{$JAVA_HOME/jre/lib/ext}}, everything works with both java 8 versions 121 and 
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] [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] [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] [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] [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] [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)