Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 35651 invoked from network); 2 Apr 2008 23:04:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 23:04:57 -0000 Received: (qmail 60623 invoked by uid 500); 2 Apr 2008 23:04:56 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 60581 invoked by uid 500); 2 Apr 2008 23:04:55 -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 60569 invoked by uid 99); 2 Apr 2008 23:04:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 16:04:55 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 23:04:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D810A234C0C6 for ; Wed, 2 Apr 2008 16:02:24 -0700 (PDT) Message-ID: <1706748816.1207177344883.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 16:02:24 -0700 (PDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Resolved: (DIRSERVER-947) Add an Ole Exception In-Reply-To: <17429985.1180213156531.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-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny resolved DIRSERVER-947. ----------------------------------------- Resolution: Won't Fix Another JIRA should be created asking for better LOG messages. > Add an Ole Exception > -------------------- > > Key: DIRSERVER-947 > URL: https://issues.apache.org/jira/browse/DIRSERVER-947 > Project: Directory ApacheDS > Issue Type: Improvement > Affects Versions: 1.5.0 > Environment: FC6 > Reporter: Ole Ersoy > Priority: Minor > Fix For: 1.5.2 > > > I cleaned up all my tests and made everything perfect, birds singing, > children laughing, etc. > Just to make sure everything is tight, I run the tests > one more time. > I get this exception: > javax.naming.NamingException: [LDAP: error code 80 - failed to add entry m-oid=1.3.6.1.4.1.18060.4.55101545.5251491.1569756.3515752.5985152.5551015.5055525.50101501.052,ou=attributeTypes,cn=das,ou=schema: Unexpected exception.]; remaining name 'm-oid=1.3.6.1.4.1.18060.4.55101545.5251491.1569756.3515752.5985152.5551015.5055525.50101501.052' > at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3049) > Yeah - It's definitely unexpected. > What's up with thiiis? > Turns out I left one of methods like this: > objectClassAttribute.add( META_TOP ); > > >>> basicAttributes = new BasicAttributes(); > basicAttributes.put(objectClassAttribute); > >>> basicAttributes = new BasicAttributes(); > basicAttributes.put( M_OBSOLETE, LDAP_FALSE ); > .... > blah blah blah > See it? I restarted my basic attributes (And put blah blah blah right in the code). > Can we have a better exception being thrown for this? > I was thinking an Ole Exception with description "Ole, or someone pretending to be Ole, messed the code up biggg time! > Go fix the attributes then talk to me". > Cheers, > - Ole -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.