Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 8992 invoked from network); 24 Jun 2006 13:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Jun 2006 13:50:01 -0000 Received: (qmail 94267 invoked by uid 500); 24 Jun 2006 13:50:01 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 94020 invoked by uid 500); 24 Jun 2006 13:50:00 -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 94004 invoked by uid 99); 24 Jun 2006 13:50:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2006 06:50:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2006 06:49:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 315CE7141E9 for ; Sat, 24 Jun 2006 13:48:30 +0000 (GMT) Message-ID: <1021467.1151156910184.JavaMail.jira@brutus> Date: Sat, 24 Jun 2006 13:48:30 +0000 (GMT+00:00) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSERVER-216) Race condition in DNParser In-Reply-To: <1846309443.1130843875215.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRSERVER-216?page=all ] Emmanuel Lecharny closed DIRSERVER-216: --------------------------------------- We don't use anymore the antlr grammar to parse DNs > Race condition in DNParser > -------------------------- > > Key: DIRSERVER-216 > URL: http://issues.apache.org/jira/browse/DIRSERVER-216 > Project: Directory ApacheDS > Type: Bug > Components: ldap > Versions: pre-1.0 > Reporter: Emmanuel Lecharny > Priority: Blocker > Fix For: pre-1.0 > > I got an exception while parsing a DN under heavy load. It seems that theDNParser is not thread-safe > Here are the traces (some logs have been added) : > 2354> --AuthenticationService -- [ERROR] Authentication failed : null > 4912> --SimpleAuthenticator -- [ERROR] Error : first argument was not a distinguished name : ou=groups,ou=system/Parser failure on name: > ou=groups,ou=system > Antlr exception trace: > line 1:1: unexpected token: ou > at org.apache.ldap.common.name.antlrNameParser.attributeTypeAndValue(antlrNameParser.java:181) > at org.apache.ldap.common.name.antlrNameParser.nameComponent(antlrNameParser.java:120) > at org.apache.ldap.common.name.antlrNameParser.name(antlrNameParser.java:69) > at org.apache.ldap.common.name.DnParser.parse(DnParser.java:187) > at org.apache.ldap.common.name.DnParser.parse(DnParser.java:228) > at org.apache.ldap.common.schema.DnComparator.compare(DnComparator.java:100) > at org.apache.ldap.server.schema.SerializableComparator.compare(SerializableComparator.java:95) > at jdbm.btree.BPage.compare(BPage.java:841) > at jdbm.btree.BPage.findChildren(BPage.java:682) > at jdbm.btree.BPage.find(BPage.java:269) > at jdbm.btree.BTree.find(BTree.java:407) > at org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.getRaw(JdbmTable.java:1108) > at org.apache.ldap.server.partition.impl.btree.jdbm.JdbmTable.get(JdbmTable.java:288) > at org.apache.ldap.server.partition.impl.btree.jdbm.JdbmIndex.forwardLookup(JdbmIndex.java:208) > at org.apache.ldap.server.partition.impl.btree.jdbm.JdbmDirectoryPartition.getEntryId(JdbmDirectoryPartition.java:512) > at org.apache.ldap.server.partition.impl.btree.BTreeDirectoryPartition.lookup(BTreeDirectoryPartition.java:264) > at org.apache.ldap.server.partition.impl.btree.BTreeDirectoryPartition.lookup(BTreeDirectoryPartition.java:275) > at org.apache.ldap.server.partition.DefaultDirectoryPartitionNexus.lookup(DefaultDirectoryPartitionNexus.java:710) > at org.apache.ldap.server.authn.SimpleAuthenticator.authenticate(SimpleAuthenticator.java:103) > at org.apache.ldap.server.authn.AuthenticationService.authenticate(AuthenticationService.java:372) > at org.apache.ldap.server.authn.AuthenticationService.hasEntry(AuthenticationService.java:216) > at org.apache.ldap.server.interceptor.InterceptorChain$2.hasEntry(InterceptorChain.java:1232) > at org.apache.ldap.server.normalization.NormalizationService.hasEntry(NormalizationService.java:175) > at org.apache.ldap.server.interceptor.InterceptorChain.hasEntry(InterceptorChain.java:809) > at org.apache.ldap.server.partition.DirectoryPartitionNexusProxy.hasEntry(DirectoryPartitionNexusProxy.java:449) > at org.apache.ldap.server.partition.DirectoryPartitionNexusProxy.hasEntry(DirectoryPartitionNexusProxy.java:438) > at org.apache.ldap.server.jndi.ServerContext.(ServerContext.java:139) > at org.apache.ldap.server.jndi.ServerDirContext.(ServerDirContext.java:78) > at org.apache.ldap.server.jndi.ServerLdapContext.(ServerLdapContext.java:58) > at org.apache.ldap.server.DefaultDirectoryService.getJndiContext(DefaultDirectoryService.java:173) > at org.apache.ldap.server.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:121) > at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) > at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > at javax.naming.InitialContext.init(InitialContext.java:223) > at javax.naming.InitialContext.(InitialContext.java:197) > at javax.naming.directory.InitialDirContext.(InitialDirContext.java:82) > at org.apache.ldap.server.ServerMain.main(ServerMain.java:96) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira