[ 
http://issues.apache.org/jira/browse/DIRSNICKERS-124?page=comments#action_12365230
 ] 

Van Nhu commented on DIRSNICKERS-124:
-------------------------------------

Thanks Emmanuel for your prompt response.

If I understand it correctly, your LDAP Proxy doesn't transform LDAP messages 
between Twix format and the "internal" message presentation.

Our LDAP client/proxy, when implemented with MINA + Twix Codec Provider, is 
currently failing to communicate with the server. It throws a NPE when running 
this segment of code:

    public void testEncodeBindRequest() throws EncoderException
    {
        final BindRequestImpl req0 = new BindRequestImpl( 1 );
        req0.setCredentials( "password".getBytes() );
        req0.setName( "cn=admin,dc=example,dc=com" );
        req0.setSimple( true );
        req0.setVersion3( true );

        final MessageEncoder encoder = new MessageEncoder();
        encoder.encode( req0 );
    }

I would suspect that a similar error will be received if you try to get the 
Twix Codec Provider to decode an LDAP response. The reasons for this are as I 
explained in my previous comment. We can discuss further off-line if that is 
more convenient to you. 

Thanks and Regards, 
Van



> Control is a Class and an Interface in two packages.
> ----------------------------------------------------
>
>          Key: DIRSNICKERS-124
>          URL: http://issues.apache.org/jira/browse/DIRSNICKERS-124
>      Project: Directory ASN1
>         Type: Improvement
>     Reporter: Emmanuel Lecharny
>     Assignee: Emmanuel Lecharny

>
> We have too elements with the same name : Control.
> it's an Interface in org.apache.ldap.common.message and a class in 
> org.apache.ldap.common.codec
> We must keep only one of those two elements

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to