My Oracle Support Banner

Javax.crypto.BadPaddingException: Given Final Block Not Properly Padded. Error During 8.1 APP Upgrade from 8.0.7 (Doc ID 2899665.1)

Last updated on SEPTEMBER 06, 2023

Applies to:

Oracle Financial Services Profitability Management - Version 8.1.0.0.0 and later
Oracle Financial Services Analytical Applications Infrastructure - Version 8.1.0.0.0 and later
Oracle Financial Services Funds Transfer Pricing - Version 8.1.0.0.0 and later
Oracle Financial Services Asset Liability Management - Version 8.1.0.0.0 and later
Information in this document applies to any platform.
Oracle Financial Services Analytical Applications (OFSAA)
Oracle Financial Services Analytical Applications Infrastructure (OFSAAI / AAI)
Oracle Financial Services Profitability Management (PFT)
Oracle Financial Services Funds Transfer Pricing (FTP)
Oracle Financial Services Asset Liability Management (ALM)
Oracle Financial Services Enterprise Performance Management (EPM)

Symptoms

Currently running the upgrade of PFT / FTP from OFSAA 807 to OFSAA 8.1 upgrade again. AAI 8.1 has been upgraded, however, the PFT app pack upgrade is now failing with the following errors:

ERROR

$ ./setup.sh SILENT
Current OS Type ---- Linux
Last Installed AAI Version ---- 8.1.0.0.0
Current pack AAI Version ---- 8.1.0.0.0
heapsize == 24000
/app/Install/OFS_PFT_PACK/bin
datamodel file = ../DataModel/Manifest.xml ../DataModel/OFS_EFPA_Processing.xml ../DataModel/OFS_EFPA_Results.xml ../DataModel/OFS_EFPA_Staging.xml ../DataModel/OFS_FTP_Datamodel.xml ../DataModel/OFS_PA_Processing.xml ../DataModel/OFS_PA_Results.xml ../DataModel/OFS_PA_Staging.xml ../DataModel/OFS_PFT_Datamodel.xml ../DataModel/OFS_PFT_PACK_Datamodel.xml
model == 28539274
270
OFS_AAI is already installed on 8.1.0.0.0. Skipping AAI...
[checkForAAIpack] Enable AAI apps: [OFS_AAI]
java.lang.ArrayIndexOutOfBoundsException: 1
  at UpdateLRMSKUbase.checkForAAIpack(UpdateLRMSKUbase.java:117)
  at UpdateLRMSKUbase.main(UpdateLRMSKUbase.java:72)
SETUP_HOME ---- /app/Install/OFS_PFT_PACK/bin
java.lang.Exception: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
  at com.iflex.fic.util.AESCryptor.AESECBcrypter.decrypt(AESECBcrypter.java:218)
  at com.iflex.fic.util.AESCryptor.AESCryptor.decrypt(AESCryptor.java:282)
  at UpgradeAppList.createUpgradeList(UpgradeAppList.java:98)
  at UpgradeAppList.main(UpgradeAppList.java:49)
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:975)
  at com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1056)
  at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:853)
  at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)
  at javax.crypto.Cipher.doFinal(Cipher.java:2164)

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.