Wednesday, February 15, 2023

EBS 12.2 -- EBS DB post upgrade - Autoconfig failed in RAC - Exception in thread "main" java.lang.ExceptionInInitializerError, JceSecurityManager.java

One of the most interesting (but quickly solved) that I recently dealt with.. Thanks to my followers  again, for bringing these cases.

This one is my favorite amongst the AskMeAnything issues in January 2022.  That's not because the problem was a hard to solve one, but it was quickly solved, the initial diagnosis yielded the result and the action for the solution was something like a surgical intervention :)

Okay. A little advertisement will not do any harm to anyone :)  After all, I m doing this (guidance and support) for free..

You need support? You need guidance? You have questions? Just subscribe and ask for it. 

Here is the link of my forum - http://ermanarslan.blogspot.com/p/forum.html

This issue that is the subject to this blog post, was about a failing a txkPostPDBCreationTasks.pl run.

It was a post upgrade task and failed internally while executing the adbldxml.pl with the following error :

        Exception in thread "main" java.lang.ExceptionInInitializerError

       at javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:65)

        at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2590)

        at javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2614)

        at oracle.jdbc.driver.T4CConnection.<clinit>(T4CConnection.java:484)

        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:75)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:816)

        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:620)

        at java.sql.DriverManager.getConnection(DriverManager.java:664)

        at java.sql.DriverManager.getConnection(DriverManager.java:247)

        at oracle.apps.ad.context.GenerateContext.getDBConnection(GenerateContext.java:858)

        at oracle.apps.ad.context.GenerateContext.testDBCon(GenerateContext.java:792)

        at oracle.apps.ad.context.GenerateContext.getConParameters(GenerateContext.java:582)

        at oracle.apps.ad.context.GenerateContext.main(GenerateContext.java:2745)

Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism

        at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:93)

        ... 13 more

Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by the expected signer! (Policy files are specific per major JDK release.Ensure the correct version is installed.)

        at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:336)

        at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:378)

        at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:323)

        at javax.crypto.JceSecurity.access$000(JceSecurity.java:50)

        at javax.crypto.JceSecurity$1.run(JceSecurity.java:85)

        at java.security.AccessController.doPrivileged(Native Method)

        at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:82)

        ... 13 more

*******FATAL ERROR*******

It was an interesting issue and seemed related with the java files in Oracle home in the first glance.

By using the following MOS note as reference -> Using Crypto Libraries in 12.2 DataBase For Java Calls Failing With ORA-29532 Java.Lang.NoClassDefFoundError (Doc ID 2701566.1), we checked $ORACLE_HOME/javavm/lib/security.. Especially the files US_export_policy.jar and local_policy.jar.

Note that; those jar files may be in a different directory in your case..

All seemed okay. But we (me and my forum subscriber) insisted on the java being the cause of the problem and solved the issue by copying the jre folder from another EBS instance (where we could run adbldxml.pl without any problems), to $ORACLE_HOME/appsutil and the problem disappeared :) .

That 's the tip of the day:) and here is the direct link to the related issue, which we solved recently -> 

http://erman-arslan-s-oracle-forum.124.s1.nabble.com/EBS-database-post-upgrade-Implementing-Autoconfig-failed-in-RAC-td11502.html

No comments :

Post a Comment

If you will ask a question, please don't comment here..

For your questions, please create an issue into my forum.

Forum Link: http://ermanarslan.blogspot.com.tr/p/forum.html

Register and create an issue in the related category.
I will support you from there.