>
>
>> we have replaced the ExtendedRequest/responseDecorator with the
>> OpaqueExtendedRequest/Response classes.
>>
>> They have the gatValue() method that returns the byte[] containing the
>> value:
>>
>>
This isn't working for me.  When I try to cast ExtendedRequest req
to OpaqueExtendedRequest I get:

LDAPException: Other (80) Other
LDAPException: Server Message: OTHER: Extended operation handler for the
specified EXTENSION_OID (1.3.6.1.4.1.4203.1.11.1) has failed to process
your request:
java.lang.ClassCastException: class
org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestImpl
cannot be cast to class
org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest
(org.apache.directory.api.ldap.extras.extended.pwdModify.PasswordModifyRequestImpl
and org.apache.directory.api.ldap.model.message.OpaqueExtendedRequest are
in unnamed module of loader 'app')
at
org.apache.directory.server.ldap.handlers.request.ExtendedRequestHandler.handle(ExtendedRequestHandler.java:122)

It doesn't look like PasswordModifyRequestImpl can be cast.  How does
apacheds know to use a particular class implementation for an extended
request?

Thanks
Marc

Reply via email to