directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Chuan" <lichuan...@gmail.com>
Subject Re: ScopeEvaluator NPE by simultaneous search & unbind
Date Fri, 17 Oct 2008 09:14:32 GMT
On Fri, Oct 17, 2008 at 10:56 AM, Emmanuel Lecharny <elecharny@gmail.com>wrote:

> Li Chuan wrote:
>
>> Hi guys,
>>
>> besides the last PDU question, I also noticed ScopeEvaluator gives NPE by
>> simultaneous search & unbind operations, e.g. when searching for entries
>> of
>> a particular object class and removing them at the same moment. This
>> happens
>> not all the time, but it does. So did anyone of you also notice it and
>> what
>> the root cause for that? Thanks for your reply!
>>
>>
> Hmmm, yes, you may be right. The Unbind Operation should take care of other
> requests being processed, and I'm afraind that it may not be the case.
>
> Do you get this result with 1.5.4 ? If this is the case, could you fill a
> JIRA ? A stack trace could also help (at least, we could fix the NPE)
>
> Thanks !
>
> FYI, I'm also afraid that you may get the same problem with the Abandon
> request, and when deleting an entry while doing a long search, in some very
> special circonstances.
>
>> Regards,
>>  Chuan
>>
>>
>>
>
>
> --
> --
> cordialement, regards,
> Emmanuel L├ęcharny
> www.iktek.com
> directory.apache.org
>
>
>

Yes, please refer to the stack trace below (1.5.3). I will test with 1.5.4
or above and in that case I will fill a JIRA ticket. You guys are awesome!

Regards,
  Chuan


INFO   | jvm 1    | 2008/10/13 13:09:09 | java.lang.NullPointerException
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.assertSubtreeScope(ScopeEvaluator.java:94)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.evaluate(ScopeEvaluator.java:71)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.LeafEvaluator.evaluate(LeafEvaluator.java:184)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:101)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator$2.assertCandidate(ExpressionEnumerator.java:262)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.prefetch(IndexAssertionEnumeration.java:163)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.next(IndexAssertionEnumeration.java:122)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.next(IndexAssertionEnumeration.java:38)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.BTreeSearchResultEnumeration.next(BTreeSearchResultEnumeration.java:111)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.partition.impl.btree.BTreeSearchResultEnumeration.next(BTreeSearchResultEnumeration.java:55)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:305)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:216)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:57)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:305)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:216)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:57)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:305)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:216)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:57)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.prefetch(SearchResultFilteringEnumeration.java:305)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:216)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.enumeration.SearchResultFilteringEnumeration.next(SearchResultFilteringEnumeration.java:57)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.entry.ServerEntryUtils$1.next(ServerEntryUtils.java:588)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.core.entry.ServerEntryUtils$1.next(ServerEntryUtils.java:567)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.ldap.handlers.SearchResponseIterator.next(SearchResponseIterator.java:244)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.ldap.handlers.SearchResponseIterator.next(SearchResponseIterator.java:65)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.ldap.handlers.DefaultSearchHandler.searchMessageReceived(DefaultSearchHandler.java:389)
INFO   | jvm 1    | 2008/10/13 13:09:09 |     at
org.apache.directory.server.ldap.handlers.SearchHandler.messageReceived(SearchHandler.java:42)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.directory.server.ldap.LdapServer$LdapProtocolHandler.messageReceived(LdapServer.java:1180)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:57)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:183)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
INFO   | jvm 1    | 2008/10/13 13:09:10 |     at
java.lang.Thread.run(Thread.java:619)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message