org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:decryption-failed

openas2 | yellowhammer | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Decryption failing - mic is not matched

    openas2 | 7 years ago | yellowhammer
    org.openas2.DispositionException: automatic-action/MDN-sent-automatically; processed/Error:decryption-failed

    Root Cause Analysis

    1. org.bouncycastle.asn1.ASN1ParsingException

      IOException converting stream to byte array: null

      at org.bouncycastle.asn1.DEROctetStringParser.getDERObject()
    2. BouncyCastle
      ASN1InputStream.readObject
      1. org.bouncycastle.asn1.DEROctetStringParser.getDERObject(Unknown Source)
      2. org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)
      3. org.bouncycastle.asn1.DERSequenceParser.getDERObject(Unknown Source)
      4. org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)
      5. org.bouncycastle.asn1.DERSetParser.getDERObject(Unknown Source)
      6. org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)
      7. org.bouncycastle.asn1.BERSequenceParser.getDERObject(Unknown Source)
      8. org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)
      9. org.bouncycastle.asn1.BERTaggedObjectParser.rLoadVector(Unknown Source)
      10. org.bouncycastle.asn1.BERTaggedObjectParser.getDERObject(Unknown Source)
      11. org.bouncycastle.asn1.ASN1StreamParser.readVector(Unknown Source)
      12. org.bouncycastle.asn1.BERSequenceParser.getDERObject(Unknown Source)
      13. org.bouncycastle.asn1.ASN1InputStream.readObject(Unknown Source)
      13 frames
    3. BouncyCastle
      SMIMEEnveloped.<init>
      1. org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)
      2. org.bouncycastle.cms.CMSUtils.readContentInfo(Unknown Source)
      3. org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
      4. org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown Source)
      4 frames
    4. org.openas2.lib
      BCCryptoHelper.decrypt
      1. org.openas2.lib.helper.BCCryptoHelper.decrypt(BCCryptoHelper.java:114)
      1 frame
    5. org.openas2.processor
      AS2ReceiverHandler.decryptAndVerify
      1. org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(AS2ReceiverHandler.java:185)
      1 frame