IBM Support

Migration Manager error "Given final block not properly padded. Such issues can arise if a bad key is used during decryption."

Troubleshooting


Problem

When trying to use Migration Manager to migrate a package, the following error happens:
 
[ERROR] [MXServer] [] Processing of DMPKGDSTTRGT failed. The object structure is 2. The primary object is DMPKGDSTTRGT. The key is MASACC.BMXAA4160E - A major anomaly has occurred. Check the system log for any associated errors logged. Report this error to your system administrator.
Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

[ERROR] [MXServer] [] Error importing staging table entry based on configuration object DMPKGDSTTRGT and data order 1 in the target environment.
psdi.util.MXSystemException: BMXAA4160E - A major anomaly has occurred. Check the system log for any associated errors logged. Report this error to your system administrator.
    Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
    
[err] javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
[err] 	at java.base/com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:1065)
[err] 	at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1145)
[err] 	at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:919)
[err] 	at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
[err] 	at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2202)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
	at com.sun.crypto.provider.CipherCore.unpad(CipherCore.java:1065) ~[?:?]
	at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1145) ~[?:?]
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:919) ~[?:?]
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446) ~[?:?]
	at javax.crypto.Cipher.doFinal(Cipher.java:2202) ~[?:?]
	at psdi.util.MXCipher.decData(MXCipher.java:293) ~[businessobjects.jar:?]
	... 90 more

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m50000000CbOhAAK","label":"System Administration-\u003EMisc - Migration Manager"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.0;9.0.0;9.1.0;and future releases"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
10 March 2025

UID

ibm17185333