org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us'

Atlassian JIRA | Donna McGahan [Atlassian] | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When attempting to de-activate a group in OpenLDAP the following exception is thrown: {noformat} 2008-06-27 15:25:59,550 http-8095-1 ERROR [console.action.group.UpdateGroup] [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us' org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:122) at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:786) at org.springframework.ldap.core.LdapTemplate.executeReadWrite(LdapTemplate.java:779) at org.springframework.ldap.core.LdapTemplate.modifyAttributes(LdapTemplate.java:951) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.updateGroup(SpringLDAPConnector.java:1081) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateGroup(DirectoryManagerGeneric.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) {noformat} Also, when de-activating a user, the update succeeds but the box remains checked.

    Atlassian JIRA | 9 years ago | Donna McGahan [Atlassian]
    org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us'
  2. 0

    When attempting to de-activate a group in OpenLDAP the following exception is thrown: {noformat} 2008-06-27 15:25:59,550 http-8095-1 ERROR [console.action.group.UpdateGroup] [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us' org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:122) at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:786) at org.springframework.ldap.core.LdapTemplate.executeReadWrite(LdapTemplate.java:779) at org.springframework.ldap.core.LdapTemplate.modifyAttributes(LdapTemplate.java:951) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.updateGroup(SpringLDAPConnector.java:1081) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateGroup(DirectoryManagerGeneric.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) {noformat} Also, when de-activating a user, the update succeeds but the box remains checked.

    Atlassian JIRA | 9 years ago | Donna McGahan [Atlassian]
    org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us'

    Root Cause Analysis

    1. org.springframework.ldap.InvalidAttributeValueException

      [LDAP: error code 21 - description: value #0 invalid per syntax]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - description: value #0 invalid per syntax]; remaining name 'cn=a-group, o=sgi, c=us'

      at org.springframework.ldap.support.LdapUtils.convertLdapException()
    2. spring-ldap-core
      LdapTemplate.modifyAttributes
      1. org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:122)
      2. org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:786)
      3. org.springframework.ldap.core.LdapTemplate.executeReadWrite(LdapTemplate.java:779)
      4. org.springframework.ldap.core.LdapTemplate.modifyAttributes(LdapTemplate.java:951)
      4 frames
    3. com.atlassian.crowd
      DirectoryManagerGeneric.updateGroup
      1. com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.updateGroup(SpringLDAPConnector.java:1081)
      2. com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateGroup(DirectoryManagerGeneric.java:427)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames