开启托管server报错:Cannot read from policy store. Reason is PolicyStore Error


Oracle Fusion Middleware - Version: 11.1.1.2.0 and later [Release: Oracle11g and later ]
Oracle Weblogic Server - Version: 10.3.2 and later ]


报错信息类似:
oracle.security.jps.JpsRuntimeException: Cannot read from policy store.
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.buildFromFile(XmlPolicyStore.java:425)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.(XmlPolicyStore.java:224)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:100)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:74)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)

原因:

The file ${domain.home}/config/fmwconfig/system-jazn-data.xml is either incomplete and / or corrupted, therefore the error is produced due to an Unexpected end of Document error when the OPSS framework (included inside Fusion Middleware) is trying to read an XML.

The reasons for the corruption are typically difficult or impossible to determine. One possible cause is a machine crashes or reboot has occurred at the same time a product or application was writing / updating a configuration file.
解决方法:

1.    Shutdown the all the servers in the domain
2.    Copy the corrupted policy file from a backup location
copy ${oracle.home}/oracle_common/modules/oracle.jps_11.1.1/domain_config/system-jazn-data.xml to ${domain.home}/config/fmwconfig/system-jazn-data.xml.
3.    Restart all servers in the domain
请使用浏览器的分享功能分享到微信等