Adop Phase=prepare Failed with Error "java.lang.SecurityException" (Doc ID 2055246.1)

Last updated on MAY 20, 2016

Applies to:

Oracle Applications DBA - Version 12.2.4 to 12.2.4 [Release 12.2Cloud]
Information in this document applies to any platform.

Symptoms

On Oracle Applications 12.2.4, adop phase=prepare failed with the following error:

Exception in thread "main" java.lang.ExceptionInInitializerError
  at javax.crypto.Cipher.getInstance(Cipher.java:499)
  at oracle.security.o5logon.O5LoginClientHelper.decryptAES(Unknown Source)
  at oracle.security.o5logon.O5LoginClientHelper.generateOAuthResponse(Unknown Source)
  at oracle.jdbc.driver.T4CTTIoauthenticate.marshalOauth(T4CTTIoauthenticate.java:457)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:367)
  at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
  at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
  at java.sql.DriverManager.getConnection(DriverManager.java:571)
  at java.sql.DriverManager.getConnection(DriverManager.java:215)
  at oracle.apps.ad.util.DBUtil.getConnectionUsingAppsJDBCConnector(DBUtil.java:602)
  at oracle.apps.ad.clone.util.CloneUtil.getServerNamesFromDB(CloneUtil.java:949)
  at oracle.apps.ad.clone.util.CloneUtil.getAllServerNamesFromDB(CloneUtil.java:903)
  at oracle.apps.ad.clone.FSCloneStageAppsTier.doWLSTechStack(FSCloneStageAppsTier.java:217)
  at oracle.apps.ad.clone.FSCloneStageAppsTier.<init>(FSCloneStageAppsTier.java:141)
  at oracle.apps.ad.clone.FSCloneStageAppsTier.main(FSCloneStageAppsTier.java:667)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
  at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:86)
  ... 17 more
Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
  at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:254)
  at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
  at javax.crypto.JceSecurity$1.run(JceSecurity.java:78)
  at java.security.AccessControl



The issue can be reproduced at will with the following steps:
1. Ran: adop phase=prepare
2. It failed with the error above.

The issue has the following business impact:
Cannot apply patch

Changes

 Instance created by rapidclone.

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