OVD 11g Fails to Start. Errors in diagnostic.log Include: com.octetstring.vde.util.DirectoryException: Key does not exist | java.lang.NullPointerException | Keystore was tampered with, or password was incorrect (Doc ID 2253514.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle Virtual Directory - Version 11.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Oracle Virtual Directory (OVD) 11g instance fails to start.

OVD diagnostic.log ends with errors such as:

[2017-04-04T10:16:54.564-04:00] [octetstring] [ERROR] [OVD-60182] [com.octetstring.vde.util.PasswordEncryptor] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Exception: Key does not exist: ip-<IP>.domain.internalovd1:{AES-CBC}.[[
com.octetstring.vde.util.DirectoryException: Key does not exist: ip-<IP>.domain.internalovd1:{AES-CBC}
at com.octetstring.vde.util.PasswordEncryptor.getEKey(PasswordEncryptor.java:366)
at com.octetstring.vde.util.PasswordEncryptor.getAesCipher(PasswordEncryptor.java:333)
...<etc>...

[2017-04-04T10:16:54.564-04:00] [octetstring] [ERROR] [OVD-60008] [com.octetstring.vde.backend.BackendHandler] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Error in instantiating dc=my_prod.[[
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at com.octetstring.vde.backend.db.DBConnectionPool.<init>(DBConnectionPool.java:102)
at com.octetstring.vde.backend.db.BackendDB.configureAdapter(BackendDB.java:209)
...<etc>...

[2017-04-04T10:16:54.564-04:00] [octetstring] [ERROR] [OVD-60231] [com.octetstring.vde.backend.BackendHandler] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Cannot load adapters.[[
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at com.octetstring.vde.backend.db.DBConnectionPool.<init>(DBConnectionPool.java:102)
at com.octetstring.vde.backend.db.BackendDB.configureAdapter(BackendDB.java:209)
...<etc>...

[2017-04-04T10:16:54.574-04:00] [octetstring] [NOTIFICATION] [OVD-20157] [com.octetstring.vde.chain.plugins.performance.MonitorPerformance] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Initializing Performance Monitor Plugin Version 5320M.
[2017-04-04T10:16:54.575-04:00] [octetstring] [NOTIFICATION] [OVD-20067] [com.octetstring.vde.join.Join_prod.JoinViewAdapter] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Join view initialized (join rule initialization pending).
[2017-04-04T10:16:54.609-04:00] [octetstring] [ERROR] [OVD-60216] [com.octetstring.vde.VDEServer] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Cannot start Oracle Virtual Directory server: Keystore was tampered with, or password was incorrect.[[
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
at com.octetstring.vde.util.OVDSSLSocketFactory.getKeyStore(OVDSSLSocketFactory.java:282)
at com.octetstring.vde.frontend.SocketListener.getKeyStore(SocketListener.java:258)
at com.octetstring.vde.frontend.SocketListener.getSSLContext(SocketListener.java:110)
at com.octetstring.vde.frontend.SocketListener.init(SocketListener.java:86)
at com.octetstring.vde.admin.AdminService.init(AdminService.java:66)
at com.octetstring.vde.frontend.ListenerHandler.addListener(ListenerHandler.java:99)
at com.octetstring.vde.frontend.ListenerHandler.init(ListenerHandler.java:91)
at com.octetstring.vde.VDEServer.startServer(VDEServer.java:183)
at com.octetstring.vde.VDEServer.main(VDEServer.java:361)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
... 11 more

]]
[2017-04-04T10:16:54.609-04:00] [octetstring] [NOTIFICATION] [OVD-20052] [com.octetstring.vde.VDEServer] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Oracle Virtual Directory Server is shutting down.
[2017-04-04T10:16:55.501-04:00] [octetstring] [NOTIFICATION] [OVD-20010] [com.octetstring.vde.backend.standard.Root Local Store.BackendStandard] [tid: 11] [ecid: 0000LgtKpNADoYtpGcH7if1Osuf8000002,0] [#Root Local Store] Initializing Memory Indices
[2017-04-04T10:16:55.510-04:00] [octetstring] [NOTIFICATION] [OVD-20075] [com.octetstring.vde.VDEServer] [tid: 10] [ecid: 0000LgtKlzLDoYtpGcH7if1Osuf8000000,0] Oracle Virtual Directory Server is stopped

Tried:

OVD 11g Suddenly Fails To Start. Diagnostic.log Shows Message: "Cannot start Oracle Virtual Directory server: Keystore was tampered with, or password was incorrect." (Doc ID 1166157.1)

However it does not help. In the listeners.os_xml file, the "password" field for keys.jks is empty. Backing up and manually editing it with the correct password, then restarting the instance, does not encrypt the password, but keeps it as blank.

Changes

OVD Server was manually moved to a new host.

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