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 562CC10B86 for ; Tue, 17 Mar 2015 23:57:41 +0000 (UTC) Received: (qmail 96313 invoked by uid 500); 17 Mar 2015 23:57:31 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 96263 invoked by uid 500); 17 Mar 2015 23:57:31 -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 96248 invoked by uid 99); 17 Mar 2015 23:57:31 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 23:57:31 +0000 Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 6976A1A02C0 for ; Tue, 17 Mar 2015 23:57:31 +0000 (UTC) Received: by iecvj10 with SMTP id vj10so25771366iec.0 for ; Tue, 17 Mar 2015 16:57:30 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.33.136 with SMTP id h130mr7676954ioh.54.1426636650679; Tue, 17 Mar 2015 16:57:30 -0700 (PDT) Received: by 10.36.22.20 with HTTP; Tue, 17 Mar 2015 16:57:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 18 Mar 2015 07:57:30 +0800 Message-ID: Subject: Re: Null Pointer Exception on replication 2.0.0-M20 java{7,8} From: Kiran Ayyagari To: "users@directory.apache.org" Content-Type: multipart/alternative; boundary=001a1140f960c9b735051184ba5a --001a1140f960c9b735051184ba5a Content-Type: text/plain; charset=UTF-8 On Wed, Mar 18, 2015 at 2:09 AM, David Cheney wrote: > It seems to be a problem with my OU tree that I'm trying to replicate. I > can successfully replicate a new tree with a different OU DN and all of my > objects copied into it (users, groups), but when I modify that OU back to > the origninal name replication fails in the same way. > looks like a broken index issue to me can you delete all index files* and restart the server and see * just retain master.db and master.log files and delete the rest under the selected partition folder e.g for ou=system the directory will be /default/partitions/system > > On Mon, Mar 16, 2015 at 11:03 AM, David Cheney > wrote: > > > Hi, > > > > I've been trying to set up master/slave replication with the latest > > release of Directory Server. > > I'm using Directory Studio to configure replication by adding a consumer > > on the slave using the admin credentials for the master. > > > > From the logs it appears that the slave is contacting the master and > > attempting to replicate, but the master throws a null pointer exception > > while attempting to produce a result set: > > > > [03:09:08] ERROR [org.apache.directory.server.PROVIDER_LOG] - Failed to > >> handle the syncrepl request > >> java.lang.NullPointerException > >> at > >> > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.sendSearchResultEntry(SyncReplRequestHandler.java:754) > >> at > >> > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.readResults(SyncReplRequestHandler.java:722) > >> at > >> > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.doSimpleSearch(SyncReplRequestHandler.java:671) > >> at > >> > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.doInitialRefresh(SyncReplRequestHandler.java:562) > >> at > >> > org.apache.directory.server.ldap.replication.provider.SyncReplRequestHandler.handleSyncRequest(SyncReplRequestHandler.java:311) > >> at > >> > org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handleReplication(SearchRequestHandler.java:240) > >> at > >> > org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:200) > >> at > >> > org.apache.directory.server.ldap.handlers.request.SearchRequestHandler.handle(SearchRequestHandler.java:93) > >> at > >> > org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207) > >> at > >> > org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56) > >> at > >> > org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:221) > >> at > >> > org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:217) > >> at > >> > org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854) > >> at > >> > org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542) > >> at > >> > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48) > >> at > >> > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943) > >> at > >> > org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74) > >> at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) > >> at > >> > org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:475) > >> at > >> > org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:429) > >> at java.lang.Thread.run(Thread.java:745) > > > > > > I initially was running on java8, then downgraded to java7 when I saw > that > > there were a bunch of open issues regarding java8. I continue to get the > > same error every time the slave tries to connect. > > > > Any help would be appreciated. > > > > Thanks, > > > -- Kiran Ayyagari http://keydap.com --001a1140f960c9b735051184ba5a--