From dev-return-31415-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Feb 27 00:30:06 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1E00F18064A for ; Tue, 27 Feb 2018 00:30:05 +0100 (CET) Received: (qmail 34793 invoked by uid 500); 26 Feb 2018 23:30:05 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 34779 invoked by uid 99); 26 Feb 2018 23:30:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2018 23:30:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8DB7F18031D for ; Mon, 26 Feb 2018 23:30:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Y6Lphxh8DE8q for ; Mon, 26 Feb 2018 23:30:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6B8975FD1F for ; Mon, 26 Feb 2018 23:30:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 14424E094E for ; Mon, 26 Feb 2018 23:30:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 59ED224080 for ; Mon, 26 Feb 2018 23:30:00 +0000 (UTC) Date: Mon, 26 Feb 2018 23:30:00 +0000 (UTC) From: "Valeri Chibaev (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-7815) IgniteSpringBean implements SmartInitializingSingleton in version 2.3.2+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Valeri Chibaev created IGNITE-7815: -------------------------------------- Summary: IgniteSpringBean implements SmartInitializingSingleto= n in version 2.3.2+ Key: IGNITE-7815 URL: https://issues.apache.org/jira/browse/IGNITE-7815 Project: Ignite Issue Type: Bug Affects Versions: 2.3 Reporter: Valeri Chibaev IgniteSpringBean changed the way it starts Ignite grid: * implements InitializingBean#afterPropertiesSet in version 2.3.1 * implements SmartInitializingSingleton#afterSingletonsInstantiated in ver= sion 2.3.2+ This cause problem in my code that uses spring cache=C2=A0@org.springframew= ork.cache.annotation.Cacheable via org.apache.ignite.cache.spring.SpringCac= heManager throwing error from spring bean initialisation: =C2=A0 {code:java} Caused by: org.springframework.beans.factory.BeanCreationException: Error c= reating bean with name 'cacheManager' defined in class path resource [sprin= g-inc-cache.xml]: Invocation of init method failed; nested exception is cla= ss org.apache.ignite.IgniteIllegalStateException: Ignite instance with prov= ided name doesn't exist. Did you call Ignition.start(..) to start an Ignite= instance? [name=3Dmktrsk-ignite-grid] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) ~[spring-= beans-4.3.9.RELEASE.jar!/:4.3.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-bea= ns-4.3.9.RELEASE.jar!/:4.3.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= tory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans= -4.3.9.RELEASE.jar!/:4.3.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec= t(AbstractBeanFactory.java:306) ~[spring-beans-4.3.9.RELEASE.jar!/:4.3.9.RE= LEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g= etSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.9.REL= EASE.jar!/:4.3.9.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(= AbstractBeanFactory.java:302) ~[spring-beans-4.3.9.RELEASE.jar!/:4.3.9.RELE= ASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab= stractBeanFactory.java:197) ~[spring-beans-4.3.9.RELEASE.jar!/:4.3.9.RELEAS= E] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.re= solveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.3.9.R= ELEASE.jar!/:4.3.9.RELEASE] ... 27 common frames omitted Caused by: org.apache.ignite.IgniteIllegalStateException: Ignite instance w= ith provided name doesn't exist. Did you call Ignition.start(..) to start a= n Ignite instance? [name=3Dmktrsk-ignite-grid] at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1312) ~[ignit= e-core-2.3.3.jar!/:2.3.3] at org.apache.ignite.Ignition.ignite(Ignition.java:530) ~[ignite-core-2.3.3= .jar!/:2.3.3] at org.apache.ignite.cache.spring.SpringCacheManager.afterPropertiesSet(Spr= ingCacheManager.java:328) ~[ignite-spring-2.3.3.jar!/:2.3.3] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) ~[spri= ng-beans-4.3.9.RELEASE.jar!/:4.3.9.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac= tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ~[spring-= beans-4.3.9.RELEASE.jar!/:4.3.9.RELEASE] ... 34 common frames omitted {code} =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)