From dev-return-13367-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Aug 31 09:54:14 2006 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 70913 invoked from network); 31 Aug 2006 09:54:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 09:54:08 -0000 Received: (qmail 47924 invoked by uid 500); 31 Aug 2006 09:54:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 47896 invoked by uid 500); 31 Aug 2006 09:54:07 -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 47878 invoked by uid 99); 31 Aug 2006 09:54:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 02:54:07 -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; Thu, 31 Aug 2006 02:54:06 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B4A43410023 for ; Thu, 31 Aug 2006 09:50:24 +0000 (GMT) Message-ID: <670025.1157017824736.JavaMail.jira@brutus> Date: Thu, 31 Aug 2006 02:50:24 -0700 (PDT) From: "Trustin Lee (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-586) Reliable hang of DS during query In-Reply-To: <1541947125.1140628367449.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-586?page=3Dcomments#ac= tion_12431848 ]=20 =20 Trustin Lee commented on DIRSERVER-586: --------------------------------------- I loaded the attached bugreport project in my eclipse workbench and ran the= tests including TestHang.java. The tests don't hang but they prints out= some errors: INFO 2006-08-31 18:49:56,533 [ldap.Mapping; main]: LDAP mapping initialize= d DEBUG 2006-08-31 18:49:56,536 [ldap.Mapping; main]: load(): type=3Dclass co= m.levigo.tcat.common.model.OrganizationalUnit, ctx=3Djavax.naming.directory= .InitialDirContext@2c1e6b, dn=3Dou=3Dappgroups DEBUG 2006-08-31 18:49:56,537 [ldap.TypeMapping; main]: loading object of c= lass com.levigo.tcat.common.model.OrganizationalUnit for dn=3Dou=3Dappgroup= s DEBUG 2006-08-31 18:49:56,537 [ldap.Mapping; main]: create(): create=3Dclas= s com.levigo.tcat.common.model.OrganizationalUnit DEBUG 2006-08-31 18:49:56,538 [ldap.Mapping; main]: save(): object=3Dcom.le= vigo.tcat.common.model.OrganizationalUnit@811c88, ctx=3Djavax.naming.direct= ory.InitialDirContext@2c1e6b, baseDN=3D DEBUG 2006-08-31 18:49:56,538 [ldap.AttributeMapping; main]: dehydrating ob= ject of type class com.levigo.tcat.common.model.OrganizationalUnit DEBUG 2006-08-31 18:49:56,539 [ldap.AttributeMapping; main]: dehydrating ob= ject of type class com.levigo.tcat.common.model.OrganizationalUnit DEBUG 2006-08-31 18:49:56,543 [ldap.Mapping; main]: list(): type=3Dclass co= m.levigo.tcat.common.model.Client, ctx=3Dnull, filter=3Dnull, searchBase=3D= null DEBUG 2006-08-31 18:49:56,546 [ldap.TypeMapping; main]: listing objects of = class com.levigo.tcat.common.model.Client for base=3Dou=3Dclients, filter= =3Dnull com.levigo.tcat.common.directory.DirectoryException: Can't save object =09at com.levigo.tcat.common.directory.ldap.TypeMapping.save(TypeMapping.ja= va:354) =09at com.levigo.tcat.common.directory.ldap.Mapping.save(Mapping.java:173) =09at com.levigo.tcat.common.directory.ldap.LDAPDirectory.setupBaseStructur= e(LDAPDirectory.java:116) =09at com.levigo.tcat.common.directory.ldap.LDAPDirectory.(LDAPDirect= ory.java:88) =09at LDAPDirectoryTest.getDirectory(LDAPDirectoryTest.java:34) =09at LDAPDirectoryTest.setUp(LDAPDirectoryTest.java:42) =09at junit.framework.TestCase.runBare(TestCase.java:125) =09at junit.framework.TestResult$1.protect(TestResult.java:106) =09at junit.framework.TestResult.runProtected(TestResult.java:124) =09at junit.framework.TestResult.run(TestResult.java:109) =09at junit.framework.TestCase.run(TestCase.java:118) =09at junit.framework.TestSuite.runTest(TestSuite.java:208) =09at junit.framework.TestSuite.run(TestSuite.java:203) =09at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(= JUnit3TestReference.java:128) =09at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution= .java:38) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remot= eTestRunner.java:460) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remot= eTestRunner.java:673) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTest= Runner.java:386) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTes= tRunner.java:196) Caused by: com.levigo.tcat.common.directory.DirectoryException: Can't marsh= al instance of class com.levigo.tcat.common.model.OrganizationalUnit =09at com.levigo.tcat.common.directory.ldap.TypeMapping.saveNewObject(TypeM= apping.java:393) =09at com.levigo.tcat.common.directory.ldap.TypeMapping.save(TypeMapping.ja= va:352) =09... 18 more Caused by: javax.naming.OperationNotSupportedException: [LDAP: error code 5= 3 - no global superior knowledge]; remaining name 'ou=3Dappgroups' =09at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3058) =09at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931) =09at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737) =09at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:770) =09at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(Compo= nentDirContext.java:319) =09at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(= PartialCompositeDirContext.java:248) =09at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirC= ontext.java:183) =09at com.levigo.tcat.common.directory.ldap.TypeMapping.saveNewObject(TypeM= apping.java:374) =09... 19 more Any clue? > Reliable hang of DS during query > -------------------------------- > > Key: DIRSERVER-586 > URL: http://issues.apache.org/jira/browse/DIRSERVER-586 > Project: Directory ApacheDS > Issue Type: Bug > Environment: DS 0.9.3, Windows, JDK 1.5 > Reporter: J=C3=B6rg Henne > Assigned To: Emmanuel Lecharny > Attachments: bugreport.zip, TestHang.java > > > When running the attached test, the directory server hangs after executin= g a slew of operations when searching for objects. > First of all, some background on the test case: > The attached test case (in the form of an exported eclipse project) is, u= nfortunately, based on quite a few classes. They are part of a project I am= currently working on: an object to ldap mapper with a similar approach as = castor for XML or hibernate for RDBMS, albeit a lot more modest in complexi= ty (I'll, hopefully, one day be able to open-source it - for now it is stil= l much to immature). I have supplied all that stuff mainly for your referen= ce. > To run the test case, please make sure that the constant "URL" in LDAPDir= ectoryTest points to a valid directory. The URL the context points to must = exist. It will, however, subsequently create lots of nodes below it. > The hang seems to be related to some kind of deadlock, since it doesn't o= ccur once the whole test is run via a single context only. To achieve this,= set the constant "ONE_CONTEXT" to true (each LDAPDirectory uses its own se= t of contexts). > If you have any problems running the test, please don't hesitate to conta= ct me. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira