My Oracle Support Banner

OPSS - Unable run migrateSecurityStore script getting oracle.security.jps.InvalidStateException: JPS-00249 error message (Doc ID 2318983.1)

Last updated on FEBRUARY 19, 2019

Applies to:

Oracle Platform Security for Java - Version 12.2.1.2.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.2.0 version, Java Platform Security

Unable run migrateSecurityStore(...) script to export the policies from the DB to XML, getting JPS-00249 error

wls:/offline> migrateSecurityStore(type="policyStore", configFile="$MW_HOME/user_projects/domains/my_domain/config/fmwconfig/jps-migration.xml", src="sourceContext", dst="destinationContext")
COMMAND FAILED due to an unknown reason, Check the stack trace for details
Traceback (innermost last):
File "<console>", line 1, in ?
File "/gcm/product/12.2.1.0/mw/gcm/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 1403, in migrateSecurityStore
File "/gcm/product/12.2.1.0/mw/gcm/oracle_common/modules/internal/features/oracle.fmwshare.pyjar.jar!/wlstScriptDir/jpsWlstCmd.py", line 1360, in migrateSecurityStoreImpl
      at oracle.security.jps.JpsStartup.preStart(JpsStartup.java:278)
      at oracle.security.jps.JpsStartup.start(JpsStartup.java:210)
      at oracle.security.jps.internal.tools.utility.JpsUtilMigrationToolInternal$JpsUtilMigrationDelegate.jseStartUp(JpsUtilMigrationToolInternal.java:309)
      at oracle.security.jps.internal.tools.utility.JpsUtilMigrationToolInternal$JpsUtilMigrationDelegate.migrate(JpsUtilMigrationToolInternal.java:342)
      at oracle.security.jps.internal.tools.utility.JpsUtilMigrationToolInternal.executeCommandInternal(JpsUtilMigrationToolInternal.java:115)
      at oracle.security.jps.tools.utility.JpsUtilMigrationTool.executeCommand(JpsUtilMigrationTool.java:166)
      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:497)

oracle.security.jps.InvalidStateException: oracle.security.jps.InvalidStateException: JPS-00249: Operation "preStart" can only be performed when OPSS is in state "UNINITIALIZED". Current state is FAILURE.

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
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.