From users-return-4196-apmail-directory-users-archive=directory.apache.org@directory.apache.org Tue Oct 18 15:14:36 2011 Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03AEA7A4F for ; Tue, 18 Oct 2011 15:14:36 +0000 (UTC) Received: (qmail 83832 invoked by uid 500); 18 Oct 2011 15:14:35 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 83812 invoked by uid 500); 18 Oct 2011 15:14:35 -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 83804 invoked by uid 99); 18 Oct 2011 15:14:35 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 15:14:35 +0000 Received: from localhost (HELO emmanuel-lecharnys-MacBook-Pro.local) (127.0.0.1) (smtp-auth username elecharny, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 15:14:35 +0000 Message-ID: <4E9D97D9.2070109@apache.org> Date: Tue, 18 Oct 2011 17:14:33 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org Organization: The Apache Software Foundation User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: Upgrading to apacheds-service-2.0.0-M3.jar - ClassNotFoundException References: <1318950093.84282.YahooMailClassic@web130212.mail.mud.yahoo.com> In-Reply-To: <1318950093.84282.YahooMailClassic@web130212.mail.mud.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/18/11 5:01 PM, Harakiri wrote: > > --- On Sat, 10/15/11, Emmanuel Lécharny wrote: > > >>> I think you dont understand - your own code is calling >> IntegerOrderingComparator but it doesnt exist! i dont call >> it - i only call loadAllEnabled - the jar references a class >> which does not exist in the jar! >> Oops, sorry, yes, I misunderstood... >> >> However, I did a grep -R 'IntegerOrderingComparator' . on >> the server >> code (rev 2.0.0-M3) and it brings back nothing, which means >> this method >> is not present in the code base. >> >> Can you do the same thing on your computer, and give us the >> result ? I'd >> like to know which ldif file contain this class name. IMO, >> as Alex said, >> it's very likely that you are still using an old ldif file >> which was >> coming from an old version. > Alright - i did not know that the auto generated schema from a previous version is doing some reflection and needs to be deleted - after that and some more porting i got my custom partition running. > > However - the whole point of this exercise was to be finally able to use binary attributes while answering search requests - according to the JIRA this bug should be fixed: > > https://issues.apache.org/jira/browse/DIRSERVER-1198 > > When i try to set this attribute however i get an exception: > > Error while adding values into the 'userCertificate;binary' attribute. Error : ERR_04269 ATTRIBUTE_TYPE for OID usercertificate;binary does not exist! > java.lang.IllegalArgumentException: ERR_04464 Error while adding values into the 'userCertificate;binary' attribute. Error : ERR_04269 ATTRIBUTE_TYPE for O > ID usercertificate;binary does not exist! at org.apache.directory.shared.ldap.model.entry.DefaultEntry.put(DefaultEntry.java:1398) > > code used: > > Entry serverEntry = new DefaultEntry(schemaManager, dn); > serverEntry.put(SchemaConstants.OBJECT_CLASS_AT, > SchemaConstants.INET_ORG_PERSON_OC); > serverEntry.put("name", cn); > ... > > serverEntry.put("userCertificate;binary", byte..); > > > I gathered - that i somehow must add the oid for userCertificate;binary but im unsure how to do that... This is just readonly inmemory custom partition which should return dynamic data depending on the search request. Can you test the same code without the ;binary ? serverEntry.put("userCertificate", byte..); I'm sure that we should support the ';binary' in entries, and I'm positive that is a bug. Can you please fill a JIRA, so that we don't forget to fix it ? Many thanks ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com