Le 12/4/13 4:38 PM, Daniel Fisher a écrit : > On Wed, Dec 4, 2013 at 7:06 AM, Stefan Murawski <[email protected]> wrote: >> Unfortunately I get the following ClassCast-Exception, and don't know how >> to proceed further. >> >> java.lang.ClassCastException: >> org.apache.directory.api.ldap.codec.BasicControlDecorator cannot be cast to >> org.apache.directory.api.ldap.model.message.controls.PagedResults >> >> for: >> >> pagedSearchControl = (PagedResults) result >> .getControl(PagedResults.OID); >> > Try adding: System.setProperty(StandaloneLdapApiService.CONTROLS_LIST, > PagedResultsFactory.class.getName()); > at the top of your code. > I recall seeing CastClassExceptions if the ApiService doesn't know > about the control.
This is something we have to fix... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
