java.io.IOException: java.lang.ClassCastException: oracle.security.crypto.cert.ext.NetscapeCertTypeExtension cannot be cast to oracle.security.crypto.cert.X509Extension

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 934007, 1 year ago
java.lang.ClassCastException: oracle.security.crypto.cert.ext.NetscapeCertTypeExtension cannot be cast to oracle.security.crypto.cert.X509Extension
java.io.IOException: java.lang.ClassCastException: oracle.security.crypto.cert.ext.NetscapeCertTypeExtension cannot be cast to oracle.security.crypto.cert.X509Extension
at oracle.security.crypto.cert.X509Extension.inputInstance(X509Extension.java:257)
at oracle.security.crypto.cert.X509ExtensionSet.input(X509ExtensionSet.java:261)
at oracle.security.crypto.cert.X509ExtensionSet.(X509ExtensionSet.java:103)
at oracle.security.crypto.cert.X509.input(X509.java:615)
at oracle.security.crypto.cert.X509.(X509.java:142)
at oracle.security.crypto.cert.PKCS12CertBag.input(PKCS12CertBag.java:126)
at oracle.security.crypto.cert.PKCS12CertBag.(PKCS12CertBag.java:80)
at oracle.security.crypto.cert.PKCS12Bag.inputBag(PKCS12Bag.java:78)
at oracle.security.crypto.cert.PKCS12Safe.input(PKCS12Safe.java:203)
at oracle.security.crypto.cert.PKCS12Safe.(PKCS12Safe.java:119)
at oracle.security.crypto.cert.PKCS12.input(PKCS12.java:179)
at oracle.security.crypto.cert.PKCS12.(PKCS12.java:122)
at oracle.security.pki.OracleKeyStoreSpi.engineLoad(Unknown Source)
at java.security.KeyStore.load(KeyStore.java:1185)
at oracle.security.pki.OracleWallet.getKeyStore(Unknown Source)
at oracle.security.pki.OracleWallet.getCertReqDNs(Unknown Source)
at oracle.as.idm.install.config.util.CertificateUtil.importCertificate(CertificateUtil.java:112)
at oracle.as.idm.install.config.util.CertificateUtil.setOVDCAIntoEMAgentWallet(CertificateUtil.java:165)
at oracle.as.idm.install.config.IdMDirectoryServicesManager.doExecute(IdMDirectoryServicesManager.java:1137)
at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:371)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:88)
at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:105)
at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:64)
at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:160)
at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:86)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.