Hi,

I have an attribute of type Integer in a 'LDAP object class'. When i try to modify this attribute using

context.setAttributeValue("sequenceCounter", lastSentSequenceID); i get the following exception

Exception in thread "main" org.springframework.ldap.InvalidAttributeValueException: Malformed 'lastSentSequenceID' attribute value; nested exception is javax.naming.directory.InvalidAttributeValueExcept ion: Malformed 'lastSentSequenceID' attribute value; remaining name 'cn=1234,cn=12346,ou=configurations'
at org.springframework.ldap.support.LdapUtils.convert LdapException(LdapUtils.java:122)
at org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:810)
at org.springframework.ldap.core.LdapTemplate.execute ReadWrite(LdapTemplate.java:802)
at org.springframework.ldap.core.LdapTemplate.modifyA ttributes(LdapTemplate.java:967)
at org.springframework.ldap.core.LdapTemplate.modifyA ttributes(LdapTemplate.java:1338)
at com.ettex.rialto.dao.ClientDAOImpl.update(ClientDA OImpl.java:93)
at tests.LDAPAccessClient.main(LDAPAccessClient.java: 54)
Caused by: javax.naming.directory.InvalidAttributeValueExcept ion: Malformed 'lastSentSequenceID' attribute value; remaining name 'cn=1234,cn=12346,ou=configurations'
at com.sun.jndi.ldap.LdapClient.encodeAttribute(LdapC lient.java:951)
at com.sun.jndi.ldap.LdapClient.modify(LdapClient.jav a:920)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapC tx.java:1451)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_mod ifyAttributes(ComponentDirContext.java:255)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContex t.modifyAttributes(PartialCompositeDirContext.java :172)
at javax.naming.directory.InitialDirContext.modifyAtt ributes(InitialDirContext.java:153)
at org.springframework.ldap.core.LdapTemplate$19.exec uteWithContext(LdapTemplate.java:969)
at org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:807)
... 5 more


(lastSentSequenceID is of type integer and hence i pass an Integer object to '.setAttributeValue' method.)

Can someone please tell me the reason for the exception thrown?

Thanks in advance
Alice.