grantPermission() Command Fails To Execute with "No Protocol" Exception (Doc ID 1535101.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Platform Security for Java - Version 11.1.1.3.0 to 11.1.1.6.0 [Release Oracle11g]
Information in this document applies to any platform.

Symptoms

When trying to use grantPermission() WLST command to add credential access permission for an application to the OPSS credentials store, when granting permission, the below error message occurs.

wls:idm/serverConfig> grantPermission(codeBaseURL="/opt/application/oracle/user_projects/domains/idm/servers/soa_server1/tmp/_WL_user/SOACompositeWS",permClass="oracle.security.jps.service.credstore.CredentialAccessPermission",permTarget="context=SYSTEM,mapName=oracle.oim.sysadminMap,keyName=*",permActions="*")
Already in Domain Runtime Tree

COMMAND FAILED due to an unknown reason, Check the stack trace for details
Traceback (innermost last):
 File "", line 3, in ?
 File "/opt/application/oracle/oracle_common/common/wlst/jpsWlstCmd.py", line 695, in grantPermission
 File "/opt/application/oracle/oracle_common/common/wlst/jpsWlstCmd.py", line 669, in grantPermissionImpl
  at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
  at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
  at javax.management.remote.rmi.RMIConnectionImpl_1033_WLStub.invoke(Unknown Source)
  at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:876)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
  at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
  at weblogic.security.Security.runAs(Security.java:61)
  at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:874)
  at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)

javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: no protocol: /opt/application/oracle/user_projects/domains/idm/servers/soa_server1/tmp/_WL_user/SOACompositeWS

 

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