My Oracle Support Banner

Cannot Set AdapterReloadingEnabled Attribute Of AdapterReloadingEnabled System Mbean Through WLST (Doc ID 1498323.1)

Last updated on AUGUST 10, 2021

Applies to:

Identity Manager - Version 11.1.1.5.2 and later
Information in this document applies to any platform.

Goal

Trying to use WLST scripting to set values in MDS.

---
connect()
domainRuntime()

# Set ADPClassLoaderConfig
ADPClassLoaderConfig = ObjectName('oracle.iam:Location=<OIM_SERVERNAME>,name=ADPClassLoaderConfig,type=XMLConfig.ADPClassLoaderConfig,XMLConfig=Config,Application=oim,ApplicationVersion=11.1.1.3.0')

# Set the value for the attributes
oimReloadAttribute1 = Attribute('AdapterReloadingEnabled',False)
oimReloadAttribute2 = Attribute('ReloadingEnabled',False)

# Store tha attributes with the
mbs.setAttribute(ADPClassLoaderConfig,oimReloadAttribute1)
mbs.setAttribute(ADPClassLoaderConfig,oimReloadAttribute2)

disconnect()
---

This fails with this error:
javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: java.lang.IllegalArgumentException: java.lang.ClassCastException@161ebbaa

But it is not possible to set the boolean attribute of the object. Even trying the following values does not work: 0, bool(false), bool('false').
 

Solution

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
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.