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 <[email protected]> wrote:

> Caused by: org.qi4j.api.service.ServiceUnavailableException: 【Could not
> activate service indexing-sql】
>         at
> org.qi4j.runtime.service.ServiceReferenceInstance.getInstance(ServiceReferenceInstance.java:166)
>         at
> org.qi4j.runtime.service.ServiceReferenceInstance.activate(ServiceReferenceInstance.java:114)
>         at
> org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegate.java:112)
>         ... 17 more
> Caused by: org.qi4j.api.activation.ActivationException: Unable to Activate
> application.
>         at
> org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegate.java:152)
>         at
> org.qi4j.runtime.activation.ActivationDelegate.activate(ActivationDelegate.java:75)
>         at
> org.qi4j.runtime.service.ServiceReferenceInstance.getInstance(ServiceReferenceInstance.java:154)
>         ... 19 more
> Caused by: org.postgresql.util.PSQLException: 【ERROR: duplicate key value
> violates unique constraint "entity_types_entity_type_name_key"】
>   :Key (entity_type_name)=(org.qi4j.api.entity.EntityComposite) already
> exists.
>
>
> I'm learning on the 【sql-support】 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 【entity_types】? Is
> this a bug or ?
> Thanks a lot.




-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Reply via email to