Error: "oracle.ons.NoServersAvailable: Subscription time out" Is Observed While Performing LDAP Configuration
(Doc ID 2846890.1)
Last updated on JULY 26, 2023
Applies to:
Oracle Agile PLM Framework - Version 9.3.6.0 and laterInformation in this document applies to any platform.
Symptoms
Actual Behavior
When executing checkLDAPconfig.sh and migrateUsersToDB.sh as part of LDAP configuration, below error is observed.
Error
SEVERE: attempt to configure ONS in FanManager failed with oracle.ons.NoServersAvailable: Subscription time out
java.lang.IllegalArgumentException: ONS configuration failed
at oracle.simplefan.impl.FanManager.configure(FanManager.java:108)
at oracle.jdbc.driver.HAManager.configure(HAManager.java:146)
at oracle.jdbc.driver.HAManager.<init>(HAManager.java:122)
at oracle.jdbc.driver.HAManager.getInstance(HAManager.java:126)
at oracle.jdbc.driver.HAManager.enableHAIfNecessary(HAManager.java:725)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:727)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:39)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:691)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:388)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:277)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:200)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:140)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:86)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeCacheConnection(OracleImplicitConnectionCache.java:1600)
at oracle.jdbc.pool.OracleImplicitConnectionCache.makeOneConnection(OracleImplicitConnectionCache.java:510)
at oracle.jdbc.pool.OracleImplicitConnectionCache.defaultUserPrePopulateCache(OracleImplicitConnectionCache.java:236)
at oracle.jdbc.pool.OracleImplicitConnectionCache.<init>(OracleImplicitConnectionCache.java:205)
at oracle.jdbc.pool.OracleConnectionCacheManager.createCache(OracleConnectionCacheManager.java:286)
at com.agile.util.sql.OracleConnectionImpl.initialize(OracleConnectionImpl.java:286)
at com.agile.util.sql.OracleConnectionImpl.init(OracleConnectionImpl.java:227)
at com.agile.util.sql.LocalConnectionFactory.getConnectionCache(LocalConnectionFactory.java:112)
at com.agile.util.sql.LocalConnectionFactory.getJDBCConnection(LocalConnectionFactory.java:74)
at com.agile.util.sql.ConnectionFactory.getConnection(ConnectionFactory.java:37)
at com.agile.admin.ldap.DirDAO.getConnection(DirDAO.java:78)
at com.agile.admin.ldap.DirDAO.resetAgileUsers(DirDAO.java:689)
at com.agile.upgrade.ldap.Migration.main(Migration.java:851)
Caused by: oracle.ons.NoServersAvailable: Subscription time out
at oracle.ons.NotificationNetwork.waitUntilOnline(NotificationNetwork.java:96)
at oracle.ons.ONS.init(ONS.java:96)
at oracle.ons.ONS.<init>(ONS.java:154)
at oracle.simplefan.impl.FanManager$1.run(FanManager.java:102)
at oracle.simplefan.impl.FanManager$1.run(FanManager.java:100)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.simplefan.impl.FanManager.configure(FanManager.java:100)
... 25 more
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: ONS configuration failed
at com.agile.util.sql.LocalConnectionFactory.getConnectionCache(LocalConnectionFactory.java:115)
at com.agile.util.sql.LocalConnectionFactory.getJDBCConnection(LocalConnectionFactory.java:74)
at com.agile.util.sql.ConnectionFactory.getConnection(ConnectionFactory.java:37)
at com.agile.admin.ldap.DirDAO.getConnection(DirDAO.java:78)
at com.agile.admin.ldap.DirDAO.resetAgileUsers(DirDAO.java:689)
at com.agile.upgrade.ldap.Migration.main(Migration.java:851)
Expected Behavior
checkLDAPconfig.sh and migrateUsersToDB.sh should be executed without any issue.
Steps
The issue can be reproduced at will with the following steps:
- Agile provides OOTB scripts to enable configuration of additional servers manually
- These scripts are located in the agile_home\agileDomain\bin directory
- Execute checkLDAPConfig.sh/checkLDAPConfig.cmd
- Error: "java.lang.IllegalArgumentException: ONS configuration failed" is observed
- Execute migrateUsersToDB.sh/migrateUsersToDB.cmd
- Error: "java.lang.IllegalArgumentException: ONS configuration failed" is observed
Changes
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 |
Changes |
Cause |
Solution |
References |