when i try to add attribute using java code into LDAP i am getting error. How it can be solved ?

javax.naming.OperationNotSupportedException: [LDAP: error code 53 - failed to modify entry 2.5.4.3=schema: Cannot permit the addition of an attributeType with an no EQUALITY matchingRule
and no super type from which to derive an EQUALITY matchingRule.]; remaining name ''
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknow n Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknow n Source)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(Unkno wn Source)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_mod ifyAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContex t.modifyAttributes(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContex t.modifyAttributes(Unknown Source)
at com.sun.jndi.ldap.LdapSchemaCtx$SchemaInfo.modifyA ttributes(Unknown Source)
at com.sun.jndi.ldap.LdapSchemaCtx.addServerSchema(Un known Source)
at com.sun.jndi.ldap.LdapSchemaCtx.doCreateSubcontext (Unknown Source)
at com.sun.jndi.toolkit.dir.HierMemDirCtx.createSubco ntext(Unknown Source)
at com.sun.jndi.toolkit.dir.HierMemDirCtx.createSubco ntext(Unknown Source)