directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Ayyagari (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRSERVER-1917) Class Cast Exception when doing paged search
Date Sat, 22 Feb 2014 16:02:19 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-1917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kiran Ayyagari resolved DIRSERVER-1917.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-M16
         Assignee: Kiran Ayyagari

This is due to the way default controls and extended operations are initialized in the server
till v2.0.0-M15 using system properties.

In the current trunk (i.e., M16) this has been changed and all the stock 
controls will be loaded by default without the need to set any system properties.

> Class Cast Exception when doing paged search
> --------------------------------------------
>
>                 Key: DIRSERVER-1917
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1917
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M15
>         Environment: apacheDS embedded in jetty running on gentoo linux or mac osx, queried
with ldapsearch command line tool. 
>            Reporter: Ute Schröder
>            Assignee: Kiran Ayyagari
>            Priority: Minor
>              Labels: classcastexception
>             Fix For: 2.0.0-M16
>
>
> When I do a paged query, such as this: 
> ldapsearch -x -H ldap://localhost:11389 -b ou=fulltext,dc=crown,dc=de -Duid=ulrich.eisenberg,ou=users,dc=crown,dc=de
 -W -z 10 -E pr=9
> a ClassCastException happens: 
> 15:35:34,273 DEBUG org.apache.directory.server.ldap.handlers.request.SearchRequestHandler:1667
- OTHER: failed for MessageType : SEARCH_REQUEST
> Message ID : 2
>     SearchRequest
>         baseDn : 'ou=fulltext,dc=crown,dc=de'
>         filter : '(objectclass=*)'
>         scope : whole subtree
>         typesOnly : false
>         Size Limit : 10
>         Time Limit : no limit
>         Deref Aliases : never Deref Aliases
>         attributes : 
> org.apache.directory.api.ldap.model.message.SearchRequestImpl@cc5fea49    OpaqueControl
Control
>         Type OID    : '1.2.840.113556.1.4.319'
>         Criticality : 'false'
> '
> : org.apache.directory.api.ldap.codec.BasicControlDecorator cannot be cast to org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsDecorator
> java.lang.ClassCastException: org.apache.directory.api.ldap.codec.BasicControlDecorator
cannot be cast to org.apache.directory.api.ldap.codec.controls.search.pagedSearch.PagedResultsDecorator
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.doSimpleSearch(SearchRequestHandler.java:809)
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleIgnoringReferrals(SearchRequestHandler.java:1153)
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleWithReferrals(SearchRequestHandler.java:1242)
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:217)
> 	at org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:92)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
> 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
> 	at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221)
> 	at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
> 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
> 	at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)
> 	at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
> 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:474)
> 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:428)
> 	at java.lang.Thread.run(Thread.java:722)
> The query works fine without the -E pr=9 parameter and returns about 80 results.  



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message