You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2007/06/02 15:39:15 UTC
[jira] Resolved: (DIRSERVER-952) NPE when using createSubcontext()
with embedded server
[ https://issues.apache.org/jira/browse/DIRSERVER-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRSERVER-952.
-----------------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.0.2)
1.0.3
A patch has been applied :
http://svn.apache.org/viewvc?view=rev&rev=543737
http://svn.apache.org/viewvc?view=rev&rev=543738
A test check that the server works well even if injecting BasicAttributes() :
http://svn.apache.org/viewvc?view=rev&rev=543738
> NPE when using createSubcontext() with embedded server
> ------------------------------------------------------
>
> Key: DIRSERVER-952
> URL: https://issues.apache.org/jira/browse/DIRSERVER-952
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: core
> Affects Versions: 1.0.2
> Environment: Windows 2003, JDK 1.5
> Reporter: Simon Temple
> Assignee: Emmanuel Lecharny
> Fix For: 1.0.3
>
>
> 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
> at org.apache.directory.shared.ldap.util.AttributeUtils.containsValueCaseIgnore(AttributeUtils.java:309)
> at org.apache.directory.server.core.schema.SchemaService.assertAllAttributesAllowed(SchemaService.java:1806)
> at org.apache.directory.server.core.schema.SchemaService.check(SchemaService.java:1624)
> at org.apache.directory.server.core.schema.SchemaService.add(SchemaService.java:1636)
> at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1181)
> ... 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.