Unexpected Error Occurred While Importing the Security Policy. Internal JPS Error JPS-04031: Parameter "permissionEntries" is null (Doc ID 1618037.1)

Last updated on NOVEMBER 19, 2016

Applies to:

Oracle WebCenter Portal - Version 11.1.1.7.0 to 11.1.1.7.1 [Release 11g]
Information in this document applies to any platform.

Symptoms

The Spaces is created with sub-spaces.  The sub-spaces has multiple pages and some of those pages in the sub-space has Custom Access Settings with "authenticated Access" assigned.
This spaces is exported without any errors.

The import of this Space fails with the following errors:

In Browser:

Initializing import...
Initialization of import completed.
Initializing metadata import...
Initialization of metadata import completed.
Validating the import...
Validation of import completed.
Initializing service lifecycle handlers...
Initialization of service lifecycle handlers completed.
Creating lock...
Creation of lock completed.
Importing metadata...
Import of metadata completed.
Importing service configuration files...
Import of service configuration files aborted.
Finalizing service lifecycle handlers...
Finalization of service lifecycle handlers completed.
Finalizing metadata import...
Finalization of metadata import completed.
Finalizing import...
Finalization of import completed.
Import has failed with errors.
Unexpected error occurred while importing the security policy. Unable to import the policy store. An internal JPS error has occurred while exporting / importing application roles.




In  the Spaces Diagnostics log files:

Caused by: oracle.webcenter.lifecycle.LifecycleException: Unexpected error occurred while importing the security policy. Unable to import the policy store.
An internal JPS error has occurred while exporting / importing application roles.
at oracle.webcenter.webcenterapp.internal.model.lifecycle.WebCenterSecurityLifecycleHandler.handleSecurityException(WebCenterSecurityLifecycleHandler.java:1829)
at oracle.webcenter.webcenterapp.internal.model.lifecycle.WebCenterSecurityLifecycleHandler.importScopedPolicies(WebCenterSecurityLifecycleHandler.java:784)
at oracle.webcenter.webcenterapp.internal.model.lifecycle.WebCenterSecurityLifecycleHandler.importPolicyStore(WebCenterSecurityLifecycleHandler.java:635)
at oracle.webcenter.webcenterapp.internal.model.lifecycle.WebCenterLifecycleHandler.doConfigurationImport(WebCenterLifecycleHandler.java:865)
at oracle.webcenter.lifecycle.configuration.HandlerConfigurationUnit.doImport(HandlerConfigurationUnit.java:123)
at oracle.webcenter.lifecycle.operation.ImportOperation.doImport(ImportOperation.java:131)
at oracle.webcenter.lifecycle.LifecycleService.doImport(LifecycleService.java:450)
at oracle.webcenter.webcenterapp.internal.view.lifecycle.WebCenterImporterThread.run(WebCenterImporterThread.java:103)
... 8 more
Caused by: oracle.webcenter.security.model.internal.WCSecurityException: An internal JPS error has occurred while exporting / importing application roles.
at oracle.webcenter.security.common.AppSecurityPolicyManager.overwriteRolesAndPermissions(AppSecurityPolicyManager.java:455)
at oracle.webcenter.webcenterapp.internal.model.lifecycle.WebCenterSecurityLifecycleHandler.importScopedPolicies(WebCenterSecurityLifecycleHandler.java:749)
... 14 more
Caused by: oracle.security.jps.service.policystore.info.common.InvalidArgumentException: JPS-04031: Parameter "permissionEntries" is null.
at oracle.security.jps.internal.policystore.PolicyUtil.checkForNull(PolicyUtil.java:1473)
at oracle.security.jps.internal.policystore.PolicyUtil.checkNullForGrantAndRevoke(PolicyUtil.java:1775)
at oracle.security.jps.internal.policystore.JpsPolicy.revoke(JpsPolicy.java:672)
at oracle.webcenter.security.common.AppSecurityPolicyManager.overwriteRolesAndPermissions(AppSecurityPolicyManager.java:349)
... 15 more


Steps To Reproduce:

  1. Create space: mainspace
  2. Create 2 subspace:   subspace1 and subspace2
  3. Create page1 and page2  in EACH subspace
  4. In EACH page, Set Page Access: Use Custom Access Settings : Add "authenticated Access"
  5. Take the Spaces and Sub-Spaces off-line and from Administration:  Export mainspace
  6. Delete mainspace and subspaces.
  7. Restart managed server.
  8. Import mainspace...may work first time.  
  9. Delete mainspace again and import  again   
    Error  as mentioned above will be shown.




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