My Oracle Support Banner

Migration Utility -fails with java.lang.Exception: java.lang.Exception: javax.crypto.BadPaddingException: Invalid pad value: 77 (Doc ID 2970965.1)

Last updated on SEPTEMBER 04, 2023

Applies to:

Oracle Financial Services Analytical Applications Infrastructure - Version 8.0.8 and later
Information in this document applies to any platform.

Goal

Migration Utility -fails with java.lang.Exception: java.lang.Exception: javax.crypto.BadPaddingException: Invalid pad value: 77

Migration.log


Excpetion Occured in getting encoded string
java.lang.Exception: java.lang.Exception: javax.crypto.BadPaddingException: Invalid pad value: 77
at com.iflex.fic.util.AESCryptor.AESCryptor.decrypt(AESCryptor.java:250)
at com.ofs.aai.util.RESTUtil.getAuthorizationCode(RESTUtil.java:183)
at com.ofs.aai.util.RESTUtil.getAuthorizationHeader(RESTUtil.java:146)
at com.ofs.aai.util.RESTUtil.getAuthorizationHeader(RESTUtil.java:137)
at com.ofs.reveleus.migration.service.MigrationRESTClient.getConnection(MigrationRESTClient.java:154)
at com.ofs.reveleus.migration.service.MigrationRESTClient.invokeMigrationRestService(MigrationRESTClient.java:234)
at metadata.cmd.UnifiedExportImportMetadata.invokeMigrationProcess(UnifiedExportImportMetadata.java:604)
at metadata.cmd.UnifiedExportImportMetadata.main(UnifiedExportImportMetadata.java:723)
Caused by: java.lang.Exception: javax.crypto.BadPaddingException: Invalid pad value: 77
at com.iflex.fic.util.AESCryptor.AESECBcrypter.decrypt(AESECBcrypter.java:218)
at com.iflex.fic.util.AESCryptor.AESCryptor.decrypt(AESCryptor.java:220)
... 7 more
Caused by: javax.crypto.BadPaddingException: Invalid pad value: 77
at com.oracle.security.ucrypto.NativeCipherWithJavaPadding$PKCS5Padding.unpad(NativeCipherWithJavaPadding.java:167)
at com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal(NativeC

Verified passwords in csms_usr_profile and decrypted then using Aescrypt.txt from site

Solution

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
Goal
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.