My Oracle Support Banner

Attempting to Add Members to a Portal Results in Error: 1 User(s) including <USER_ID> have already been granted role(s) <PORTAL_ROLE_NAME> (Doc ID 2791957.1)

Last updated on JULY 20, 2021

Applies to:

Oracle WebCenter Portal - Version 12.2.1.3.0 to 12.2.1.4.0
Information in this document applies to any platform.

Symptoms

All members of a Portal Role with more than 100 members, no longer show as members of the portal.
Attempting to add a user back as member of the portal results in the following error:


ERROR

WCS#YYYY.MM.DD.HH.MI.SS : 1 User(s) including <USER_ID> have already been granted role(s) <PORTAL_ROLE_NAME>.

 

The WC_Portal-diagnostic.log shows the following error:

[<DATE-TIME>] [WC_Portal] [ERROR] [WCC-ADF-10900] [oracle.wcc.adf.logger] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] Required feature is not enabled on the WebCenter Content Server instance 'Default'. Feature: 'AutoSuggestConfig', Minimum level: 1.0
[<DATE-TIME>] [WC_Portal] [ERROR] [] [oracle.webcenter.webcenterapp.internal.view.webapp] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] [[
java.lang.NullPointerException
        at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterELResolver.getValue(WebCenterELResolver.java:595)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
        at com.sun.el.parser.AstValue.getValue(AstValue.java:139)
...
[<DATE-TIME>] [WC_Portal] [ERROR] [WCS-72011] [oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] An error occurred while committing a transaction.[[
oracle.webcenter.portal.transaction.TransactionException: An error occurred while committing a transaction.
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commit(TransactionManagerImpl.java:510)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.commitIfAllowed(TransactionManagerImpl.java:467)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.execute(TransactionManagerImpl.java:283)
        at oracle.webcenter.portal.persistence.transaction.TransactionManagerImpl.execute(TransactionManagerImpl.java:244)
...
[<DATE-TIME>] [WC_Portal] [ERROR] [] [oracle.adf.model.adapter.bean.BeanDCInvocationHandler] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USERID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] [DSID: <DSID>] InvocationTargetException ->invoke(addUsersToSpace)[[
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
...
Caused by: oracle.webcenter.spaces.operations.GroupSpaceOpsIgnorableException: Role has been granted with errors. You might want to contact Administrator or Remove/Grant Role again.
        at oracle.webcenter.spaces.internal.model.security.SpacesSecurityManagerImpl.grantInternalRole(SpacesSecurityManagerImpl.java:1418)
... 182 more
Caused by: oracle.webcenter.portal.api.MemberOperationException: There was a failure adding member '<MEMBER_ID>' to portal '<PORTAL_NAME>'
        at oracle.webcenter.portal.api.impl.PortalImpl.addToMembers(PortalImpl.java:1064)
        at oracle.webcenter.portal.api.impl.DiscoveredPortalImpl.lambda$addToMembers$13(DiscoveredPortalImpl.java:64)
        at oracle.webcenter.portal.persistence.impl.activity.ActivityExecutorImpl.execute(ActivityExecutorImpl.java:62)
        at oracle.webcenter.portal.persistence.impl.activity.ActivityExecutorImpl$Proxy$_$$_WeldClientProxy.execute(Unknown Source)
...

 

Running the refreshGroupSpaceCache command results in the following error:

[DATE-TIME>] [WC_Portal] [WARNING] [] [oracle.webcenter.spaces.internal.repository.SpaceRepositoryUtils] [tid: [ACTIVE].ExecuteThread: '22' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <USER_ID>] [ecid: <ECID>] [APP: webcenter] [partition-name: DOMAIN] [tenant-name: GLOBAL] Failed to refresh identities for group space:<PORTAL_NAME> due to error = java.lang.NullPointerException

 



STEPS

The issue can be reproduced at will with the following steps:

  1. Connect to WebCenter Portal as a Portal administrator user.  
     
  2. Go to administer the affected portal.  
     
  3. Select Security -> Members.
    All members from a specific Role with more than 100 members are missing.
    e.g. All members of the Participant Role are missing.  
     
  4. Try to add a user back with Participant role.
    This error will occur:
     
    1 User(s) including <USER_ID> have already been granted role(s) Participant.  
     
  5. Remove the user from the participant role using WLST command:
     
    revokeAppRole(appStripe="webcenter",appRoleName="<PORTAL_INTERNAL_ID>#-#Participant",principalClass="weblogic.security.principal.WLSUserImpl",principalName="<USER_ID>")  
     
  6. Navigate back to the portal and try to add the user again.
    This error occurs:
     
    WCS#YYYY.MM.DD.HH.MI.SS Role has being granted with errors. You might want to contact Administrator or Remove/Grant role again. 
      
  7. Run this command from WLST:
     
    listAppRoleMembers(appStripe="webcenter",appRoleName= "<PORTAL_INTERNAL_ID>#-#Participant")
     
    All members show in the output of this command.

  8. Refresh the portal cache:
     
    refreshGroupSpaceCache(appName='webcenter', spaceNames= '<PORTAL_NAME>',server='WC_Portal', updateType='all', syncMode=1, cleanCache=0) 
     
  9. Logout and Login back to WebCenter Portal.  
     
  10. Check the members of the portal again.
    The Participant members are still missing.

 

Changes

 

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.