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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

javax.crypto.BadPaddingException: Given final block not properly padded
at java.lang.Throwable.(Throwable.java:195)
at java.lang.Exception.(Exception.java:41)
at java.security.GeneralSecurityException.(GeneralSecurityException.java:43)
at javax.crypto.BadPaddingException.(Unknown Source)
at com.ibm.crypto.provider.DESedeCipher.engineDoFinal(Unknown Source)
at javax.crypto.Cipher.doFinal(Unknown Source)
at com.ibm.commerce.util.wrapper.nc_cryptx.decrypt(nc_cryptx.java:136)
at com.ibm.commerce.util.nc_crypt.decrypt(nc_crypt.java:56)
at com.ibm.commerce.dbupdatetool.OneWayHashEncoder.processValue(OneWayHashEncoder.java:111)
at com.ibm.commerce.dbupdatetool.SimpleRowBrowser.execute(SimpleRowBrowser.java:40)
at com.ibm.commerce.dbupdatetool.DBMigrateTool.execute(DBMigrateTool.java:274)
at com.ibm.commerce.dbupdatetool.DBUpdateToolApp.(DBUpdateToolApp.java:72)
at com.ibm.commerce.dbupdatetool.MKChangeApp.changeMK(MKChangeApp.java:324)
at com.ibm.commerce.dbupdatetool.MKChangeApp.(MKChangeApp.java:201)
at com.ibm.commerce.dbupdatetool.MKChangeApp.main(MKChangeApp.java:363)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.