"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 02, 2017

Applies to:

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

Symptoms

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

[2017-07-05T15:33:21.739+12:00] [ODI_DR_server2] [ERROR] [] [oracle.odi.repex.model.utils.security.CsfUtil] [tid: 95] [userId: <anonymous>] [ecid: 205ff1ca-b833-48d7-87cd-30a46dd262b6-00000004,0:43] [APP: odiconsole] [oracle.odi.runtime.MrepExtId: 1455932155583] [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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms