Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 48831 invoked from network); 15 Dec 2009 18:18:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 18:18:34 -0000 Received: (qmail 37453 invoked by uid 500); 15 Dec 2009 18:18:34 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 37394 invoked by uid 500); 15 Dec 2009 18:18:33 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 37384 invoked by uid 99); 15 Dec 2009 18:18:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 18:18:33 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [204.80.56.9] (HELO nyslrs.osc.state.ny.us) (204.80.56.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 18:18:31 +0000 In-Reply-To: <4B27D1AC.9010304@gmail.com> X-Disclaimed: 33742 To: users@directory.apache.org Subject: Re: APACHE DS 1.5.5 Embedded - Updating multi values attributes with nulls MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 Message-ID: From: RNakka@osc.state.ny.us Date: Tue, 15 Dec 2009 13:18:16 -0500 X-MIMETrack: Serialize by Router on SMTP/IRM/NYSLRS(Release 7.0.2FP2|May 14, 2007) at 12/15/2009 01:18:30 PM, Serialize complete at 12/15/2009 01:18:30 PM Content-Type: multipart/alternative; boundary="=_alternative 006489938525768D_=" --=_alternative 006489938525768D_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi Emmanuel, The Context is actually initialised, but here I depicted just for=20 illustration purposes. We have a context initialised by Spring and we use the initialised context. email2 is a multi values User attribute which we use to store secondary=20 email ids for a user=20 Regards=20 Ramesh Nakka Websphere Portal Consultant Mobile# 1-248 835 9758 Office# 1-518-408-4457 rnakka@osc.state.ny.us rameshbabu=5Fnl@yahoo.com Emmanuel Lecharny =20 12/15/2009 01:13 PM Please respond to users@directory.apache.org To users@directory.apache.org cc Subject Re: APACHE DS 1.5.5 Embedded - Updating multi values attributes with nulls RNakka@osc.state.ny.us a =E9crit : > Hi, >=20 Hi, > We are using APACHE DS 1.5.5 in embedded mode for testng tests. During=20 > some of our tests , we are trying to update a User's multi valued=20 > attributes > > If we pass not null values, then the attributes are updated with out any = > problem.But if we pass a null value or an empty list we get a null=20 pointer=20 > exception and the attribute is not updated. Please find the exception=20 > trace attached below. > > This was working in APACHE DS 1.5.4 ( NOT embedded version) server > > We are using Spring LDAP 1.3 API to connect and perform operations on=20 the=20 > embedded APACHE DS from testng.=20 > > We tried two ways to update the multi valued attribute (email2) with a=20 > null. Our goal is to not have any values in the multi valued attribute=20 > (email2) > > 1. Trying to remove the attribute from user in APACHE DS, as its desired = > to be null > > DirContextOperations context; > context.removeAttributeValue("email2", oldValuesArray); >=20 The context is not initialized to anything... Is it normal ? Also what is the email2 definition ? --=20 Regards, Cordialement, Emmanuel L=E9charny www.nextury.com Notice: This communication, including any attachments, is intended solely=20 for the use of the individual or entity to which it is addressed. This=20 communication may contain information that is protected from disclosure=20 under State and/or Federal law. Please notify the sender immediately if=20 you have received this communication in error and delete this email from=20 your system. If you are not the intended recipient, you are requested not=20 to disclose, copy, distribute or take any action in reliance on the=20 contents of this information. --=_alternative 006489938525768D_=--