Return-Path: X-Original-To: apmail-zest-dev-archive@minotaur.apache.org Delivered-To: apmail-zest-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8B3B17ACF for ; Tue, 9 Jun 2015 12:45:07 +0000 (UTC) Received: (qmail 3769 invoked by uid 500); 9 Jun 2015 12:45:07 -0000 Delivered-To: apmail-zest-dev-archive@zest.apache.org Received: (qmail 3732 invoked by uid 500); 9 Jun 2015 12:45:07 -0000 Mailing-List: contact dev-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list dev@zest.apache.org Received: (qmail 3707 invoked by uid 99); 9 Jun 2015 12:45:07 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jun 2015 12:45:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EFD61C095F for ; Tue, 9 Jun 2015 12:45:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.981 X-Spam-Level: ** X-Spam-Status: No, score=2.981 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2XVAriM5geTp for ; Tue, 9 Jun 2015 12:45:01 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 03D912030F for ; Tue, 9 Jun 2015 12:45:01 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so10862312igb.1 for ; Tue, 09 Jun 2015 05:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=q9gU7ojLlzkkyd1eFfHvzjszhmo3rLFp8cT7xPKdvKQ=; b=SejqxB4CgdYEQLYHwCpCv8sc2qZ080IAX+vfX1SM8crpgAETpd2PzRGOa0ZVkFYPCE d5OJ/k+EQTY5Lz5my9Hj4QsXYWsL53BT9xiOt3tjLAqXSC17uB0VdO0vF5Owo0t4G5bs jsyFlWHgEADSGsY5/y2rLYtM8bXmG+pKHQK0xQkucZUpUBX1GizfByhRrgMwEWtYb+6Z rQ7Q8+w7talw+ELVwA8ggf5hwIZvpraiqaWCFLdA+jNqikW8gM+W5LGJCHJNm2v46nMi 88S6ZyCBaNGX8jfFkEgP+VH//rYbElmAdnHsXYO5Mv6Vofc/xLYgsb7X5Yoe+y/lwWcF oAjQ== X-Received: by 10.107.163.146 with SMTP id m140mr26994312ioe.85.1433853899984; Tue, 09 Jun 2015 05:44:59 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.36.98.18 with HTTP; Tue, 9 Jun 2015 05:44:39 -0700 (PDT) In-Reply-To: References: From: Niclas Hedhman Date: Tue, 9 Jun 2015 20:44:39 +0800 X-Google-Sender-Auth: yQYdLcDcDt7VsoKHsQ1ZOXOzyYY Message-ID: Subject: Re: [Elastic Search] exception on startup To: dev Content-Type: multipart/alternative; boundary=001a113bb0d85e57170518152052 --001a113bb0d85e57170518152052 Content-Type: text/plain; charset=UTF-8 Yeah, and that is why I was putting it in a Config MODULE inside Infra Layer... But Wait!! There is MORE !!! a. ES Config is in the Config Module b. On manipulation of that Configuration Entity Composite, the StateNotificationConcern will locate all visible StateChangeListeners and call them. c. The ElasticSearchIndexer implements this and must either reside inside the Storage Module, with Visibility.module, or if it has its own Indexing Module (my case), the StateNotication will see it... BAM. So!! Either Indexer need to be Visibility.module and inside the Storage Module, OR the Configuration needs to be in its own Layer below. On Tue, Jun 9, 2015 at 8:18 PM, Jiri Jetmar wrote: > hmm.. I think it was because of the In-Memory EntityStore required for the > configuration.. Thats the reason for the dedicated config module.. This > chicken-egg issue.. at least when I remember correctly.. > > > > 2015-06-09 14:13 GMT+02:00 Niclas Hedhman : > > > Ok, the reason is "found"... The most typical of problems... > > > > The Configuration object of the ES extension triggers the > > StateChangeNotification back to the ElasticSearch extension, which isn't > > ready to process it yet. > > > > Was this the reason why we always need a Configuration Layer, and a > Config > > Module in Infra can't be made work? > > > > Cheers > > > > On Tue, Jun 9, 2015 at 8:01 PM, Niclas Hedhman > wrote: > > > > > That second one is probably a consequence of the first problem, as the > > > client=null at passivation... > > > > > > On Tue, Jun 9, 2015 at 7:55 PM, Niclas Hedhman > > wrote: > > > > > >> > > >> Well, how can there be an existing Index the first time it is run? > > >> Remember, I am not using ES directly, only that the ES extension > > attaches > > >> itself to the EntityStateListener notification... > > >> > > >> Just now, I go another problem, so I suspect that I am missing some > > >> crucial setup/assembly part. Perhaps I just change to the RDF indexer > > >> instead... > > >> > > >> > > >> Caused by: java.lang.NullPointerException > > >> at > > >> > > > org.qi4j.index.elasticsearch.ElasticSearchIndexer$Mixin.notifyChanges(ElasticSearchIndexer.java:105) > > >> at > > >> > > > org.qi4j.spi.entitystore.StateChangeNotificationConcern$1.commit(StateChangeNotificationConcern.java:44) > > >> at > > >> > > > org.qi4j.spi.entitystore.ConcurrentModificationCheckConcern$ConcurrentCheckingEntityStoreUnitOfWork$1.commit(ConcurrentModificationCheckConcern.java:117) > > >> at > > >> > > > org.qi4j.api.configuration.Configuration$ConfigurationMixin.initializeConfigurationInstance(Configuration.java:281) > > >> > > >> > > >> On Tue, Jun 9, 2015 at 7:42 PM, Jiri Jetmar > > > >> wrote: > > >> > > >>> Just a guess - it looks like that you are trying to create a index > > with a > > >>> name that is already existing. > > >>> > > >>> Possible solutions are : > > >>> > > >>> - check if the index is already created > > >>> - delete the file-based storage (this approach is used in the unit > > tests) > > >>> - Use each time a new name > > >>> > > >>> What is the context of this "myapp" ? > > >>> > > >>> Cheers, > > >>> jj > > >>> > > >>> 2015-06-09 13:23 GMT+02:00 Niclas Hedhman : > > >>> > > >>> > Paul (since you wrote this once upon a time), > > >>> > > > >>> > I get an exception every time the Elastic Search Extension is > loaded, > > >>> even > > >>> > if I wipe the $HOME/Library/Application Support/myapp where it > seems > > >>> that > > >>> > ES extension is using (oh, yeah I am using the file system store) > > >>> > > > >>> > Any ideas? Is it expected? > > >>> > > > >>> > > > >>> > Caused by: org.elasticsearch.indices.IndexAlreadyExistsException: > > >>> > [qi4j_index] already exists > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validateIndexName(MetaDataCreateIndexService.java:164) > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.validate(MetaDataCreateIndexService.java:539) > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.access$100(MetaDataCreateIndexService.java:89) > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:229) > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:328) > > >>> > at > > >>> > > > >>> > > > >>> > > > org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153) > > >>> > at > > >>> > > > >>> > > > >>> > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > >>> > at > > >>> > > > >>> > > > >>> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > >>> > ... 1 more > > >>> > > > >>> > Cheers > > >>> > -- > > >>> > Niclas Hedhman, Software Developer > > >>> > http://zest.apache.org - New Energy for Java > > >>> > > > >>> > > >> > > >> > > >> > > >> -- > > >> Niclas Hedhman, Software Developer > > >> http://zest.apache.org - New Energy for Java > > >> > > > > > > > > > > > > -- > > > Niclas Hedhman, Software Developer > > > http://zest.apache.org - New Energy for Java > > > > > > > > > > > -- > > Niclas Hedhman, Software Developer > > http://zest.apache.org - New Energy for Java > > > -- Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --001a113bb0d85e57170518152052--