From user-return-27848-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Nov 5 14:46:21 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0E154180648 for ; Tue, 5 Nov 2019 15:46:20 +0100 (CET) Received: (qmail 28614 invoked by uid 500); 5 Nov 2019 14:46:19 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 28604 invoked by uid 99); 5 Nov 2019 14:46:19 -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, 05 Nov 2019 14:46:19 +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 A501BC0826 for ; Tue, 5 Nov 2019 14:46:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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-he-de.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7leD7VoIWVle for ; Tue, 5 Nov 2019 14:46:17 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::534; helo=mail-ed1-x534.google.com; envelope-from=ilya.kasnacheev@gmail.com; receiver= Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 7FFA37DDAC for ; Tue, 5 Nov 2019 14:46:16 +0000 (UTC) Received: by mail-ed1-x534.google.com with SMTP id b72so16387647edf.1 for ; Tue, 05 Nov 2019 06:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bp8aZ0h0xtnH+DIKmZ4EOe093mztdLMiSWYruc3CAm0=; b=Xd1XZYCmybvoLp5Bzqb/NwshXg0iAbpT+LwQgHb+KZ/5t36jH7hr9TO/iO7Frsn5X2 +N+v3+FpdO9GMX0+hoqsrZFqCd3W9ycCIi4k5NSzvP/yxJm4OCbB8yYFfffFk1/SaVx6 e/DCEsbERFve9CDcwIZG7BAvC7pvWxoDK8EE8mJYlRmBxsW3Tn2FSfUAcxrWrBiUx7ew lnIDSw66DlbyoMSbqGj3NF9wgnvVRchkmfc2IbiRflnu+Hf8zvnXH6t9NGUR6yn1RrKX /Zw4egEa+SbmMtfPC0zAzDut46IpJxt7hQO6gKJEpesxCj9HUYezBydQIGkn3B51VrIK hDKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=bp8aZ0h0xtnH+DIKmZ4EOe093mztdLMiSWYruc3CAm0=; b=eu6yV1UI9FCCwiPjNzAsI44v0rE4K73A4YEDKRaN3K4DsOOKAPBjSswKBMyFW4E6kU tndAOdArAgf3a3DvhJeRm6gOrxKWLIWqI6zy1P6iDagNuBSqsmHfTF/mqkvYskvmMEte yp7nHVefg8rNi4K/Lr+Wz5EfLqrp9cfXjk6kengqoNJaj9GwExM9DeV0sy+b5gCe9NLx sbhCh4Z64Ik8zpaN21dnbZHkxAVfKEnRIsmGMG+EePyJ6nFYGn93ecfjPGAEZH1u9/23 xSt/dYDV5lrx9Bo4bDYs2GmMW+9omngKt6+3Ly7A/IxldwjPXeNBAFlLkw3+qW9Qh1TU P8ig== X-Gm-Message-State: APjAAAWFVnaY0LeRW+EQz39dDWZ/KcVWgy3xGGCFd81h+SOJMq6d7/2P LCURJw1p/K6es/MiG8NdLnpmg+lCX+jraX5XNNPf3iBERzw= X-Google-Smtp-Source: APXvYqwWhcA95f5cJhRq+YWKFxGWauuPXPcp7rXizgcYIT6hcNDHwiYYSEqH5ZPm2LZiFWeE9KSbwxSuOksBJYWf8MU= X-Received: by 2002:a17:906:6dd3:: with SMTP id j19mr28807164ejt.144.1572965175887; Tue, 05 Nov 2019 06:46:15 -0800 (PST) MIME-Version: 1.0 References: <1572697424846-0.post@n6.nabble.com> <1572717024677-0.post@n6.nabble.com> In-Reply-To: <1572717024677-0.post@n6.nabble.com> From: Ilya Kasnacheev Date: Tue, 5 Nov 2019 17:46:04 +0300 Message-ID: Subject: Re: Ignite-spring-data_2.0 not working To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="0000000000008d8bb305969a7e54" --0000000000008d8bb305969a7e54 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! Please try the following dependency: org.springframework.data spring-data-commons 2.0.9.RELEASE org.slf4j jcl-over-slf4j It seems that they have changed API in 2.2 (which you get by default) and we're not compatible with that. Regards, --=20 Ilya Kasnacheev =D1=81=D0=B1, 2 =D0=BD=D0=BE=D1=8F=D0=B1. 2019 =D0=B3. =D0=B2 20:50, Humphr= ey : > I see that some text went missing after the post: > > Here the stack trace log: > > Error starting ApplicationContext. To display the conditions report re-ru= n > your application with 'debug' enabled. > 2019-11-02 13:16:56.482 ERROR 13627 --- [ main] > o.s.boot.SpringApplication : Application run failed > > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'personRepository': Invocation of init method failed; nested > exception is java.lang.IllegalStateException: You have defined query meth= od > in the repository but you don't have any query lookup strategy defined. T= he > infrastructure apparently does not support query methods! > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.initializeBean(AbstractAutowireCapableBeanFactory.java:1803) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.createBean(AbstractAutowireCapableBeanFactory.java:517) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGe= tBean$0(AbstractBeanFactory.java:323) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge= tSingleton(DefaultSingletonBeanRegistry.java:222) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(A= bstractBeanFactory.java:321) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs= tractBeanFactory.java:202) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preI= nstantiateSingletons(DefaultListableBeanFactory.java:860) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.finishBean= FactoryInitialization(AbstractApplicationContext.java:878) > ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.context.support.AbstractApplicationContext.refresh(Ab= stractApplicationContext.java:550) > ~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.boot.SpringApplication.refresh(SpringApplication.java= :747) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.boot.SpringApplication.refreshContext(SpringApplicati= on.java:397) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:315= ) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:122= 6) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:121= 5) > ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.bug.ignite.springdatabug.SpringDataBugApplication.main(SpringDataBugA= pplication.java:10) > ~[classes/:na] > Caused by: java.lang.IllegalStateException: You have defined query method > in > the repository but you don't have any query lookup strategy defined. The > infrastructure apparently does not support query methods! > at > > org.springframework.data.repository.core.support.RepositoryFactorySupport= $QueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:553) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.data.repository.core.support.RepositoryFactorySupport= .getRepository(RepositoryFactorySupport.java:332) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.data.repository.core.support.RepositoryFactoryBeanSup= port.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at org.springframework.data.util.Lazy.getNullable(Lazy.java:212) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at org.springframework.data.util.Lazy.get(Lazy.java:94) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.data.repository.core.support.RepositoryFactoryBeanSup= port.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) > ~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1862) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > at > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact= ory.initializeBean(AbstractAutowireCapableBeanFactory.java:1799) > ~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE] > ... 15 common frames omitted > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > --0000000000008d8bb305969a7e54 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

Please try the follow= ing dependency:
<dependency>
<groupId>org.springfr= amework.data</<= span style=3D"color:rgb(0,0,128);background-color:rgb(239,239,239);font-wei= ght:bold">groupId&= gt;
<artifactId>spring-data-commons</artifactId>
<version>2.0.9.RELEASE</version>
<!-- Exclude slf4j logging= in favor of log4j -->
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
= <= artifactId>
jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>

It seems that they have ch= anged API in 2.2 (which you get by default) and we're not compatible wi= th that.

Regards,
--
Ilya Kasnacheev

=D1=81=D0=B1, 2 =D0=BD=D0=BE=D1=8F=D0=B1. 2019 =D0=B3. =D0=B2 20:50= , Humphrey <hmmlopez@gmail.com= >:
I see that= some text went missing after the post:

Here the stack trace log:

Error starting ApplicationContext. To display the conditions report re-run<= br> your application with 'debug' enabled.
2019-11-02 13:16:56.482 ERROR 13627 --- [=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0main]
o.s.boot.SpringApplication=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0: Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bea= n
with name 'personRepository': Invocation of init method failed; nes= ted
exception is java.lang.IllegalStateException: You have defined query method=
in the repository but you don't have any query lookup strategy defined.= The
infrastructure apparently does not support query methods!
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor= y.initializeBean(AbstractAutowireCapableBeanFactory.java:1803)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor= y.doCreateBean(AbstractAutowireCapableBeanFactory.java:595)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor= y.createBean(AbstractAutowireCapableBeanFactory.java:517)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetB= ean$0(AbstractBeanFactory.java:323)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS= ingleton(DefaultSingletonBeanRegistry.java:222)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs= tractBeanFactory.java:321)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr= actBeanFactory.java:202)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns= tantiateSingletons(DefaultListableBeanFactory.java:860)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.context.support.AbstractApplicationContext.finishBeanFa= ctoryInitialization(AbstractApplicationContext.java:878)
~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.context.support.AbstractApplicationContext.refresh(Abst= ractApplicationContext.java:550)
~[spring-context-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:7= 47)
~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication= .java:397)
~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)<= br> ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)=
~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)=
~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.bug.ignite.springdatabug.SpringDataBugApplication.main(SpringDataBugApp= lication.java:10)
~[classes/:na]
Caused by: java.lang.IllegalStateException: You have defined query method i= n
the repository but you don't have any query lookup strategy defined. Th= e
infrastructure apparently does not support query methods!
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.data.repository.core.support.RepositoryFactorySupport$Q= ueryExecutorMethodInterceptor.<init>(RepositoryFactorySupport.java:55= 3)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.data.repository.core.support.RepositoryFactorySupport.g= etRepository(RepositoryFactorySupport.java:332)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.data.repository.core.support.RepositoryFactoryBeanSuppo= rt.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.springframework.data.util.Lazy.getNullab= le(Lazy.java:212)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.springframework.data.util.Lazy.get(Lazy.= java:94)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.data.repository.core.support.RepositoryFactoryBeanSuppo= rt.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300)
~[spring-data-commons-2.2.0.RELEASE.jar:2.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor= y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1862)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor= y.initializeBean(AbstractAutowireCapableBeanFactory.java:1799)
~[spring-beans-5.2.0.RELEASE.jar:5.2.0.RELEASE]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 15 common frames omitted



--
Sent from: http://apache-ignite-users.70518.x6.nabbl= e.com/
--0000000000008d8bb305969a7e54--