java.lang.IllegalStateException: IOException converting stream to byte array: null

openas2 | *anonymous | 4 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

    OpenAS2 / Discussion / Developers:Decryption failing with IOException

    sourceforge.net | 1 year ago
    java.lang.IllegalStateException: IOException converting stream to byte array: null
  2. 0

    Decryption failing with IOException

    openas2 | 4 years ago | *anonymous
    java.lang.IllegalStateException: IOException converting stream to byte array: null
  3. 0

    Decryption failing - mic is not matched

    openas2 | 7 years ago | yellowhammer
    java.lang.IllegalStateException: IOException converting stream to byte array: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      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
      NetModule$ConnectionThread.run
      1. org.openas2.processor.receiver.AS2ReceiverHandler.decryptAndVerify(AS2ReceiverHandler.java:185)
      2. org.openas2.processor.receiver.AS2ReceiverHandler.handle(AS2ReceiverHandler.java:119)
      3. org.openas2.processor.receiver.NetModule$ConnectionThread.run(NetModule.java:115)
      3 frames