directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [jira] Updated: (DIRSERVER-964) Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");
Date Sun, 10 Jun 2007 23:53:28 GMT
Hmmm.  I updated my test with this:

========================================
         Attributes attributes                    =
             new BasicAttributes();
         Attribute attribute                        =
             new BasicAttribute(
                     "objectClass",
                     "top");
         attribute.add("subentry");
         

         directoryContextL0                       =
              (DirContext)
              testPartitionContext.
              createSubcontext(l0RDN, attributes);

         directoryContextL1                       =
              (DirContext)
              directoryContextL0.
              createSubcontext(l1RDN, attributes);
========================================

I think the subentry ObjectClass is part of the RFC that allows this 
ctx.createSubcontext("cn=test")....When I try running the test above I 
get this:

org.apache.directory.server.core.interceptor.InterceptorException: 
Unexpected exception. [Root exception is java.lang.NullPointerException]
    at 
org.apache.directory.server.core.interceptor.InterceptorChain.throwInterceptorException(InterceptorChain.java:1510)
    at 
org.apache.directory.server.core.interceptor.InterceptorChain.access$700(InterceptorChain.java:52)
    at 
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1189)



Emmanuel Lecharny (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/DIRSERVER-964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
>
> Emmanuel Lecharny updated DIRSERVER-964:
> ----------------------------------------
>
>     Attachment: SelfContainedBindingTest.java
>
> Attached a test which works well.
>
> I there still a pb ?
>
>   
>> Binding does not return DirContext Object's when creating by doing ctx.createSubcontext("cn=test");
>> ---------------------------------------------------------------------------------------------------
>>
>>                 Key: DIRSERVER-964
>>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-964
>>             Project: Directory ApacheDS
>>          Issue Type: Bug
>>            Reporter: Ole Ersoy
>>             Fix For: pre-2.0
>>
>>         Attachments: SelfContainedBindingTest.java, SelfContainedBindingTest.java
>>
>>
>> See test.  I expect assertNull(binding.getObject()); to fail, but it passes.  If
I manually attempt to lookup the DirContext that the same DirContext instance, I get a real
directory context.
>>     
>
>   


Mime
View raw message