Unable to Migrate the Policy Store from LDAP to File Using migrateSecurityStore Command : java.lang.OutOfMemoryError: java.lang.OutOfMemoryError

(Doc ID 2411992.1)

Last updated on JUNE 18, 2018

Applies to:

Oracle WebCenter Portal - Version 11.1.1.9.171222 and later
Information in this document applies to any platform.

Symptoms


When attempting to migrate the Policy and Credential store from LDAP to File using the migrateSecurityStore script, the following error occurs:

ERROR

wls:/webcenter/serverConfig> migrateSecurityStore(type="appPolicies", configFile="/refresh/oracle/Middleware/user_projects/domains/wc_domain/config/fmwconfig/jps-config.xml.tmp", src="default", srcApp="webcenter", dstApp="webcenter", dst="defaultXML", migrateIdStoreMapping="true", reportFile="report.html")

INFO: Migration of 0 Permission Sets completed in 00:00:00
May 21, 2018 9:05:14 AM oracle.security.jps.internal.tools.utility.destination.apibased.JpsDstPolicy clone
INFO: Migration of Admin Roles started
May 21, 2018 9:05:14 AM oracle.security.jps.internal.tools.utility.destination.apibased.JpsDstPolicy cloneAdminRoleMembers
INFO: Migration of Admin Role Members started
May 21, 2018 9:05:14 AM oracle.security.jps.internal.tools.utility.destination.apibased.JpsDstPolicy cloneAdminRoleMembers
INFO: Migration of 0 Admin Role Members completed in 00:00:00
....

May 21, 2018 9:05:57 AM oracle.security.jps.internal.tools.utility.destination.apibased.JpsDstPolicy clone
INFO: Migration of 5,366 Grants completed in 00:00:42
COMMAND FAILED due to an unknown reason, Check the stack trace for details
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "/a01/app/oraweb/middle/oracle_common/common/wlst/jpsWlstCmd.py", line 983, in migrateSecurityStore
  File "/a01/app/oraweb/middle/oracle_common/common/wlst/jpsWlstCmd.py", line 944, in migrateSecurityStoreImpl
        at java.util.HashSet.<init>(HashSet.java:144)
        at oracle.security.jps.internal.policystore.ldap.PermissionManagerImpl.persistentEntry2PermissionEntry(PermissionManagerImpl.java:1132)
        at oracle.security.jps.internal.policystore.ldap.PermissionManagerImpl.getPermissionsInTransaction(PermissionManagerImpl.java:708)
        at oracle.security.jps.internal.policystore.entitymanager.AbstractPermissionManager.getPermissionsInTransaction(AbstractPermissionManager.java:43)
        at oracle.security.jps.internal.policystore.ldap.StoreManager.getAllGrants(StoreManager.java:1067)
        at oracle.security.jps.internal.policystore.ldap.StoreManager.getJavaPolicyEntries(StoreManager.java:525)
        at oracle.security.jps.internal.policystore.JpsPolicy.unsync_getGrantEntries(JpsPolicy.java:1238)
        at oracle.security.jps.internal.policystore.JpsPolicy.getGrantEntries(JpsPolicy.java:1221)
        at oracle.security.jps.patch.analyze.comparator.ApplicationPolicyComparator.constructBaseLineArtifactMaps(ApplicationPolicyComparator.java:890)
        at oracle.security.jps.patch.analyze.comparator.ApplicationPolicyComparator.<init>(ApplicationPolicyComparator.java:161)
        at oracle.security.jps.internal.tools.utility.ValidateMigratedData.validateAndReportIsContained(ValidateMigratedData.java:70)
        at oracle.security.jps.internal.tools.utility.JpsUtilMigrationPolicyImpl.migrateAppPolicyData(JpsUtilMigrationPolicyImpl.java:318)
        at oracle.security.jps.tools.utility.JpsUtilMigrationTool.executeCommand(JpsUtilMigrationTool.java:366)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: GC overhead limit exceeded


STEPS

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

  1. Create an xml file with the source and target destination for the migration.

  2. Run the migrateSecurityStore command.



Changes

 

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