[ 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.<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)