My Oracle Support Banner

OID 12c WLST Commands Fail with Error "Attribute oracle.oid.mbeans not found" AND AdminServer log Shows "Error during preRegister for MBean oracle.oid.mbeans" (Doc ID 2985463.1)

Last updated on NOVEMBER 13, 2023

Applies to:

Oracle Internet Directory - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.4.0 version, OID LDAP Server

1) OID Specific WLST commands not working. No other functionality issue reported for OID Server

For example, running below commands using wlst on OID :
oid_listInstances()
oid_instanceStatus(instanceName = 'oid1')
oid_getProperties(context='EM')
oid_createInstance(instanceName='instance-name', machine='oidhost1', port = nnnn, sslPort = nnnn, host = 'hostname')

however getting the following error.

ERROR
-----------------------
wls://serverConfig/> oid_listInstances()
Location changed to edit custom tree. This is a writable tree with No root.
For more help, use help('editCustom')
===============================================

Traceback (innermost last):
  File "", line 1, in ?
  File "/oid/plugins/wlst/oid-wlst-dependencies.jar!/wlstScriptDir/OidCustomCommands.py", line 65, in oid_listInstances
  File "/oid/plugins/wlst/oid-wlst-dependencies.jar/wlstScriptDir/oid_handler.py", line 448, in oid_listOIDInstances
  File "/tmp/wlst_module2146599842662391923.py", line 63, in cd
  File "/tmp/wlst_module38612074450686580491.py", line 240, in raiseWLSTException
WLSTException: Error occurred while performing cd : Attribute oracle.oid.mbeans not found. Use ls('a') to view the attributes

wls:/obpoid_domain/editCustom/>
===============================================


2) FMW EM Console Doesn't show any components under Targets Navigation Menu ( Including AdminServer, Managed Server, OID etc )

 

3) AdminServer Startup log shows the following messages

<Warning> <oracle.oid.admin> <BEA-000000> <Unable to load during pre-register - java.sql.SQLRecoverableException: IO Error: IO Error sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, Authentication lapse 0 ms.>
<Warning> <oracle.oid.admin> <BEA-000000> <Unable to load during pre-register - java.sql.SQLRecoverableException: IO Error: IO Error sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, Authentication lapse 0 ms.>
<Warning> <oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean> <J2EE JMX-46252> <Error during preRegister for MBean oracle.oid.mbeans:type=OIDInstance,name=oid1
java.io.IOException: IO Error: IO Error sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, Authentication lapse 0 ms.
at oracle.oid.mbeans.OIDProxy.load(OIDProxy.java:1879)
at oracle.oid.mbeans.OIDProxy.preRegister(OIDProxy.java:2117)
........................................
........................................
<Error> <oracle.oid.admin> <BEA-000000> <Exception thrown in preRegister method>
<Error> <oracle.oid.admin> <BEA-000000> <Exception thrown in preRegister method>
<Warning> <oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean> <J2EE JMX-46252> <Error during preRegister for MBean oracle.oid.mbeans:type=OIDSystemComponent,name=OIDComponentManager
java.io.IOException: javax.management.MBeanRegistrationException: Exception thrown in preRegister method
at oracle.oid.mbeans.OIDComponentManager.load(OIDComponentManager.java:300)

 

Changes

OID Connection to the Database was changed from Non SSL listen port to SSL listen port

Reference:

28.8 Configuring SSL between Database and Oracle Internet Directory
https://docs.oracle.com/en/middleware/idm/internet-directory/12.2.1.4/administer/configuring-secure-sockets-layer-ssl.html#GUID-C18D54BF-8A95-432B-9A44-3A6A46873026

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