Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 55B02200A01 for ; Tue, 3 May 2016 15:31:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 54C711609F4; Tue, 3 May 2016 15:31:37 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9E2E31609A9 for ; Tue, 3 May 2016 15:31:36 +0200 (CEST) Received: (qmail 12346 invoked by uid 500); 3 May 2016 13:31:35 -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 12330 invoked by uid 99); 3 May 2016 13:31:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 13:31:35 +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 B29A4C04B9 for ; Tue, 3 May 2016 13:31:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jIu7HrZaoJrW for ; Tue, 3 May 2016 13:31:30 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E10B45F295 for ; Tue, 3 May 2016 13:31:29 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id x201so24910648oif.3 for ; Tue, 03 May 2016 06:31:29 -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; bh=jlXkfGmpBePt6x7smgJQW3Qo9OIhbvq5Y+ibvGK8fkI=; b=lzxkRZcvr5PT9wrNzsoD9vpJvr2ibJ5mWprhyJH1Cr8TkFaztoYNrHX5YHg4+s1/gz V/nyMD3i4e65GberhJ92uH6DD+u3Y8S6ESt0APE3yvhpCOI9Iwxb9nMTz8eakZpYpcOo LJ3weN5/vQig68WjV1g6rV5EDwObVL7HJTX6nxlggn7oO0tvFkeDcvhLVBrLgLiA1iB1 4dyASDuZ5hlg5BeK5syawucpncIspGOQDAQjLUEBe7CR10RuHAFZ48pWROsg+yLUfty7 ts7LtuCVi8muralW/Rmq8jrIDrKDc9ckTHYIeZ7MgaFYegOK8/EW5wEwF2Lcy019o/HY sVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=jlXkfGmpBePt6x7smgJQW3Qo9OIhbvq5Y+ibvGK8fkI=; b=QAq/4towOQ7uF6lR65G+9RpNT8N+h3e2S5txKKW0evKXJhzR/WdhqI3cVjFGkZOw5t TY6VsjiEz2GC0KE2FmqbYl769JDi3e/q8Fs2qnGmY0l+ewgf9Bam9mRq7Az3L6iqXwG0 bL6qOsNpTNLmaz0tkaAijd3tpkrOS8e398A70smJRAo/DuVse3GCOgY0KCOfwyqgZ8HH V6LJyHTC/VOskiC5bg3hshoLeDPSwuHW3nMYv9Vo14gbowaey150X0KJsyltymMsmV3o MaY+UbxZ//IP1RWT5bJJCLviVo8WMBwkcQR7EIC7E7X/QEuf0JmkBh8Rz8lOlDHoMw9M vucQ== X-Gm-Message-State: AOPr4FXTiaOg/O6Tf1bd0bbUID9Tlzf+HqsTn5j3MckUjqYL4p6QiDAWMQtuTCeZH1jARMaNn/mHH13/XFTMGA== X-Received: by 10.157.6.80 with SMTP id 74mr1169944otn.164.1462282282852; Tue, 03 May 2016 06:31:22 -0700 (PDT) MIME-Version: 1.0 Sender: hedhman@gmail.com Received: by 10.202.225.213 with HTTP; Tue, 3 May 2016 06:31:03 -0700 (PDT) In-Reply-To: References: From: Niclas Hedhman Date: Tue, 3 May 2016 21:31:03 +0800 X-Google-Sender-Auth: WUPByewJNt_B0Lsuu-9iEiDu6OQ Message-ID: Subject: Re: could not active service To: dev Content-Type: multipart/alternative; boundary=94eb2c0934b607e7ea0531f0205e archived-at: Tue, 03 May 2016 13:31:37 -0000 --94eb2c0934b607e7ea0531f0205e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have not been involved in the SQL ES or Indexing, so I won't be able to give good advice. Paul?? Can you show us the entity declarations? Cheers Niclas On Tue, May 3, 2016 at 3:30 PM, zhuangmz08 wrote: > Caused by: org.qi4j.api.service.ServiceUnavailableException: =E3=80=90Cou= ld not > activate service indexing-sql=E3=80=91 > at > org.qi4j.runtime.service.ServiceReferenceInstance.getInstance(ServiceRefe= renceInstance.java:166) > at > org.qi4j.runtime.service.ServiceReferenceInstance.activate(ServiceReferen= ceInstance.java:114) > at > org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegat= e.java:112) > ... 17 more > Caused by: org.qi4j.api.activation.ActivationException: Unable to Activat= e > application. > at > org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegat= e.java:152) > at > org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegat= e.java:75) > at > org.qi4j.runtime.service.ServiceReferenceInstance.getInstance(ServiceRefe= renceInstance.java:154) > ... 19 more > Caused by: org.postgresql.util.PSQLException: =E3=80=90ERROR: duplicate k= ey value > violates unique constraint "entity_types_entity_type_name_key"=E3=80=91 > =EF=BC=9AKey (entity_type_name)=3D(org.qi4j.api.entity.EntityComposite)= already > exists. > > > I'm learning on the =E3=80=90sql-support=E3=80=91 sample. I'm using > org.qi4j.extension.indexing-sql and org.qi4j.extension.entitystore-sql, > both postgrseql as backend. I seems that If I declare more than two > entities, it will throw this exception. I found that > org.qi4j.api.entity.EntityComposite exists in the table =E3=80=90entity_t= ypes=E3=80=91? Is > this a bug or ? > Thanks a lot. --=20 Niclas Hedhman, Software Developer http://zest.apache.org - New Energy for Java --94eb2c0934b607e7ea0531f0205e--