[ https://issues.apache.org/jira/browse/CAMEL-12574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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.<init>(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)