IBM Support

IJ05083: CIPHERINPUTSTREAM THAT IS NOT FULLY READ THROWS BADPADDINGEXCEP

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: Exception in thread "main" java.io.IOException:
    javax.crypto.BadPaddingException
    : Given final block not properly padded
    .
    Stack Trace: Exception in thread "main" java.io.IOException:
    javax.crypto.BadPaddingException
    : Given final block not properly padded
    at javax.crypto.CipherInputStream.close(Unknown Source)
    at
    java.util.zip.InflaterInputStream.close(InflaterInputStream.java
    :238)
    at java.util.zip.GZIPInputStream.close(GZIPInputStream.java:147)
    at com.company.Main.main(Main.java:38)
    Caused by: javax.crypto.BadPaddingException: Given final block
    not properly padded
    at com.ibm.crypto.provider.AbstractBufferingCipher.a(Unknown
    Source)
    at
    com.ibm.crypto.provider.AbstractBufferingCipher.engineDoFinal(Un
    known Source)
    at javax.crypto.Cipher.doFinal(Unknown Source)
    .
    

Local fix

Problem summary

  • CipherInputStream that is not fully read throws
    BadpaddingException
    

Problem conclusion

  • The code was changed to remove this exception when the stream is
    being closed.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR5 FP15  (8.0.5.15)
       7    SR10 FP25 (7.0.10.25)
       7 R1 SR4 FP25  (7.1.4.25)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ05083

  • Reported component name

    SECURITY

  • Reported component ID

    620700125

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-03-20

  • Closed date

    2018-04-17

  • Last modified date

    2018-04-17

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    SECURITY

  • Fixed component ID

    620700125

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"270","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
07 December 2020