Camel PGP unmarshalling fails with "java.io.IOException: unknown object in stream: 47"

Solution Verified - Updated -

Issue

  • Camel PGP unmarshalling fails with the following exception:
java.io.IOException: unknown object in stream: 47
    at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
    at org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.getDecryptedData(PGPKeyAccessDataFormat.java:431)
    at org.apache.camel.converter.crypto.PGPKeyAccessDataFormat.unmarshal(PGPKeyAccessDataFormat.java:372)
    at org.apache.camel.processor.UnmarshalProcessor.process(UnmarshalProcessor.java:69)
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)

Environment

  • Red Hat Fuse (Fuse)
    • 7
  • Apache Camel (Camel)
    • camel-pgp unmarshaller

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In