Error when creating user: com.netegrity.imapi.impl.BLTHContextImpl cannot be cast to com.netegrity.imapi.impl.EventContextImpl
search cancel

Error when creating user: com.netegrity.imapi.impl.BLTHContextImpl cannot be cast to com.netegrity.imapi.impl.EventContextImpl

book

Article ID: 7178

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Risk Analytics CA Secure Cloud SaaS - Arcot A-OK (WebFort) CLOUDMINDER ADVANCED AUTHENTICATION CA Secure Cloud SaaS - Advanced Authentication CA Secure Cloud SaaS - Identity Management CA Secure Cloud SaaS - Single Sign On

Issue/Introduction

After upgrade this client could no longer create a new user.  Would see the following after trying to create a user:

com.netegrity.imapi.impl.BLTHContextImpl cannot be cast to com.netegrity.imapi.impl.EventContextImpl 

 

Environment

Linux\WindowsFor this client it occured after an upgrade from 12.6 to 14.0

Cause

Server logs showed connection refused errors but after review we found the hostname was incorrect.

Caused by: javax.naming.CommunicationException: incorrecthost.com:19389 [Root exception is java.net.ConnectException: Connection refused (Connection refused)] 
at com.sun.jndi.ldap.Connection.<init>(Connection.java:226) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1614) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2746) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:319) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:192) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:210) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:153) [rt.jar:1.8.0_131] 
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:83) [rt.jar:1.8.0_131] 
at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:122) 
at org.jboss.as.naming.InitialContext.init(InitialContext.java:107) 
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154) [rt.jar:1.8.0_131] 
at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:98) 
at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:44) 
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684) [rt.jar:1.8.0_131] 
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) [rt.jar:1.8.0_131] 
at javax.naming.InitialContext.init(InitialContext.java:244) [rt.jar:1.8.0_131] 
at javax.naming.InitialContext.<init>(InitialContext.java:216) [rt.jar:1.8.0_131] 
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:101) [rt.jar:1.8.0_131] 
at com.ca.identitymanager.policyxpress.plugins.data.PxDataLDAPQuery.getInitialContext(PxDataLDAPQuery.java:163) [identitymanager.jar:] 

Resolution

Modified the PX rule with the correct hostname.