We are getting "error code 20 - attribute or value exists" randomly when we try to create a new user in the LDAP system. This error is thrown so randomly that it is really driving us crazy. With same values for all other mandatory fields and with just a different userId, this error is thrown for some cases and not for others. The entry is also NOT getting created in LDAP. We are able to create the same entry directly at the LDAP through jXxplorer.
Stack Trace:
Caused By: javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - Attribute Or Value Exists]; remaining name 'cn=sdoc,cn=Users,dc=xxx,dc=xxx'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3051)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:791)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:178)
Is is a bug in rt.jar? We are using JRE1.6.45. Is there anyway we can increase the logging at the rt.jar?
Is there anyway we can bypass this error?
Your help is highly appreciated.