directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Temple (JIRA)" <>
Subject [jira] Created: (DIRSERVER-952) NPE when using createSubcontext() with embedded server
Date Fri, 01 Jun 2007 13:07:15 GMT
NPE when using createSubcontext() with embedded server

                 Key: DIRSERVER-952
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
    Affects Versions: 1.0.2
         Environment: Windows 2003, JDK 1.5
            Reporter: Simon Temple
             Fix For: 1.0.2

We've found a problem with DS 1.0.2.  This problem only exists when running with DS embedded
in the same VM.
Running the same code remotely (outside of DS VM) works fine.
Example code:
            Attributes attrs = new BasicAttributes();
            attrs.put("objectClass", "organizationalUnit");
            attrs.put("description", "Test OU");
            DirContext subContext = context.createSubcontext("ou=Test", attrs);
Exception from createSubcontext():
Caused by: java.lang.NullPointerException
 ... 130 more
If you change the BasicAttributes() constructor call to:
            Attributes attrs = new BasicAttributes( true );

it works fine.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message