My Oracle Support Banner

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 and later
Information in this document applies to any platform.


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


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 clone
INFO: Migration of Admin Roles started
May 21, 2018 9:05:14 AM cloneAdminRoleMembers
INFO: Migration of Admin Role Members started
May 21, 2018 9:05:14 AM cloneAdminRoleMembers
INFO: Migration of 0 Admin Role Members completed in 00:00:00

May 21, 2018 9:05:57 AM 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/", line 983, in migrateSecurityStore
  File "/a01/app/oraweb/middle/oracle_common/common/wlst/", line 944, in migrateSecurityStoreImpl
        at java.util.HashSet.<init>(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: GC overhead limit exceeded


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.




To view full details, 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 a vibrant support community of peers and Oracle experts.