directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: NullPointerException in assertSubtreeScope
Date Mon, 11 Feb 2008 23:52:23 GMT
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



Mime
View raw message