Start OMS failed with "javax.xml.stream.XMLStreamException: Premature end of file encountered" (Doc ID 1481158.1)

Last updated on JULY 04, 2016

Applies to:

Enterprise Manager Base Platform - Version 11.1.0.1 to 11.1.0.1 [Release 11.1]
Information in this document applies to any platform.

Symptoms

Starting 11g OMS fails with the following error:


+ <gc_inst>/em/EMGC_OMS1/sysman/log/emctl.log shows:

2012-07-28 20:14:04,795 [Thread-1] INFO wls.OMSController run.1154 - <OUT>status of EMGC_OMS1:
2012-07-28 20:14:04,799 [Thread-1] INFO wls.OMSController run.1154 - <OUT>FAILED_NOT_RESTARTABLE
2012-07-28 20:14:04,800 [Thread-1] INFO wls.OMSController run.1154 - <OUT>timed out waiting for EMGC_OMS1 to be RUNNING
2012-07-28 20:14:04,804 [Thread-2] INFO wls.OMSController run.1154 - <ERR>_END_
2012-07-28 20:14:04,872 [main] INFO wls.OMSController processCmd.1013 - wlst process is finished
2012-07-28 20:14:04,873 [main] INFO wls.OMSController processCmd.1015 - wlst process exited with code 1

2012-07-28 20:14:05,177 [main] DEBUG oms.StatusOMSCmd processStatusOMS.156 - Using http port.
2012-07-28 20:14:05,178 [main] DEBUG oms.StatusOMSCmd processStatusOMS.196 - Attempting to connect to http://myhost.oracle.com:7202/em/console/logon/logon
2012-07-28 20:14:05,181 [main] INFO oms.StatusOMSCmd processStatusOMS.227 - Failed to connect to em login page
2012-07-28 20:14:05,181 [main] INFO oms.StatusOMSCmd processStatusOMS.228 - Connection refused
2012-07-28 20:14:05,182 [main] INFO wls.OMSController statusOMS.975 - statusOMS finished with result: 8

 

+ <gc_inst>/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/EMGC_OMS1.out shows:

<Jul 28, 2012 11:50:05 PM CDT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The dynamic loading of the OPSS java security policy provider class oracle.security.jps.internal.policystore.JavaPolicyProvider failed due to problem inside OPSS java security policy provider. Exception was thrown when loading or setting the JPSS policy provider. Enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
weblogic.security.SecurityInitializationException: The dynamic loading of the OPSS java security policy provider class oracle.security.jps.internal.policystore.JavaPolicyProvider failed due to problem inside OPSS java security policy provider. Exception was thrown when loading or setting the JPSS policy provider. Enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider
Caused By: java.security.PrivilegedActionException: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain default JPS Context!
at java.security.AccessController.doPrivileged(Native Method)
Caused By: oracle.security.jps.JpsRuntimeException: Cannot read from policy store.
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.buildFromFile(XmlPolicyStore.java:286)
Caused By: oracle.security.jps.JpsRuntimeException: javax.xml.stream.XMLStreamException: javax.xml.stream.XMLStreamException: Premature end of file encountered
at oracle.security.jps.internal.core.datastore.xml.XmlDataStoreParser.getDataStoreEntryStax(XmlDataStoreParser.java:167)
<Jul 28, 2012 11:50:05 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>

 

 

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