My Oracle Support Banner

Network Adapter or File not Found Error while Executing LDAPConfigPostSetup.sh Script (Doc ID 2376624.1)

Last updated on MARCH 21, 2018

Applies to:

Identity Manager - Version 11.1.2.3.180116 and later
Information in this document applies to any platform.

Symptoms

Encountering one of the following errors while Executing LDAPConfigPostSetup.sh Script

---------------------------------------

.
.
Executing oracle.iam.platformservice.utils.LDAPConfigPostSetup in IPv4 mode
[Enter OIM admin password:]
[EL Severe]: 2018-02-09 10:46:03.287--ServerSession(1510177103)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
[EL Severe]: 2018-02-09 10:46:03.711--ServerSession(92045319)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
Error Code: 17002
javax.naming.NamingException: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException [Root exception is oracle.ods.virtualization.config.ConfigException: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException]
  at oracle.ods.virtualization.jndi.OVDContextFactory.getInitialContext(OVDContextFactory.java:58)
  at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
.
Caused by: oracle.ods.virtualization.config.ConfigException: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
  at oracle.ods.virtualization.config.impl.file.FileServiceConfig.(FileServiceConfig.java:142)
.
Caused by: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
  at oracle.ods.virtualization.api.CredentialStoreConfigManager.loadCredentialStore(CredentialStoreConfigManager.java:124)
.
Caused by: java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.
Caused by: oracle.ods.virtualization.service.InitializationException: oracle.security.jps.service.credstore.CredStoreException: JPS-01055: Could not create credential store instance. Reason oracle.security.jps.service.policystore.PolicyStoreConnectivityException: JPS-00027: There was an internal error: java.net.ConnectException: Connection refused (Connection refused)
  at oracle.ods.virtualization.extensions.CSFCredentialStore.initializeCredentialStore(CSFCredentialStore.java:67)
.
Caused by: oracle.security.jps.service.credstore.CredStoreException: JPS-01055: Could not create credential store instance. Reason oracle.security.jps.service.policystore.PolicyStoreConnectivityException: JPS-00027: There was an internal error: java.net.ConnectException: Connection refused (Connection refused)
  at oracle.security.jps.internal.credstore.ldap.LdapCredentialStore.init(LdapCredentialStore.java:177)
.
Unable to get either LDAP, OIM connection or LDAPSync is not enabled and reason is:oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
[oracle@ovmwebcap1 ldap_config_util]$

 or

 Executing oracle.iam.platformservice.utils.LDAPConfigPostSetup in IPv4 mode
[Enter OIM admin password:]
javax.naming.NamingException: oracle.ods.virtualization.service.InitializationException:
java.lang.reflect.InvocationTargetException [Root exception is oracle.ods.virtualization.config.ConfigException: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException]
at oracle.ods.virtualization.jndi.OVDContextFactory.getInitialContext(OVDContextFactory.java:58)
.
Caused by: oracle.ods.virtualization.config.ConfigException: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
at oracle.ods.virtualization.config.impl.file.FileServiceConfig.<init>(FileServiceConfig.java:142)
.
Caused by: oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
at oracle.ods.virtualization.api.CredentialStoreConfigManager.loadCredentialStore(CredentialStoreConfigManager.java:124)
.
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
.
Caused by: oracle.security.jps.config.JpsConfigurationException: /u01/app/oracle/domains/idam_domain/config/fmwconfig/jps-config-jse.xml (No such file or directory)
at oracle.security.jps.internal.config.xml.XmlConfigurationFactory.initDefaultConfiguration(XmlConfigurationFactory.java:439)
.
Caused by: java.io.FileNotFoundException: /u01/app/oracle/domains/idam_domain/config/fmwconfig/jps-config-jse.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
.
Unable to get either LDAP, OIM connection or LDAPSync is not enabled and reason is:oracle.ods.virtualization.service.InitializationException: java.lang.reflect.InvocationTargetException
[oracle@ovmwebcap1 ldap_config_util]$

 

For running the Utilities the following environment variables need to be set prior to running job as stated in:
E.2.1 Running the LDAP Post-Configuration Utility
https://docs.oracle.com/cd/E52734_01/oim/IDMIG/app_oid_oim.htm#IDMIG31986
------------------------

APP_SERVER is weblogic
OIM_ORACLE_HOME is /u01/app/oracle/product/fmw11g2/oracle_IDAM
JAVA_HOME is /u01/app/jdk1.7.0_171
MW_HOME is /u01/app/oracle/product/fmw11g2
WL_HOME is /u01/app/oracle/product/fmw11g2/wlserver_10.3
DOMAIN_HOME is /u01/app/oracle/domains/idam_domain

 

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!


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