My Oracle Support Banner

ODI 12c Upgrade on IBM AIX Fails with "java.security.spec.InvalidKeySpecException: Could not generate secret key" (Doc ID 2640211.1)

Last updated on JUNE 15, 2021

Applies to:

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

Symptoms

The following error is received when attempting to use the Upgrade Assistant (UA) on IBM AIX operating system, and upgrade Oracle Data Integrator (ODI) 12.2.1.3 to 12.2.1.4:

oracle.odi.setup.RepositorySetupException: java.lang.RuntimeException: java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: Could not generate secret key
  at oracle.odi.setup.support.MasterRepositorySetupImpl.upgradeMasterRepository(MasterRepositorySetupImpl.java:810)
  at oracle.odi.setup.support.MasterRepositorySetupImpl.upgradeMasterRepository(MasterRepositorySetupImpl.java:700)
  at oracle.odi.setup.support.MasterRepositorySetupImpl.upgradeMasterRepository(MasterRepositorySetupImpl.java:881)
  at oracle.odi.setup.RepositoryUpgradeServiceImpl.upgradeRepositories(RepositoryUpgradeServiceImpl.java:423)
  at oracle.ias.update.plugin.odi.ODIPlugin.upgrade(ODIPlugin.java:432)
  at oracle.ias.update.plugin.Plugin.upgrade(Plugin.java:730)
  at oracle.ias.update.plan.PlanStep.upgrade(PlanStep.java:736)
  at oracle.ias.update.PhaseProcessor$UpgradeProcessor.runStepPhase(PhaseProcessor.java:775)
  at oracle.ias.update.PhaseProcessor.runStep(PhaseProcessor.java:382)
  at oracle.ias.update.PhaseProcessor$ExtendedRunnable.run(PhaseProcessor.java:1178)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
  at java.lang.Thread.run(Thread.java:812)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: Could not generate secret key
  at com.sunopsis.repository.manager.upgrade.V05_02_02_07To05_02_02_08Upgrade.upgradeMasterRepositoryData(V05_02_02_07To05_02_02_08Upgrade.java:95)
  at com.sunopsis.repository.manager.upgrade.AbstractRepositoryUpgrade.upgradeMasterRepository(AbstractRepositoryUpgrade.java:293)
  at com.sunopsis.repository.manager.upgrade.RepositoryUpgradeRunner.upgradeMasterRepository(RepositoryUpgradeRunner.java:482)
  at com.sunopsis.repository.manager.RepositoryManager.masterRepositoryPatch(RepositoryManager.java:4922)
  at oracle.odi.setup.support.MasterRepositorySetupImpl.upgradeMasterRepository(MasterRepositorySetupImpl.java:795)
  ... 12 more
Caused by: java.lang.RuntimeException: java.security.spec.InvalidKeySpecException: Could not generate secret key
  at com.sunopsis.repository.manager.upgrade.V05_02_02_07To05_02_02_08Upgrade$1.processRow(V05_02_02_07To05_02_02_08Upgrade.java:139)
  at com.sunopsis.repository.manager.upgrade.AbstractRepositoryUpgrade.executeQuery(AbstractRepositoryUpgrade.java:506)
  at com.sunopsis.repository.manager.upgrade.V05_02_02_07To05_02_02_08Upgrade.convertPasswordsToHash(V05_02_02_07To05_02_02_08Upgrade.java:113)
  at com.sunopsis.repository.manager.upgrade.V05_02_02_07To05_02_02_08Upgrade.upgradeMasterRepositoryData(V05_02_02_07To05_02_02_08Upgrade.java:93)
  ... 16 more
Caused by: java.security.spec.InvalidKeySpecException: Could not generate secret key
  at javax.crypto.SecretKeyFactory.generateSecret(Unknown Source)
  at oracle.odi.core.security.cryptography.CryptoUtil.pbkdf2(CryptoUtil.java:250)
  at oracle.odi.core.security.cryptography.CryptoUtil.hashPassword(CryptoUtil.java:224)
  at com.sunopsis.repository.manager.upgrade.V05_02_02_07To05_02_02_08Upgrade$1.processRow(V05_02_02_07To05_02_02_08Upgrade.java:137)
  ... 19 more
Caused by: java.lang.RuntimeException: Error deriving PBKDF2 keys
  at com.ibm.crypto.provider.PBKDF2KeyImpl.a(Unknown Source)
  at com.ibm.crypto.provider.PBKDF2KeyImpl.(Unknown Source)
  at com.ibm.crypto.provider.bn.engineGenerateSecret(Unknown Source)
  ... 23 more

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