javax.crypto.BadPaddingException: Given final block not properly padded

ibm.com | 8 months 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.

Root Cause Analysis

  1. javax.crypto.BadPaddingException

    Given final block not properly padded

    at java.lang.Throwable.<init>()
  2. Java RT
    GeneralSecurityException.<init>
    1. java.lang.Throwable.<init>(Throwable.java:195)
    2. java.lang.Exception.<init>(Exception.java:41)
    3. java.security.GeneralSecurityException.<init>(GeneralSecurityException.java:43)
    3 frames
  3. Android Platform
    BadPaddingException.<init>
    1. javax.crypto.BadPaddingException.<init>(Unknown Source)
    1 frame
  4. com.ibm.crypto
    DESedeCipher.engineDoFinal
    1. com.ibm.crypto.provider.DESedeCipher.engineDoFinal(Unknown Source)
    1 frame
  5. Android Platform
    Cipher.doFinal
    1. javax.crypto.Cipher.doFinal(Unknown Source)
    1 frame
  6. com.ibm.commerce
    MKChangeApp.main
    1. com.ibm.commerce.util.wrapper.nc_cryptx.decrypt(nc_cryptx.java:136)
    2. com.ibm.commerce.util.nc_crypt.decrypt(nc_crypt.java:56)
    3. com.ibm.commerce.dbupdatetool.OneWayHashEncoder.processValue(OneWayHashEncoder.java:111)
    4. com.ibm.commerce.dbupdatetool.SimpleRowBrowser.execute(SimpleRowBrowser.java:40)
    5. com.ibm.commerce.dbupdatetool.DBMigrateTool.execute(DBMigrateTool.java:274)
    6. com.ibm.commerce.dbupdatetool.DBUpdateToolApp.<init>(DBUpdateToolApp.java:72)
    7. com.ibm.commerce.dbupdatetool.MKChangeApp.changeMK(MKChangeApp.java:324)
    8. com.ibm.commerce.dbupdatetool.MKChangeApp.<init>(MKChangeApp.java:201)
    9. com.ibm.commerce.dbupdatetool.MKChangeApp.main(MKChangeApp.java:363)
    9 frames