My Oracle Support Banner

WLST Security Command: CreateAppRole Produces Error : Could Not Find MBean Operation (Doc ID 2695788.1)

Last updated on JULY 29, 2020

Applies to:

Oracle Platform Security for Java - Version 12.2.1.3.0 to 12.2.1.4.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

In OBIEE 12.2.1.3.x version,
Customer has a requirement to add quite a lot new application roles to their OBIEE 12.2.1.3.x application, which they wanted to achieve by WLST script. However the WLST Command createAppRole (appStripe="obi", appRoleName='<APP_ROLE_NAME>') runs into following error .

ERROR:
--------------------

wls:/bi/serverConfig/> createAppRole (appStripe="obi", appRoleName='<APP_ROLE_NAME>')
DomainRuntime MBeanServer is not enabled on a Managed Server.

COMMAND FAILED due to an unknown reason, Check the stack trace for details
Traceback (innermost last):
  File "", line 1, in ?
  File "/usr/app/fmw/oracle_common/modules/internal/clients/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 921, in createAppRole
  File "/usr/app/fmw/oracle_common/modules/internal/clients/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 902, in createAppRoleImpl
javax.management.ReflectionException
  at weblogic.utils.StackTraceDisabled.unknownMethod()
Caused by: java.lang.UnsupportedOperationException: Could not find MBean operation "createApplicationRole(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" for MBean registered under "com.oracle.jps:type=JpsApplicationPolicyStore" and implemented by "class oracle.security.jps.mas.mgmt.jmx.policy.JpsApplicationPolicyStoreImpl"
  ... 1 more

javax.management.ReflectionException: javax.management.ReflectionException
wls:/bi/serverConfig/>


IMP NOTE: When creating new application role through Enterprise Manager UI, they're able to create it successfully.

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