My Oracle Support Banner

"Exception while getting Credentials" and "KeyStoreServiceException: Failed to perform cryptographic operation" Received while Starting the ODI 12c Agent (Doc ID 2286292.1)

Last updated on AUGUST 14, 2020

Applies to:

Oracle Data Integrator - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

NOTE: In this article, values used in errors, examples and commands represent a fictitious sample for clarity.  These and any value placeholders including <> which surround them should be replaced by the actual values used in your environment. Any similarity to actual environments, past or present, or users, living or dead, is purely coincidental and not intended in any manner.

When attempting to start the Oracle Data Integrator (ODI) J2EE agent, the following error occurs.

[2017-07-05T15:33:21.739+12:00] [<ODI_SERVER>] [ERROR] [] [oracle.odi.repex.model.utils.security.CsfUtil] [tid: <TID>] [userId: <anonymous>] [ecid: <ecid>] [APP: odiconsole] [oracle.odi.runtime.MrepExtId: <ID>] [oracle.odi.runtime.AgentName: OracleDIAgent] [oracle.odi.runtime.ExecPhase: AgentStartup] Exception while getting Credentials[[
java.lang.IllegalArgumentException: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
  at oracle.security.jps.internal.credstore.ldap.CredentialEntityMapper.getEntity(CredentialEntityMapper.java:439)
  at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.queryBaseEntities(JpsDBDataManager.java:5824)
  at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.getCredential(CsfStoreManager.java:791)
  at oracle.security.jps.internal.credstore.ldap.CsfStoreManager.getCredential(CsfStoreManager.java:778)
  at oracle.security.jps.internal.credstore.ldap.LdapCredentialStore.getCredential(LdapCredentialStore.java:388)
  at oracle.odi.repex.model.utils.security.CsfUtil$4.run(CsfUtil.java:136)
  at oracle.odi.repex.model.utils.security.CsfUtil$4.run(CsfUtil.java:133)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.odi.repex.model.utils.security.CsfUtil.getCredentials(CsfUtil.java:131)
  at oracle.odi.repex.model.utils.security.CsfUtil.getCredentials(CsfUtil.java:196)
  at oracle.odi.em.utils.AuthUtil.getCredential(AuthUtil.java:88)
  at oracle.odi.em.utils.AuthUtil.findCredentialFromStore(AuthUtil.java:67)
  at oracle.odi.em.utils.AuthUtil.authenticate(AuthUtil.java:43)
  at oracle.odi.em.utils.AuthUtil$EMAuthenticatedAction.execute(AuthUtil.java:180)
  at oracle.odi.em.mbeans.impl.AgentRunTime.fetchMasterRepoId(AgentRunTime.java:436)
  at oracle.odi.em.mbeans.impl.AgentRunTime.reInitializeJndiMasterRepoIdMap(AgentRunTime.java:86)
  at oracle.odi.em.scheduler.ReinitializerBean.reInitializeJndiMasterRepoIdMap(ReinitializerBean.java:77)
  at oracle.odi.em.scheduler.ReinitializerBean.reInitJndiMasterRepoIdMap(ReinitializerBean.java:65)
  at oracle.odi.em.scheduler.ReinitializerBean.run(ReinitializerBean.java:42)
  at java.util.TimerThread.mainLoop(Timer.java:555)
  at java.util.TimerThread.run(Timer.java:505)
Caused by: oracle.security.jps.service.keystore.KeyStoreServiceException: Failed to perform cryptographic operation
  at oracle.security.jps.internal.keystore.util.CryptoUtil.decrypt(CryptoUtil.java:506)
  at oracle.security.jps.internal.keystore.util.CryptoUtil.decodeAliasWithEncryptedContent(CryptoUtil.java:583)
  at oracle.security.jps.internal.keystore.util.CryptoUtil.decryptPassword(CryptoUtil.java:795)
  at oracle.security.jps.internal.credstore.ldap.CredentialEntityMapper.getEntity(CredentialEntityMapper.java:334)
  ... 20 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
  at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811)
  at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
  at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
  at javax.crypto.Cipher.doFinal(Cipher.java:2131)
  at oracle.security.jps.internal.keystore.util.CryptoUtil.decrypt(CryptoUtil.java:479)
  ... 23 more

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
 For ODI 12.1.2
 For ODI 12.2.1.x
References


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