You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Icky Dude <ic...@gmail.com> on 2008/02/12 00:02:21 UTC

NullPointerException in assertSubtreeScope

Can't figure this one out.  Too much magic going on...   Still seems
like we'd want to handle the possibility that  db.getEntryDn( id )
would return null on line ScopeEvaluator.java:91.

Has anyone else seen the following (using "big bang")?

.....
67520 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultMatchingRuleRegistry
 - lookup with id '2.5.13.2' of matchingRule: <2.5.13.2,
caseIgnoreMatch>
67520 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultNormalizerRegistry
 - registered normalizer with oid: 2.5.13.2
70569 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
71567 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
88442 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
89011 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
89529 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
90041 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
90393 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
90599 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
90801 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
90997 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
91177 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
91427 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
91649 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
91857 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
92050 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
92417 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
169739 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
171585 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
260306 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
266369 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
267263 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
267938 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
268293 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
268488 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
268659 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
268829 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
269000 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
269174 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
269305 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
270509 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
270646 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
270811 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
270983 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
271147 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
271910 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
272053 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
272835 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
273524 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
274376 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
275085 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
275847 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
276657 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
277423 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
278428 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
279857 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
282543 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
283965 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
285314 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
286735 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
288090 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
289507 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
291960 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
292867 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
294271 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
295481 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
296612 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
297602 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
298642 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
299567 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
300119 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
300271 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
300445 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
300681 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
300850 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
301017 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
301257 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
307257 [main] DEBUG
org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
 - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
<1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
Exception in thread "main" java.lang.NullPointerException
	at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.assertSubtreeScope(ScopeEvaluator.java:94)
	at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.evaluate(ScopeEvaluator.java:71)
	at org.apache.directory.server.core.partition.impl.btree.LeafEvaluator.evaluate(LeafEvaluator.java:192)
	at org.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:104)
	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator$2.assertCandidate(ExpressionEnumerator.java:262)
	at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.prefetch(IndexAssertionEnumeration.java:163)
	at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.<init>(IndexAssertionEnumeration.java:68)
	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumConj(ExpressionEnumerator.java:275)
	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumerate(ExpressionEnumerator.java:148)
	at org.apache.directory.server.core.partition.impl.btree.DefaultSearchEngine.search(DefaultSearchEngine.java:127)
	at org.apache.directory.server.core.partition.impl.btree.BTreePartition.search(BTreePartition.java:322)
	at org.apache.directory.server.core.schema.SchemaPartitionDao.listAllNames(SchemaPartitionDao.java:730)
	at org.apache.directory.server.core.schema.PartitionSchemaLoader.loadEnabled(PartitionSchemaLoader.java:203)
	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1389)
	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:775)

Re: NullPointerException in assertSubtreeScope

Posted by Emmanuel Lecharny <el...@gmail.com>.
Oopps,

I missed the first line of your code :)

I had to get the full bigbang installed on my computer before beoing 
able to play with your code. It's done now, so I will test it.

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: NullPointerException in assertSubtreeScope

Posted by Icky Dude <ic...@gmail.com>.
Found my classpath problem...  I was pulling a bad jar from M2_REPO
and should have been using classes built in Eclipse workspace.

For what it's worth, if I added code to return before the NPE, I got a
much more intuitive exception that led me to believe that a matching
rule was not found...

Thanks again for your help, Emmanuel.


On 2/12/08, Emmanuel Lecharny <el...@gmail.com> wrote:
> Icky Dude wrote:
> > Ok.  Thank you.  This is very helpful.  I'll go back an recheck my
> > build and test environment again.
> >
> Here is my .classpath. It may helps...
>
>
>
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: NullPointerException in assertSubtreeScope

Posted by Emmanuel Lecharny <el...@gmail.com>.
Icky Dude wrote:
> Ok.  Thank you.  This is very helpful.  I'll go back an recheck my
> build and test environment again.
>   
Here is my .classpath. It may helps...




-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: NullPointerException in assertSubtreeScope

Posted by Icky Dude <ic...@gmail.com>.
Ok.  Thank you.  This is very helpful.  I'll go back an recheck my
build and test environment again.

On Feb 12, 2008 9:52 AM, Emmanuel Lecharny <el...@gmail.com> wrote:
> I tested the code in Eclipse, and it works perfectly fine ! I
> successfully connected to the server with Apache Studio.
>
> Here is what I changed :
> - port is 10389 (because I'm on Linux, and I don't run program as root)
> - I loaded all the projects + MINA
>
> So I guess you have a missing jar in your classpath...
>
> --
>
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: NullPointerException in assertSubtreeScope

Posted by Emmanuel Lecharny <el...@gmail.com>.
I tested the code in Eclipse, and it works perfectly fine ! I 
successfully connected to the server with Apache Studio.

Here is what I changed :
- port is 10389 (because I'm on Linux, and I don't run program as root)
- I loaded all the projects + MINA

So I guess you have a missing jar in your classpath...

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: NullPointerException in assertSubtreeScope

Posted by Icky Dude <ic...@gmail.com>.
Emmanuel,

I do call directoryService.startup() in fact it's the startup()
codepath itself that results in the NPE.   Note the stack trace
(repeated below) from the original post:

Exception in thread "main" java.lang.NullPointerException
       at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.assertSubtreeScope(ScopeEvaluator.java:94)
       at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.evaluate(ScopeEvaluator.java:71)
       at org.apache.directory.server.core.partition.impl.btree.LeafEvaluator.evaluate(LeafEvaluator.java:192)
       at org.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:104)
       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator$2.assertCandidate(ExpressionEnumerator.java:262)
       at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.prefetch(IndexAssertionEnumeration.java:163)
       at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.<init>(IndexAssertionEnumeration.java:68)
       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumConj(ExpressionEnumerator.java:275)
       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumerate(ExpressionEnumerator.java:148)
       at org.apache.directory.server.core.partition.impl.btree.DefaultSearchEngine.search(DefaultSearchEngine.java:127)
       at org.apache.directory.server.core.partition.impl.btree.BTreePartition.search(BTreePartition.java:322)
       at org.apache.directory.server.core.schema.SchemaPartitionDao.listAllNames(SchemaPartitionDao.java:730)
       at org.apache.directory.server.core.schema.PartitionSchemaLoader.loadEnabled(PartitionSchemaLoader.java:203)
       at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1389)
       at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:775)
<==== The calling startup().

Can someone try to reproduce this using the code in this email thread?
If someone else gives it a shot and reports that the code works fine,
then I'll know for sure that is something to do with my classpath
(which I've checked at least a dozen times) or other configuration.


On Feb 12, 2008 7:18 AM, Emmanuel Lecharny <el...@gmail.com> wrote:
>
> Icky Dude wrote:
> > Emmanuel,
> >
> >
> > Yes, the NPE occurs on line ScopeEvaluator.java:94 because dn is null.
> >  Yes node is non-null.
> >
> > I get the NPE when initializing a DefaultDirectoryService (in what I
> > think is the simplest possible way).  I'm pretty sure I'm using right
> > bootstrap jars because I just built them and installed them into my my
> > M2_REPO):
> >
> > ...
> > ./repository/org/apache/directory/server/apacheds-bootstrap-partition/1.5.2-SNAPSHOT/apacheds-bootstrap-partition-1.5.2-SNAPSHOT.jar
> > ./repository/org/apache/directory/server/apacheds-schema-bootstrap/1.5.2-SNAPSHOT/apacheds-schema-bootstrap-1.5.2-SNAPSHOT.jar
> > ...
> >
> > I can reproduce the problem using the following code (sorry there are
> > some minor syntax problems having some problems cut-n-paste to my
> > webmail) :
> >
> > --- begin code ---
> >
> > import org.apache.directory.server.core.DefaultDirectoryService;
> > import org.apache.directory.server.ldap.LdapServer;
> > import org.apache.directory.server.protocol.shared.SocketAcceptor;
> > import org.apache.mina.common.ByteBuffer;
> > import org.apache.mina.common.SimpleByteBufferAllocator;
> > iimport javax.naming.NamingException;
> > import java.io.IOException;
> >
> > class HelloWorldImaDirectory
> > {
> >       private static int LDAP_PORT = 389;
> >
> >       public static void main( String[] args)
> >       {
> >               DefaultDirectoryService directoryService = new DefaultDirectoryService();
> >               LdapServer ldapServer = new LdapServer();
> >
> >               try
> >               {
> >               directoryService.startup();
> >               ByteBuffer.setAllocator( new SimpleByteBufferAllocator() );
> >               ByteBuffer.setUseDirectBuffers( false );
> >               SocketAcceptor tcpAcceptor = new SocketAcceptor( null );
> >               ldapServer.setSocketAcceptor( tcpAcceptor );
> >               ldapServer.setDirectoryService( directoryService );
> >
> You have to add this line here :
> directoryService.startup();
>
> Otherwise the schemas won't be loaded, leading to NPE all over the
> execution...
>
> --
>
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: NullPointerException in assertSubtreeScope

Posted by Emmanuel Lecharny <el...@gmail.com>.
Icky Dude wrote:
> Emmanuel,
>
>
> Yes, the NPE occurs on line ScopeEvaluator.java:94 because dn is null.
>  Yes node is non-null.
>
> I get the NPE when initializing a DefaultDirectoryService (in what I
> think is the simplest possible way).  I'm pretty sure I'm using right
> bootstrap jars because I just built them and installed them into my my
> M2_REPO):
>
> ...
> ./repository/org/apache/directory/server/apacheds-bootstrap-partition/1.5.2-SNAPSHOT/apacheds-bootstrap-partition-1.5.2-SNAPSHOT.jar
> ./repository/org/apache/directory/server/apacheds-schema-bootstrap/1.5.2-SNAPSHOT/apacheds-schema-bootstrap-1.5.2-SNAPSHOT.jar
> ...
>
> I can reproduce the problem using the following code (sorry there are
> some minor syntax problems having some problems cut-n-paste to my
> webmail) :
>
> --- begin code ---
>
> import org.apache.directory.server.core.DefaultDirectoryService;
> import org.apache.directory.server.ldap.LdapServer;
> import org.apache.directory.server.protocol.shared.SocketAcceptor;
> import org.apache.mina.common.ByteBuffer;
> import org.apache.mina.common.SimpleByteBufferAllocator;
> iimport javax.naming.NamingException;
> import java.io.IOException;
>
> class HelloWorldImaDirectory
> {
> 	private static int LDAP_PORT = 389;
> 	
> 	public static void main( String[] args)
> 	{
> 		DefaultDirectoryService directoryService = new DefaultDirectoryService();
> 		LdapServer ldapServer = new LdapServer();
> 			
> 		try
> 		{	
> 		directoryService.startup();
> 		ByteBuffer.setAllocator( new SimpleByteBufferAllocator() );
> 	        ByteBuffer.setUseDirectBuffers( false );
> 	        SocketAcceptor tcpAcceptor = new SocketAcceptor( null );	
> 	        ldapServer.setSocketAcceptor( tcpAcceptor );
> 	        ldapServer.setDirectoryService( directoryService );	
>   
You have to add this line here :
directoryService.startup();

Otherwise the schemas won't be loaded, leading to NPE all over the 
execution...

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



Re: NullPointerException in assertSubtreeScope

Posted by Icky Dude <ic...@gmail.com>.
Emmanuel,


Yes, the NPE occurs on line ScopeEvaluator.java:94 because dn is null.
 Yes node is non-null.

I get the NPE when initializing a DefaultDirectoryService (in what I
think is the simplest possible way).  I'm pretty sure I'm using right
bootstrap jars because I just built them and installed them into my my
M2_REPO):

...
./repository/org/apache/directory/server/apacheds-bootstrap-partition/1.5.2-SNAPSHOT/apacheds-bootstrap-partition-1.5.2-SNAPSHOT.jar
./repository/org/apache/directory/server/apacheds-schema-bootstrap/1.5.2-SNAPSHOT/apacheds-schema-bootstrap-1.5.2-SNAPSHOT.jar
...

I can reproduce the problem using the following code (sorry there are
some minor syntax problems having some problems cut-n-paste to my
webmail) :

--- begin code ---

import org.apache.directory.server.core.DefaultDirectoryService;
import org.apache.directory.server.ldap.LdapServer;
import org.apache.directory.server.protocol.shared.SocketAcceptor;
import org.apache.mina.common.ByteBuffer;
import org.apache.mina.common.SimpleByteBufferAllocator;
iimport javax.naming.NamingException;
import java.io.IOException;

class HelloWorldImaDirectory
{
	private static int LDAP_PORT = 389;
	
	public static void main( String[] args)
	{
		DefaultDirectoryService directoryService = new DefaultDirectoryService();
		LdapServer ldapServer = new LdapServer();
			
		try
		{	
		directoryService.startup();
		ByteBuffer.setAllocator( new SimpleByteBufferAllocator() );
	        ByteBuffer.setUseDirectBuffers( false );
	        SocketAcceptor tcpAcceptor = new SocketAcceptor( null );	
	        ldapServer.setSocketAcceptor( tcpAcceptor );
	        ldapServer.setDirectoryService( directoryService );	
	        ldapServer.setIpPort( LDAP_PORT );	
	        ldapServer.start();
		}
		catch( NamingException e)
		{
		System.out.println( e.toString() );
		}
		catch( IOException e )
		{
		System.out.println( e.toString() );
		}
	}	
}

--- end code ---

What I can't figure out is why I can't seem to get
org.apache.directory.server.ldap.LdapServerTest (which is has nearly
identical code in setUp()) to fail in the same way.  Pulling my hair
out now...

I've obviously looked at this too much.  I'm probably missing
something obvious...  I hope...


On Feb 11, 2008 4:52 PM, Emmanuel Lecharny <el...@gmail.com> wrote:
> Icky Dude wrote:
> > Can't figure this one out.  Too much magic going on...   Still seems
> > like we'd want to handle the possibility that  db.getEntryDn( id )
> > would return null on line ScopeEvaluator.java:91.
> >
> Obviously, node != null, otherwise, we would have got a NPE in line 92.
> The DN must be null.
>
> Is that something possible ? The Id is associated with an Entry, so it
> must have an associated DN too. Something is broken in the schema, it
> seems...
>
> Can you tell us more about the operation you are trying to run ?
>
>
> > Has anyone else seen the following (using "big bang")?
> >
> > .....
> > 67520 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultMatchingRuleRegistry
> >  - lookup with id '2.5.13.2' of matchingRule: <2.5.13.2,
> > caseIgnoreMatch>
> > 67520 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultNormalizerRegistry
> >  - registered normalizer with oid: 2.5.13.2
> > 70569 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 71567 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 88442 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 89011 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 89529 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 90041 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 90393 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 90599 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 90801 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 90997 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 91177 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 91427 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 91649 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 91857 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 92050 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 92417 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 169739 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 171585 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 260306 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 266369 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 267263 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 267938 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 268293 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 268488 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 268659 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 268829 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 269000 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 269174 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 269305 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 270509 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 270646 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 270811 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 270983 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 271147 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 271910 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 272053 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 272835 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 273524 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 274376 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 275085 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 275847 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 276657 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 277423 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 278428 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 279857 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 282543 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 283965 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 285314 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 286735 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 288090 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 289507 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 291960 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 292867 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 294271 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 295481 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 296612 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 297602 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 298642 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 299567 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 300119 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 300271 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 300445 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 300681 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 300850 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 301017 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 301257 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > 307257 [main] DEBUG
> > org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
> >  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> > <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> > Exception in thread "main" java.lang.NullPointerException
> >       at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.assertSubtreeScope(ScopeEvaluator.java:94)
> >       at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.evaluate(ScopeEvaluator.java:71)
> >       at org.apache.directory.server.core.partition.impl.btree.LeafEvaluator.evaluate(LeafEvaluator.java:192)
> >       at org.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:104)
> >       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator$2.assertCandidate(ExpressionEnumerator.java:262)
> >       at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.prefetch(IndexAssertionEnumeration.java:163)
> >       at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.<init>(IndexAssertionEnumeration.java:68)
> >       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumConj(ExpressionEnumerator.java:275)
> >       at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumerate(ExpressionEnumerator.java:148)
> >       at org.apache.directory.server.core.partition.impl.btree.DefaultSearchEngine.search(DefaultSearchEngine.java:127)
> >       at org.apache.directory.server.core.partition.impl.btree.BTreePartition.search(BTreePartition.java:322)
> >       at org.apache.directory.server.core.schema.SchemaPartitionDao.listAllNames(SchemaPartitionDao.java:730)
> >       at org.apache.directory.server.core.schema.PartitionSchemaLoader.loadEnabled(PartitionSchemaLoader.java:203)
> >       at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1389)
> >       at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:775)
> >
> >
>
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Re: NullPointerException in assertSubtreeScope

Posted by Emmanuel Lecharny <el...@gmail.com>.
Icky Dude wrote:
> Can't figure this one out.  Too much magic going on...   Still seems
> like we'd want to handle the possibility that  db.getEntryDn( id )
> would return null on line ScopeEvaluator.java:91.
>   
Obviously, node != null, otherwise, we would have got a NPE in line 92. 
The DN must be null.

Is that something possible ? The Id is associated with an Entry, so it 
must have an associated DN too. Something is broken in the schema, it 
seems...

Can you tell us more about the operation you are trying to run ?

> Has anyone else seen the following (using "big bang")?
>
> .....
> 67520 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultMatchingRuleRegistry
>  - lookup with id '2.5.13.2' of matchingRule: <2.5.13.2,
> caseIgnoreMatch>
> 67520 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultNormalizerRegistry
>  - registered normalizer with oid: 2.5.13.2
> 70569 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 71567 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 88442 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 89011 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 89529 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 90041 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 90393 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 90599 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 90801 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 90997 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 91177 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 91427 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 91649 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 91857 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 92050 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 92417 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 169739 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 171585 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 260306 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 266369 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 267263 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 267938 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 268293 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 268488 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 268659 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 268829 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 269000 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 269174 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 269305 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 270509 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 270646 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 270811 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 270983 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 271147 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 271910 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 272053 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 272835 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 273524 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 274376 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 275085 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 275847 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 276657 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 277423 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 278428 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 279857 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 282543 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 283965 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 285314 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 286735 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 288090 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 289507 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 291960 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 292867 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 294271 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 295481 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 296612 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 297602 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 298642 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 299567 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 300119 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 300271 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 300445 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 300681 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 300850 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 301017 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 301257 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> 307257 [main] DEBUG
> org.apache.directory.server.schema.registries.DefaultAttributeTypeRegistry
>  - lookup with id1.3.6.1.4.1.18060.0.4.0.2.2' of attributeType:
> <1.3.6.1.4.1.18060.0.4.0.2.2, m-name>
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.assertSubtreeScope(ScopeEvaluator.java:94)
> 	at org.apache.directory.server.core.partition.impl.btree.ScopeEvaluator.evaluate(ScopeEvaluator.java:71)
> 	at org.apache.directory.server.core.partition.impl.btree.LeafEvaluator.evaluate(LeafEvaluator.java:192)
> 	at org.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator.evaluate(ExpressionEvaluator.java:104)
> 	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator$2.assertCandidate(ExpressionEnumerator.java:262)
> 	at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.prefetch(IndexAssertionEnumeration.java:163)
> 	at org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration.<init>(IndexAssertionEnumeration.java:68)
> 	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumConj(ExpressionEnumerator.java:275)
> 	at org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator.enumerate(ExpressionEnumerator.java:148)
> 	at org.apache.directory.server.core.partition.impl.btree.DefaultSearchEngine.search(DefaultSearchEngine.java:127)
> 	at org.apache.directory.server.core.partition.impl.btree.BTreePartition.search(BTreePartition.java:322)
> 	at org.apache.directory.server.core.schema.SchemaPartitionDao.listAllNames(SchemaPartitionDao.java:730)
> 	at org.apache.directory.server.core.schema.PartitionSchemaLoader.loadEnabled(PartitionSchemaLoader.java:203)
> 	at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1389)
> 	at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:775)
>
>   


-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org