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

Document ID : KB000007178
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

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 

 

Capture.JPG

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.