Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 41784 invoked from network); 2 Jun 2007 17:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2007 17:23:37 -0000 Received: (qmail 22656 invoked by uid 500); 2 Jun 2007 17:23:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22617 invoked by uid 500); 2 Jun 2007 17:23:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 22606 invoked by uid 99); 2 Jun 2007 17:23:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 10:23:40 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2007 10:23:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E494071419E for ; Sat, 2 Jun 2007 10:23:15 -0700 (PDT) Message-ID: <22398697.1180804995932.JavaMail.jira@brutus> Date: Sat, 2 Jun 2007 10:23:15 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-952) NPE when using createSubcontext() with embedded server In-Reply-To: <6468308.1180703235741.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500955 ] Emmanuel Lecharny commented on DIRSERVER-952: --------------------------------------------- The problem was also existing in 1.5. Fixed : http://svn.apache.org/viewvc?view=rev&rev=543762 http://svn.apache.org/viewvc?view=rev&rev=543763 http://svn.apache.org/viewvc?view=rev&rev=543764 > 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.