[ 
https://issues.apache.org/jira/browse/FC-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14204331#comment-14204331
 ] 

Emmanuel Lecharny commented on FC-47:
-------------------------------------

Ah !!!

This is my fault. ORGUNIT_OBJ_CLASS is an Array, but should be a String. The 
code should be :

{code}
Entry myEntry = new DefaultEntry( nodeDn,
    GlobalIds.OBJECT_CLASS, ORGUNIT_OBJ_CLASS[0],
    GlobalIds.OU, oe.getName(),
    GlobalIds.DESC, oe.getDescription() );
{code}

or even better :

{code}
Entry myEntry = new DefaultEntry( nodeDn,
    GlobalIds.OBJECT_CLASS, ORGUNIT_CLASS,
    GlobalIds.OU, oe.getName(),
    GlobalIds.DESC, oe.getDescription() );
{code}



> OrganizationalUnitDao create attribute syntax violation
> -------------------------------------------------------
>
>                 Key: FC-47
>                 URL: https://issues.apache.org/jira/browse/FC-47
>             Project: FORTRESS-CORE
>          Issue Type: Bug
>    Affects Versions: 1.0.0-RC39
>            Reporter: Shawn McKinney
>             Fix For: 1.0.0-RC40
>
>
> When executing this code:
>             Entry myEntry = new DefaultEntry( nodeDn,
>                 GlobalIds.OBJECT_CLASS, ORGUNIT_OBJ_CLASS,
>                 GlobalIds.OU, oe.getName(),
>                 GlobalIds.DESC, oe.getDescription() );
> the following error:
> org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException:
>  ERR_12086 The Attribute value #1 must be a String or a byte[]
> The value for entity:
> OrganizationalUnit[Client123, Client 123 test context, null, ]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to