My Oracle Support Banner

OPSS - Unable start Admin Server : java.net.ConnectException: Connection timed out: connect - JPS-04001: Cannot read the default policy store - Unable to perform operation: post construct on oracle.security.jps.wls.JpsDefaultService (Doc ID 2373144.1)

Last updated on MAY 11, 2022

Applies to:

Oracle Platform Security for Java - Version 11.1.1.7.0 to All
Information in this document applies to any platform.

Symptoms

Situation can be present in both situations when OPSS store is Oracle database or OID/LDAP server.


In the case when OPSS store is Oracle database next message can report in the Admin Server log file:

<BEA-090892> <The loading of an OPSS java security policy provider failed due to an exception. See the exception stack trace or the server log file for the root cause. If there is no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: null>
.............
Caused By: weblogic.security.SecurityInitializationException: The loading of an OPSS java security policy provider failed due to an exception. See the exception stack trace or the server log file for the root cause. If there is no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy  to get more information. Error message: null
  at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1487)
  at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.preInitialize(CommonSecurityServiceManagerDelegateImpl.java:1090)
...............
Caused By: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
................
Caused By: oracle.security.jps.JpsException: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
  at oracle.security.jps.internal.config.OpssCommonStartup.start(OpssCommonStartup.java:211)
  at oracle.security.jps.wls.JpsWlsStartup.start(JpsWlsStartup.java:80)
  at oracle.security.jps.JpsStartup.start(JpsStartup.java:186)
............
Caused By: oracle.security.jps.service.policystore.PolicyStoreException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
  at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.processJPAException(JpsDBDataManager.java:2180)
  at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.init(JpsDBDataManager.java:1028)
  at oracle.security.jps.internal.policystore.rdbms.JpsDBDataManager.jpsObjectListQuery(JpsDBDataManager.java:3398)
...............
Caused By: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
  at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:766)
  at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getAbstractSession(EntityManagerFactoryDelegate.java:204)
........
Caused By: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
  at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:331)
  at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:326)
.........
Caused By: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:800)
  at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
.............
Caused By: oracle.net.ns.NetException: The Network Adapter could not establish the connection
  at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:475)
  at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:569)
  at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:620)
  at oracle.net.ns.NSProtocol.connect(NSProtocol.java:239)
  at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1606)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:539)
  at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:614)
.............
Caused By: java.net.ConnectException: Connection timed out: connect
  at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
  at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:579)
.........
<BEA-000365> <Server state changed to FAILED.>

 

In the case when OPSS store is OID/LDAP server next message can report in the Admin Server log file:

1. oracle.security.jps.JpsRuntimeException: JPS-04001: Cannot read the default policy store.
2. java.lang.IllegalStateException: Unable to perform operation: post construct on oracle.security.jps.wls.JpsDefaultService

at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:392)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:487)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:305)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2126)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsRuntimeException: JPS-04001: Cannot read the default policy store.
at oracle.security.jps.internal.policystore.ldap.LdapPolicyStore.<init>(LdapPolicyStore.java:611)
at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreProvider.getInstance(LdapPolicyStoreProvider.java:281)
at oracle.security.opss.internal.runtime.ServiceContextManagerImpl.createContextInternal(ServiceContextManagerImpl.java:687)
at oracle.security.opss.internal.runtime.ServiceContextManagerImpl.createDefaultContext(ServiceContextManagerImpl.java:322)
at oracle.security.opss.internal.runtime.ServiceContextManagerImpl.initialize(ServiceContextManagerImpl.java:242)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.service.policystore.PolicyStoreConnectivityException: <oid hostname:port> java.net.ConnectException: Connection timed out (Connection timed out)
at oracle.security.jps.internal.common.ldap.connection.pool.AbstractConnectionPool.isPassingSanityConnectionTest(AbstractConnectionPool.java:150)
at oracle.security.jps.internal.common.ldap.connection.pool.JpsJNDIConnectionPool.getInstance(JpsJNDIConnectionPool.java:71)
at oracle.security.jps.internal.common.ldap.connection.JpsConnectionPoolManager.getPool(JpsConnectionPoolManager.java:42)
at oracle.security.jps.internal.policystore.ldap.LdapPolicyStoreManager.createInstance(LdapPolicyStoreManager.java:140)
at oracle.security.jps.internal.policystore.ldap.StoreManager.getInstance(StoreManager.java:439)
Truncated. see log file for complete stacktrace
Caused By: javax.naming.CommunicationException: <OID_HOSTNAME:LDAP_PORT> [Root exception is java.net.ConnectException: Connection timed out (Connection timed out)]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:238)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)
at com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:64)
at com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:114)
at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:136)
Truncated. see log file for complete stacktrace
Caused By: java.net.ConnectException: Connection timed out (Connection timed out)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
Truncated. see log file for complete stacktrace
>
<May 9, 2022 6:30:58,754 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
<May 9, 2022 6:30:58,755 PM GMT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
<May 9, 2022 6:30:58,757 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
Stopping Derby server...
Derby server stopped.

 

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
References


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