Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A64AD1955D for ; Tue, 26 Apr 2016 13:44:10 +0000 (UTC) Received: (qmail 48300 invoked by uid 500); 26 Apr 2016 13:44:10 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 48249 invoked by uid 500); 26 Apr 2016 13:44:10 -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 48239 invoked by uid 99); 26 Apr 2016 13:44:10 -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; Tue, 26 Apr 2016 13:44:10 +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 C0F0C180517 for ; Tue, 26 Apr 2016 13:44:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.199 X-Spam-Level: * X-Spam-Status: No, score=1.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 TCoGKiGQsWVI for ; Tue, 26 Apr 2016 13:44:03 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0F65F5F19A for ; Tue, 26 Apr 2016 13:44:03 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id x19so15040006oix.2 for ; Tue, 26 Apr 2016 06:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=e2fZ3be+RTvaxasx1THOlMsKKhWlwrgULrBKjEQO0Oo=; b=KZtTh+MGv+aRjn5GlUgmS4v6MoTQgd6w7E/uz4lszwcPF1t92K69S0S93RcHbvdtqk eiCXbpUKG9ltyDPIj7c1Cb125k+vKJ1GCBjG4myoln4egqBvvepRmDxJMJvpygin9TVF 0U+ua30Jkesbz/sYfuY3IDQLJLgRvl7WQ8wvtRqfP2QYIt0pITEz7L6XBNvhOz5IDFpE e867K29XZc89xkiOnjzePAJyOcq/k/Ka66XBrwDtGGyP58LQ4wO0jh+BxJw1TCrKwORn 7H7FPQKLmcTWf+Om38dstZ7eFvLFLFMzbll6kClNcWLPGYKuyTsw7ylIqI10TAywnx0O JApg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=e2fZ3be+RTvaxasx1THOlMsKKhWlwrgULrBKjEQO0Oo=; b=Xs9YbXGsuwuNX9iDjbcSCz6pHf45BXirUAuWf07AoS76IMO2k3aJJlTLLXgiBDLOOO 09Qsup6o+HsP69HE/uKHNVmwwAy8zpAsY770iE2NIpJkRMCaD3lcyQ08nou9zMkjcwbF 2m0LAOYjmIUlY1D+x1DAHnAx13dMwDzg91WLvyS8Y4F8asXUOJXmmSknCcdnTuGlsAlW TkksziSkuoZxv4EiCW/vevHe/snvDH4df+rGREIWzDtIt81/Nd5gxWT1z4pB9R9fT6iF FZl2VlKPOzv7fym++YT7AFCXCmq4mmzt/zN2AfOu27M3DZsRoe4BJ8kuTqERJpWxH026 hFMg== X-Gm-Message-State: AOPr4FVALwcTvv9k624odjATboM6AeJmxLVGbXgl7VbSv3xtMcTRmiDIUgmtBNeEImaG67rK4r2vIr2cpPb4Cg== MIME-Version: 1.0 X-Received: by 10.202.75.78 with SMTP id y75mr1090759oia.70.1461678242341; Tue, 26 Apr 2016 06:44:02 -0700 (PDT) Received: by 10.202.84.70 with HTTP; Tue, 26 Apr 2016 06:44:02 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Apr 2016 09:44:02 -0400 Message-ID: Subject: Re: Error running nodes in .net and c++ From: Murthy Kakarlamudi To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11c161f0692bc30531637c52 --001a11c161f0692bc30531637c52 Content-Type: text/plain; charset=UTF-8 No..I am not. I have different configs for my server node in java vs my client node in c++. That was the question I had. In my server node that loads the data from persistent store to cache, I configured cachestore. But my c++ node is only a client node that needs to access cache. So I was not sure if my client node config should have the cachestore details as well. Let me try the option you suggested. On Tue, Apr 26, 2016 at 9:40 AM, Vladimir Ozerov wrote: > HI Murthy, > > Do you start all nodes with the same XML configuration? Please ensure that > this is so, and all nodes know all caches from configuration in advance. > > Vladimir. > > On Tue, Apr 26, 2016 at 3:27 PM, Murthy Kakarlamudi > wrote: > >> Hi Vladimir...I made the update and still running into the same issue. >> >> Here is the updated spring config for my Java node: >> >> >> >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util=" >> http://www.springframework.org/schema/util" >> xsi:schemaLocation=" >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans.xsd >> http://www.springframework.org/schema/util >> http://www.springframework.org/schema/util/spring-util-2.5.xsd"> >> >> > class="org.springframework.jdbc.datasource.DriverManagerDataSource"> >> > value="com.microsoft.sqlserver.jdbc.SQLServerDriver" /> >> > value="jdbc:sqlserver://LAPTOP-QIT4AVOG\MSSQLSERVER64;databaseName=PrimeOne;integratedSecurity=true" >> /> >> >> >> > class="org.apache.ignite.configuration.IgniteConfiguration"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> >> >> >> >> >> 127.0.0.1:47500..47509 >> >> >> >> >> >> >> >> >> >> >> Error: >> >>> Cache node started. >> >> [08:27:25,045][SEVERE][exchange-worker-#38%null%][GridDhtPartitionsExchangeFuture] >> Failed to reinitialize local partitions (preloading will be stopped): >> GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=11, >> minorTopVer=1], nodeId=bc7d2aa2, evt=DISCOVERY_CUSTOM_EVT] >> class org.apache.ignite.IgniteException: Spring application context >> resource is not injected. >> at >> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:156) >> at >> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:96) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1243) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1638) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:1563) >> at >> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:956) >> at >> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:523) >> at >> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297) >> at >> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) >> at java.lang.Thread.run(Thread.java:745) >> [08:27:25,063][SEVERE][exchange-worker-#38%null%][GridCachePartitionExchangeManager] >> Failed to wait for completion of partition map exchange (preloading will >> not start): GridDhtPartitionsExchangeFuture [dummy=false, >> forcePreload=false, reassign=false, discoEvt=DiscoveryCustomEvent >> [customMsg=DynamicCacheChangeBatch [reqs=[DynamicCacheChangeRequest >> [deploymentId=8ea535e3451-d29afc27-9b4b-4125-bbf2-232c08daa0cb, >> startCfg=CacheConfiguration [name=buCache, >> storeConcurrentLoadAllThreshold=5, rebalancePoolSize=2, >> rebalanceTimeout=10000, evictPlc=null, evictSync=false, >> evictKeyBufSize=1024, evictSyncConcurrencyLvl=4, evictSyncTimeout=10000, >> evictFilter=null, evictMaxOverflowRatio=10.0, eagerTtl=true, >> dfltLockTimeout=0, startSize=1500000, nearCfg=null, writeSync=PRIMARY_SYNC, >> storeFactory=CacheJdbcPojoStoreFactory [batchSizw=512, >> dataSrcBean=myDataSource, dialect=null, maxPoolSize=4, maxWriteAttempts=2, >> parallelLoadCacheMinThreshold=512, >> hasher=o.a.i.cache.store.jdbc.JdbcTypeDefaultHasher@78d010a2, >> dataSrc=null], storeKeepBinary=false, loadPrevVal=false, >> aff=o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction@76311661, >> cacheMode=PARTITIONED, atomicityMode=ATOMIC, atomicWriteOrderMode=PRIMARY, >> backups=1, invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, >> rebalanceOrder=0, rebalanceBatchSize=524288, >> rebalanceBatchesPrefetchCount=2, offHeapMaxMem=-1, swapEnabled=false, >> maxConcurrentAsyncOps=500, writeBehindEnabled=false, >> writeBehindFlushSize=10240, writeBehindFlushFreq=5000, >> writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, >> memMode=ONHEAP_TIERED, >> affMapper=o.a.i.i.processors.cache.CacheDefaultBinaryAffinityKeyMapper@2e41d426, >> rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, >> longQryWarnTimeout=3000, readFromBackup=true, >> nodeFilter=o.a.i.configuration.CacheConfiguration$IgniteAllNodesPredicate@d211e68, >> sqlSchema=null, sqlEscapeAll=false, sqlOnheapRowCacheSize=10240, >> snapshotableIdx=false, cpOnRead=true, topValidator=null], cacheType=USER, >> initiatingNodeId=bc7d2aa2-4a64-467f-8097-d0f579dec0b3, nearCacheCfg=null, >> clientStartOnly=true, stop=false, close=false, failIfExists=false, >> template=false, exchangeNeeded=true, cacheFutTopVer=null, >> cacheName=buCache]], clientNodes=null, >> id=45ec9825451-cbb8263a-223e-4f3e-8492-71f2612ddae6, >> clientReconnect=false], affTopVer=AffinityTopologyVersion [topVer=11, >> minorTopVer=1], super=DiscoveryEvent [evtNode=TcpDiscoveryNode >> [id=bc7d2aa2-4a64-467f-8097-d0f579dec0b3, addrs=[0:0:0:0:0:0:0:1, >> 127.0.0.1, 192.168.0.5, 2001:0:9d38:90d7:1064:ea:bb9b:11d9, >> 2600:8806:0:8d00:0:0:0:1, 2600:8806:0:8d00:15e5:c0bf:286e:8785, >> 2600:8806:0:8d00:3ccf:1e94:1ab4:83a9], sockAddrs=[LAPTOP-QIT4AVOG/ >> 192.168.0.5:0, /0:0:0:0:0:0:0:1:0, LAPTOP-QIT4AVOG/192.168.0.5:0, / >> 127.0.0.1:0, LAPTOP-QIT4AVOG/192.168.0.5:0, /192.168.0.5:0, >> LAPTOP-QIT4AVOG/192.168.0.5:0, /2001:0:9d38:90d7:1064:ea:bb9b:11d9:0, >> LAPTOP-QIT4AVOG/192.168.0.5:0, /2600:8806:0:8d00:0:0:0:1:0, >> /2600:8806:0:8d00:15e5:c0bf:286e:8785:0, >> /2600:8806:0:8d00:3ccf:1e94:1ab4:83a9:0], discPort=0, order=11, intOrder=0, >> lastExchangeTime=1461673644205, loc=true, ver=1.5.0#20151229-sha1:f1f8cda2, >> isClient=true], topVer=11, nodeId8=bc7d2aa2, msg=null, >> type=DISCOVERY_CUSTOM_EVT, tstamp=1461673645026]], >> rcvdIds=GridConcurrentHashSet [elements=[]], rmtIds=null, >> exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion >> [topVer=11, minorTopVer=1], nodeId=bc7d2aa2, evt=DISCOVERY_CUSTOM_EVT], >> init=true, ready=false, replied=false, added=true, >> initFut=GridFutureAdapter [resFlag=2, res=false, startTime=1461673645026, >> endTime=1461673645046, ignoreInterrupts=false, lsnr=null, state=DONE], >> topSnapshot=null, lastVer=null, partReleaseFut=null, skipPreload=false, >> clientOnlyExchange=false, initTs=1461673645026, >> oldest=7700cd68-08b1-4571-8744-0e91dcdad9b0, oldestOrder=1, evtLatch=0, >> remaining=[], super=GridFutureAdapter [resFlag=1, res=class >> o.a.i.IgniteException: Spring application context resource is not >> injected., startTime=1461673645026, endTime=1461673645046, >> ignoreInterrupts=false, lsnr=null, state=DONE]] >> class org.apache.ignite.IgniteCheckedException: Spring application >> context resource is not injected. >> at >> org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7005) >> at >> org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:166) >> at >> org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:115) >> at >> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1299) >> at >> org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) >> at java.lang.Thread.run(Thread.java:745) >> Caused by: class org.apache.ignite.IgniteException: Spring application >> context resource is not injected. >> at >> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:156) >> at >> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:96) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1243) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1638) >> at >> org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:1563) >> at >> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:956) >> at >> org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:523) >> at >> org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297) >> >> On Tue, Apr 26, 2016 at 8:06 AM, Vladimir Ozerov >> wrote: >> >>> Hi Murthy, >>> >>> Seems that you faced a kind of usability issue, which happens only in >>> some specific cases. Please try replacing the following line in your config: >>> >>> >>> >>> with this: >>> >>> >>> >>> It should help. >>> >>> Vladimir. >>> >>> On Tue, Apr 26, 2016 at 1:36 AM, Murthy Kakarlamudi >>> wrote: >>> >>>> Hi Alexey...Apologize the delay in my response. Below are the 2 links >>>> from gdrive for my Java and c++ projects. >>>> >>>> Java Project: >>>> https://drive.google.com/open?id=0B8lM91-_3MwRZmF6N0tnN1pyN2M >>>> >>>> C++ Project: >>>> https://drive.google.com/open?id=0B8lM91-_3MwRMGE5akVWVXc0RXc >>>> >>>> Please let me know if you have any difficulty downloading the projects. >>>> >>>> Thanks, >>>> Satya. >>>> >>>> On Mon, Apr 25, 2016 at 10:49 AM, Alexey Kuznetsov < >>>> akuznetsov@gridgain.com> wrote: >>>> >>>>> I see in stack trace "Caused by: class org.apache.ignite.IgniteException: >>>>> Spring application context resource is not injected." >>>>> >>>>> Also CacheJdbcPojoStoreFactory contains such declaration: >>>>> @SpringApplicationContextResource >>>>> private transient Object appCtx; >>>>> >>>>> Anybody know why appCtx may not be injected? >>>>> >>>>> Also Satya, it is possible for you to prepare small reproducible >>>>> example that we could debug? >>>>> >>>>> >>>>> On Mon, Apr 25, 2016 at 9:39 PM, Vladimir Ozerov >>>> > wrote: >>>>> >>>>>> Alexey Kuznetsov, >>>>>> >>>>>> Provided you have more expertise with POJO store, could you please >>>>>> advise what could cause this exception? Seems that POJO store expects some >>>>>> injection, which doesn't happen. >>>>>> Are there any specific requirements here? C++ node starts as a >>>>>> regular node and also use Spring. >>>>>> >>>>>> Vladimir. >>>>>> >>>>>> On Mon, Apr 25, 2016 at 5:32 PM, Murthy Kakarlamudi >>>>> > wrote: >>>>>> >>>>>>> Any help on this issue please... >>>>>>> >>>>>>> On Sat, Apr 16, 2016 at 7:29 PM, Murthy Kakarlamudi < >>>>>>> ksatya@gmail.com> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> In my use case, I am starting a node from .net which loads data >>>>>>>> from SQL Server table into cache upon start up. I have to read those >>>>>>>> entries from cache from a c++ node that acts as a client. I am getting the >>>>>>>> below error trying to start the node from c++. >>>>>>>> >>>>>>>> [19:08:57] Security status [authentication=off, tls/ssl=off] >>>>>>>> [19:08:58,163][SEVERE][main][IgniteKernal] Failed to start manager: >>>>>>>> GridManagerAdapter [enabled=true, >>>>>>>> name=o.a.i.i.managers.discovery.GridDiscoveryManager] >>>>>>>> class org.apache.ignite.IgniteCheckedException: Remote node has >>>>>>>> peer class loading enabled flag different from local [locId8=f02445af, >>>>>>>> locPeerClassLoading=true, rmtId8=8e52f9c9, rmtPeerClassLoading=false, >>>>>>>> rmtAddrs=[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/ >>>>>>>> 127.0.0.1, LAPTOP-QIT4AVOG/192.168.0.5, >>>>>>>> LAPTOP-QIT4AVOG/2001:0:9d38:90d7:145b:5bf:bb9b:11d9, >>>>>>>> LAPTOP-QIT4AVOG/2600:8806:0:8d00:0:0:0:1, >>>>>>>> /2600:8806:0:8d00:3ccf:1e94:1ab4:83a9, >>>>>>>> /2600:8806:0:8d00:f114:bf30:2068:352d]] >>>>>>>> at >>>>>>>> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.checkAttributes(GridDiscoveryManager.java:1027) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:680) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:917) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1003) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515) >>>>>>>> at org.apache.ignite.Ignition.start(Ignition.java:322) >>>>>>>> at >>>>>>>> org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java >>>>>>>> >>>>>>>> Below if my config for .net node: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>>> xsi:schemaLocation=" >>>>>>>> http://www.springframework.org/schema/beans >>>>>>>> >>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd"> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.IgniteConfiguration"> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.ConnectorConfiguration"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.CacheConfiguration"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> value="120000"/> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.platform.dotnet.PlatformDotNetCacheStoreFactory"> >>>>>>>> >>>>>>> value="TestIgniteDAL.SQLServerStore, TestIgniteDAL"/> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.cache.CacheTypeMetadata"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> value="java.lang.Integer"/> >>>>>>>> >>>>>>> value="java.util.Date"/> >>>>>>>> >>>>>>> value="java.lang.Integer"/> >>>>>>>> >>>>>>> value="java.util.Date"/> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> >>>>>>>> >>>>>>>> >>>>>>>> 127.0.0.1:47500..47509 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Below is my config for node from c++: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>>>> xmlns:util="http://www.springframework.org/schema/util" >>>>>>>> xsi:schemaLocation=" >>>>>>>> http://www.springframework.org/schema/beans >>>>>>>> >>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd >>>>>>>> http://www.springframework.org/schema/util >>>>>>>> http://www.springframework.org/schema/util/spring-util.xsd >>>>>>>> "> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.IgniteConfiguration"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.CacheConfiguration"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.configuration.CacheConfiguration"> >>>>>>>> >>>>>>>> >>>>>>> value="TRANSACTIONAL"/> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 127.0.0.1:47500 >>>>>>>> ..47501 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Below c++ code is trying to access the cache: >>>>>>>> int main() >>>>>>>> { >>>>>>>> IgniteConfiguration cfg; >>>>>>>> >>>>>>>> cfg.jvmInitMem = 512; >>>>>>>> cfg.jvmMaxMem = 512; >>>>>>>> >>>>>>>> //cfg.springCfgPath = >>>>>>>> "platforms/cpp/examples/config/example-cache.xml"; >>>>>>>> cfg.springCfgPath = "config/example-cache.xml"; >>>>>>>> try >>>>>>>> { >>>>>>>> // Start a node. >>>>>>>> Ignite grid = Ignition::Start(cfg); >>>>>>>> std::cout << std::endl; >>>>>>>> std::cout << ">>> Cache node started." << std::endl; >>>>>>>> std::cout << std::endl; >>>>>>>> >>>>>>>> //string key >>>>>>>> Cache cache = >>>>>>>> grid.GetCache("BU"); >>>>>>>> cache.Clear(); >>>>>>>> CBusinessObject obj("MSFT", 45.23); >>>>>>>> //save in cache >>>>>>>> cache.Put("MSFT", obj); >>>>>>>> >>>>>>>> //retreive from cache >>>>>>>> CBusinessObject result = cache.Get("MSFT"); >>>>>>>> >>>>>>>> std::cout << result.ToString(); >>>>>>>> >>>>>>>> // Stop node. >>>>>>>> Ignition::StopAll(false); >>>>>>>> } >>>>>>>> catch (IgniteError& err) >>>>>>>> { >>>>>>>> std::cout << "An error occurred: " << err.GetText() << std::endl; >>>>>>>> } >>>>>>>> >>>>>>>> std::cout << std::endl; >>>>>>>> std::cout << ">>> Execution finished, press any key to exit ..." << >>>>>>>> std::endl; >>>>>>>> std::cout << std::endl; >>>>>>>> >>>>>>>> std::cin.get(); >>>>>>>> >>>>>>>> return 0; >>>>>>>> } >>>>>>>> >>>>>>>> Thanks for any help. >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Alexey Kuznetsov >>>>> GridGain Systems >>>>> www.gridgain.com >>>>> >>>> >>>> >>> >> > --001a11c161f0692bc30531637c52 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
No..I am not. I have different configs for my server node = in java vs my client node in c++. That was the question I had. In my server= node that loads the data from persistent store to cache, I configured cach= estore. But my c++ node is only a client node that needs to access cache. S= o I was not sure if my client node config should have the cachestore detail= s as well.=C2=A0

Let me try the option you suggested.

On Tue, = Apr 26, 2016 at 9:40 AM, Vladimir Ozerov <vozerov@gridgain.com><= /span> wrote:
HI Murthy,=

Do you start all nodes with the same XML configuration?= Please ensure that this is so, and all nodes know all caches from configur= ation in advance.
=
Vladimir.

On= Tue, Apr 26, 2016 at 3:27 PM, Murthy Kakarlamudi <ksatya@gmail.com>= wrote:
Hi Vladim= ir...I made the update and still running into the same issue.

Here is the updated spring config for my Java node:
<= div><?xml version=3D"1.0" encoding=3D"UTF-8"?>

<!-- Licensed to the Apache Software= Foundation (ASF) under one or more contributor=C2=A0
license agreements. See the NOTICE file d= istributed with this work for additional=C2=A0
information regarding copyright ownership. The A= SF licenses this file to=C2=A0
You under the Apache License, Version 2.0 (the "License&quo= t;); you may not use=C2=A0
= this file except in compliance with the License. You may obtain a co= py of=C2=A0
the Lice= nse at http://www.apache.org/licenses/LICENSE-2.0 Unless required=C2=A0
by applicable law or = agreed to in writing, software distributed under the=C2=A0
License is distributed on an "A= S IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS=C2=A0
OF ANY KIND, either express or implied= . See the License for the specific=C2=A0
language governing permissions and limitations under t= he License. -->

<!-- Ignite Spr= ing configuration file to startup Ignite cache. This file=C2=A0
<= span style=3D"white-space:pre-wrap"> demonstrates how to configure c= ache using Spring. Provided cache will be=C2=A0
created on node startup. Use this configuration= file when running HTTP REST=C2=A0
examples (see 'examples/rest' folder). When starting= a standalone node, you=C2=A0
need to execute the following command: {IGNITE_HOME}/bin/ignite.{= bat|sh}=C2=A0
exampl= es/config/example-cache.xml When starting Ignite from Java IDE, pass=C2=A0<= /div>
path to this = file to Ignition: Ignition.start("examples/config/example-cache.xml&qu= ot;); -->
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance&quo= t; xmlns:util=3D"http://www.springframework.org/schema/util"
xsi:schemaLocation=3D&= quot;
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 http://www.springframework.org/schema/util
=

<bean id=3D"myDataSource"
class=3D"org.springframework.jdbc= .datasource.DriverManagerDataSource">
<property name=3D"driverClassName" = value=3D"com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<property name=3D&qu= ot;url"
value=3D"jdbc:sqlserver://LAPTOP-QIT4AVOG\MSSQLSERVER64;databaseName= =3DPrimeOne;integratedSecurity=3Dtrue" />
</bean>

= <bean id=3D"ignite.cfg= " class=3D"org.apache.ignite.configuration.IgniteConfiguration&qu= ot;>
<property name= =3D"binaryConfiguration">
<bean class=3D"org.apache.ignite.configuration= .BinaryConfiguration">
<property name=3D"compactFooter" value=3D= "false" />
</bean>
= </property>

<property name=3D"cacheConfiguration">=
<list>
<!-- Partit= ioned cache example configuration (Atomic mode). -->
<bean class=3D"org.apa= che.ignite.configuration.CacheConfiguration">

<= div> <property name=3D&q= uot;atomicityMode" value=3D"ATOMIC" />
<property name=3D"backups&= quot; value=3D"1" />
<property name=3D"readThrough" = value=3D"true" />
<property name=3D"writeThrough" value=3D"t= rue" />
= <property name=3D"cacheStoreFactory">
<bean
class=3D"org.apache.ignite.ca= che.store.jdbc.CacheJdbcPojoStoreFactory">
<!-- <property name=3D"data= SourceBean" value=3D"myDataSource" /> =C2=A0-->
<= span>
<property n= ame=3D"dataSource" ref=3D"myDataSource" />
<proper= ty name=3D"types">
<list>
<bean class=3D"org.apache.ignite.cache.store.jd= bc.JdbcType">
= <property name=3D"cacheName" value=3D"buCache&= quot; />
<property name=3D"databaseTable" value=3D"BusinessUnit&q= uot; />
= <property name=3D"keyType" value=3D"java.lang.Integer&quo= t; />
&l= t;property name=3D"keyFields">
<list>
<bean class=3D"org.apache.ign= ite.cache.store.jdbc.JdbcTypeField">
<property name=3D"databaseFiel= dType">
= <util:constant static-field=3D"java.sql.Types.BIGINT"= />
&= lt;/property>
= <property name=3D"databaseFieldName" value=3D"BU= ID" />
= <property name=3D"javaFieldType" value=3D"java.lan= g.Integer" />
= <property name=3D"javaFieldName" value=3D"b= uid" />
= </bean>
= </list>
</property>
<property name=3D"valueType&q= uot; value=3D"models.BusinessUnit" />
<property name=3D"valueFiel= ds">
<list>
= <bean class=3D"org.apache.ignite.cache.store.jdbc.JdbcTypeFi= eld">
<= /span><property name=3D"databaseFieldType">
<util:constant stat= ic-field=3D"java.sql.Types.BIGINT" />
</property>
<property name=3D&q= uot;databaseFieldName" value=3D"BUID" />
<property name=3D&quo= t;javaFieldType" value=3D"java.lang.Integer" />
<property name= =3D"javaFieldName" value=3D"buid" />
</bean>
= <bean class=3D&q= uot;org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<property name=3D= "databaseFieldType">
<util:constant static-field=3D"java.sql.= Types.VARCHAR" />
= </property>
<property name=3D"databaseFieldName&quo= t; value=3D"BUName" />
<property name=3D"javaFieldType" v= alue=3D"java.lang.String" />
<property name=3D"javaFieldName&q= uot; value=3D"buName" />
</bean>
<bean class=3D"org.apache.ignite.= cache.store.jdbc.JdbcTypeField">
<property name=3D"databaseFieldTyp= e">
<util:constant static-field=3D"java.sql.Types.BIGINT" /&g= t;
</= property>
<property name=3D"databaseFieldName" value=3D"Create= dByID" />
= <property name=3D"javaFieldType" value=3D"java.= lang.Integer" />
= <property name=3D"javaFieldName" value=3D&quo= t;createdByID" />
</bean>
</list>
</property>
</bean>
</list>
<= span style=3D"white-space:pre-wrap"> </property>
</bean>
</property>=
</bean&= gt;
</list><= /div>
</property>

<!= -- Explicitly configure TCP discovery SPI to provide list of initial=C2=A0<= /div>
nodes. -->
<property name=3D&qu= ot;discoverySpi">
= <bean class=3D"org.apache.ignite.spi.discovery.tcp.TcpDisco= verySpi">
<property name=3D"ipFinder">
<!-- Ignite provides several options for a= utomatic discovery that can=C2=A0
be used instead os static IP based discover= y. For information on all options=C2=A0
<!-- Uncomment static IP finder= to enable static-based discovery of=C2=A0
initial nodes. -->
<bean
class=3D"org.apache.ignite.spi.discovery.t= cp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<!-- <bean class=3D"org.apache.= ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder&q= uot;> -->
<property name=3D"addresses">
<list>
<!-- In distributed environment, replac= e with actual host IP address. -->
<value>127.0.0.1:47500..47509&l= t;/value>
&= lt;/list>
&l= t;/property>
= </bean>
<= ;/property>
<= ;/bean>
</pro= perty>
</bean&= gt;
</beans>


Error:
>>> Cache node started.
[08:27:25,045][SEVERE][exchange-worker-#38%null%][GridDhtPartit= ionsExchangeFuture] Failed to reinitialize local partitions (preloading wil= l be stopped): GridDhtPartitionExchangeId [topVer=3DAffinityTopologyVersion= [topVer=3D11, minorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDISCOVERY_CUSTOM_= EVT]
class org.apache.ignite.IgniteException: Spring applic= ation context resource is not injected.
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreF= actory.create(CacheJdbcPojoStoreFactory.java:156)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFacto= ry.create(CacheJdbcPojoStoreFactory.java:96)
=C2=A0 =C2=A0 =C2=A0= =C2=A0 at org.apache.ignite.internal.processors.cache.GridCacheProcessor.c= reateCache(GridCacheProcessor.java:1243)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepa= reCacheStart(GridCacheProcessor.java:1638)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.ignite.internal.processors.cache.GridCacheProcessor.pr= epareCachesStart(GridCacheProcessor.java:1563)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 at org.apache.ignite.internal.processors.cache.distributed.dht.p= reloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExcha= ngeFuture.java:956)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ign= ite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsEx= changeFuture.init(GridDhtPartitionsExchangeFuture.java:523)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.Gri= dCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchan= geManager.java:1297)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ig= nite.internal.util.worker.GridWorker.run(GridWorker.java:110)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)
[08:27:25,063][SEVERE][exchange-worker-#38%null%][GridCachePartitio= nExchangeManager] Failed to wait for completion of partition map exchange (= preloading will not start): GridDhtPartitionsExchangeFuture [dummy=3Dfalse,= forcePreload=3Dfalse, reassign=3Dfalse, discoEvt=3DDiscoveryCustomEvent [c= ustomMsg=3DDynamicCacheChangeBatch [reqs=3D[DynamicCacheChangeRequest [depl= oymentId=3D8ea535e3451-d29afc27-9b4b-4125-bbf2-232c08daa0cb, startCfg=3DCac= heConfiguration [name=3DbuCache, storeConcurrentLoadAllThreshold=3D5, rebal= ancePoolSize=3D2, rebalanceTimeout=3D10000, evictPlc=3Dnull, evictSync=3Dfa= lse, evictKeyBufSize=3D1024, evictSyncConcurrencyLvl=3D4, evictSyncTimeout= =3D10000, evictFilter=3Dnull, evictMaxOverflowRatio=3D10.0, eagerTtl=3Dtrue= , dfltLockTimeout=3D0, startSize=3D1500000, nearCfg=3Dnull, writeSync=3DPRI= MARY_SYNC, storeFactory=3DCacheJdbcPojoStoreFactory [batchSizw=3D512, dataS= rcBean=3DmyDataSource, dialect=3Dnull, maxPoolSize=3D4, maxWriteAttempts=3D= 2, parallelLoadCacheMinThreshold=3D512, hasher=3Do.a.i.cache.store.jdbc.Jdb= cTypeDefaultHasher@78d010a2, dataSrc=3Dnull], storeKeepBinary=3Dfalse, load= PrevVal=3Dfalse, aff=3Do.a.i.cache.affinity.rendezvous.RendezvousAffinityFu= nction@76311661, cacheMode=3DPARTITIONED, atomicityMode=3DATOMIC, atomicWri= teOrderMode=3DPRIMARY, backups=3D1, invalidate=3Dfalse, tmLookupClsName=3Dn= ull, rebalanceMode=3DASYNC, rebalanceOrder=3D0, rebalanceBatchSize=3D524288= , rebalanceBatchesPrefetchCount=3D2, offHeapMaxMem=3D-1, swapEnabled=3Dfals= e, maxConcurrentAsyncOps=3D500, writeBehindEnabled=3Dfalse, writeBehindFlus= hSize=3D10240, writeBehindFlushFreq=3D5000, writeBehindFlushThreadCnt=3D1, = writeBehindBatchSize=3D512, memMode=3DONHEAP_TIERED, affMapper=3Do.a.i.i.pr= ocessors.cache.CacheDefaultBinaryAffinityKeyMapper@2e41d426, rebalanceDelay= =3D0, rebalanceThrottle=3D0, interceptor=3Dnull, longQryWarnTimeout=3D3000,= readFromBackup=3Dtrue, nodeFilter=3Do.a.i.configuration.CacheConfiguration= $IgniteAllNodesPredicate@d211e68, sqlSchema=3Dnull, sqlEscapeAll=3Dfalse, s= qlOnheapRowCacheSize=3D10240, snapshotableIdx=3Dfalse, cpOnRead=3Dtrue, top= Validator=3Dnull], cacheType=3DUSER, initiatingNodeId=3Dbc7d2aa2-4a64-467f-= 8097-d0f579dec0b3, nearCacheCfg=3Dnull, clientStartOnly=3Dtrue, stop=3Dfals= e, close=3Dfalse, failIfExists=3Dfalse, template=3Dfalse, exchangeNeeded=3D= true, cacheFutTopVer=3Dnull, cacheName=3DbuCache]], clientNodes=3Dnull, id= =3D45ec9825451-cbb8263a-223e-4f3e-8492-71f2612ddae6, clientReconnect=3Dfals= e], affTopVer=3DAffinityTopologyVersion [topVer=3D11, minorTopVer=3D1], sup= er=3DDiscoveryEvent [evtNode=3DTcpDiscoveryNode [id=3Dbc7d2aa2-4a64-467f-80= 97-d0f579dec0b3, addrs=3D[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.0.5, 2001:0:9= d38:90d7:1064:ea:bb9b:11d9, 2600:8806:0:8d00:0:0:0:1, 2600:8806:0:8d00:15e5= :c0bf:286e:8785, 2600:8806:0:8d00:3ccf:1e94:1ab4:83a9], sockAddrs=3D[LAPTOP= -QIT4AVOG/192.168.0.5:0<= /a>, /0:0:0:0:0:0:0:1:0, LAPTOP-QIT4AVOG/192.168.0.5:0, /127.0.0.1:0, LAPTOP-QIT4AVOG/192.168.0.5:0, /192.168.0.5:0, LAPTOP-QIT4AVOG/192.168.0.5:0, /2001:0:9d38:90d7:1064:ea:bb= 9b:11d9:0, LAPTOP-QIT4AVOG/192.168.0.5:0, /2600:8806:0:8d00:0:0:0:1:0, /2600:8806:0:8d00:15e5:c= 0bf:286e:8785:0, /2600:8806:0:8d00:3ccf:1e94:1ab4:83a9:0], discPort=3D0, or= der=3D11, intOrder=3D0, lastExchangeTime=3D1461673644205, loc=3Dtrue, ver= =3D1.5.0#20151229-sha1:f1f8cda2, isClient=3Dtrue], topVer=3D11, nodeId8=3Db= c7d2aa2, msg=3Dnull, type=3DDISCOVERY_CUSTOM_EVT, tstamp=3D1461673645026]],= rcvdIds=3DGridConcurrentHashSet [elements=3D[]], rmtIds=3Dnull, exchId=3DG= ridDhtPartitionExchangeId [topVer=3DAffinityTopologyVersion [topVer=3D11, m= inorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDISCOVERY_CUSTOM_EVT], init=3Dtru= e, ready=3Dfalse, replied=3Dfalse, added=3Dtrue, initFut=3DGridFutureAdapte= r [resFlag=3D2, res=3Dfalse, startTime=3D1461673645026, endTime=3D146167364= 5046, ignoreInterrupts=3Dfalse, lsnr=3Dnull, state=3DDONE], topSnapshot=3Dn= ull, lastVer=3Dnull, partReleaseFut=3Dnull, skipPreload=3Dfalse, clientOnly= Exchange=3Dfalse, initTs=3D1461673645026, oldest=3D7700cd68-08b1-4571-8744-= 0e91dcdad9b0, oldestOrder=3D1, evtLatch=3D0, remaining=3D[], super=3DGridFu= tureAdapter [resFlag=3D1, res=3Dclass o.a.i.IgniteException: Spring applica= tion context resource is not injected., startTime=3D1461673645026, endTime= =3D1461673645046, ignoreInterrupts=3Dfalse, lsnr=3Dnull, state=3DDONE]]
class org.apache.ignite.IgniteCheckedException: Spring applica= tion context resource is not injected.
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:70= 05)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.uti= l.future.GridFutureAdapter.get0(GridFutureAdapter.java:166)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.util.future.GridFutu= reAdapter.get(GridFutureAdapter.java:115)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.ignite.internal.processors.cache.GridCachePartitionExc= hangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:129= 9)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.util= .worker.GridWorker.run(GridWorker.java:110)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at java.lang.Thread.run(Thread.java:745)
Caus= ed by: class org.apache.ignite.IgniteException: Spring application context = resource is not injected.
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(= CacheJdbcPojoStoreFactory.java:156)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 a= t org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(Cache= JdbcPojoStoreFactory.java:96)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.= apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(Grid= CacheProcessor.java:1243)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apac= he.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(Gr= idCacheProcessor.java:1638)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.ap= ache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart= (GridCacheProcessor.java:1563)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org= .apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtP= artitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:95= 6)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.proc= essors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init= (GridDhtPartitionsExchangeFuture.java:523)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.ignite.internal.processors.cache.GridCachePartitionExc= hangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:129= 7)

On Tue, Apr 26, 2016 at 8:06 AM, Vladimir Ozerov <v= ozerov@gridgain.com> wrote:
Hi Murthy,

Seems that you faced a kind= of usability issue, which happens only in some specific cases. Please try = replacing the following line in your config:

<p= roperty name=3D"dataSourceBean" value=3D"myDataSource" = />

with this:

<property name= =3D"dataSource" ref=3D"myDataSource" />

It sho= uld help.

Vladi= mir.
<= br>
On Tue, Apr 26, 2016 at 1:36 AM, Murthy Kakar= lamudi <ksatya@gmail.com> wrote:
Hi Alexey...Apologize the delay in my response. Belo= w are the 2 links from gdrive for my Java and c++ projects.

<= div>Java Project:

C++ Pr= oject:

Please let me kno= w if you have any difficulty downloading the projects.

=
Thanks,
Satya.

On Mon, Apr 25, 2016 at 10:49 AM, Alexey = Kuznetsov <akuznetsov@gridgain.com> wrote:
I see in stack trace "Caused by: class org.apache.ignite.IgniteException: Spring application context resour= ce is not injected."

Also CacheJdbcPojo= StoreFactory contains such declaration:
@SpringApplicationContext= Resource
private transient Object appCtx;

Anybody know why appCtx may not be injected?

Also=C2=A0Satya, it is possible for you= to prepare small reproducible example that we could debug?


On Mon, Apr 25, 2016 at 9:39 PM, Vladimir Ozerov <vozerov@gr= idgain.com> wrote:
Alexey Kuznetsov,

Provided you have more expert= ise with POJO store, could you please advise what could cause this exceptio= n? Seems that POJO store expects some injection, which doesn't happen. = =C2=A0
Are there any specific requirements here? C++ node starts = as a regular node and also use Spring.
<= div>
Vladimir.

On Mon, Apr 25, 2016 at 5:3= 2 PM, Murthy Kakarlamudi <ksatya@gmail.com> wrote:
Any help on this issue please...

On = Sat, Apr 16, 2016 at 7:29 PM, Murthy Kakarlamudi <ksatya@gmail.com><= /span> wrote:
Hi,
= =C2=A0 =C2=A0In my use case, I am starting a node from .net which loads dat= a from SQL Server table into cache upon start up. I have to read those entr= ies from cache from a c++ node that acts as a client. I am getting the belo= w error trying to start the node from c++.=C2=A0

<= div>[19:08:57] Security status [authentication=3Doff, tls/ssl=3Doff]
<= div>[19:08:58,163][SEVERE][main][IgniteKernal] Failed to start manager: Gri= dManagerAdapter [enabled=3Dtrue, name=3Do.a.i.i.managers.discovery.GridDisc= overyManager]
class org.apache.ignite.IgniteCheckedException: Rem= ote node has peer class loading enabled flag different from local [locId8= =3Df02445af, locPeerClassLoading=3Dtrue, rmtId8=3D8e52f9c9, rmtPeerClassLoa= ding=3Dfalse, rmtAddrs=3D[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVOG/= 127.0.0.1, LAPTOP-QIT4AV= OG/192.168.0.5, LAPTOP= -QIT4AVOG/2001:0:9d38:90d7:145b:5bf:bb9b:11d9, LAPTOP-QIT4AVOG/2600:8806:0:= 8d00:0:0:0:1, /2600:8806:0:8d00:3ccf:1e94:1ab4:83a9, /2600:8806:0:8d00:f114= :bf30:2068:352d]]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignit= e.internal.managers.discovery.GridDiscoveryManager.checkAttributes(GridDisc= overyManager.java:1027)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache= .ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscover= yManager.java:680)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.igni= te.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.IgniteKernal.start(I= gniteKernal.java:917)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.i= gnite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1688)<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.Ignitio= nEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
=C2=A0 =C2=A0= =C2=A0 =C2=A0 at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.j= ava:1003)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.intern= al.IgnitionEx.start(IgnitionEx.java:534)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.Ignition.start(Igni= tion.java:322)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.i= nternal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstrac= tBootstrap.java

Below if my config for .net = node:
<?xml version=3D"1.0" encoding=3D"UT= F-8"?>

=C2=A0 =C2=A0 =C2=A0 = =C2=A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
=C2=A0 =C2=A0 =C2=A0 =C2=A0xsi:schemaLocation=3D"
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.springframework.org/schema/beans<= /div>
=C2=A0 <= bean id=3D"ignite.cfg" class=3D"org.apache.ignite.configurat= ion.IgniteConfiguration">
=C2=A0 =C2=A0 <property name= =3D"connectorConfiguration">
=C2=A0 =C2=A0 =C2=A0 &l= t;bean class=3D"org.apache.ignite.configuration.ConnectorConfiguration= ">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"= idleTimeout" value=3D"20000"/>
=C2=A0 =C2=A0 = =C2=A0 </bean>
=C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 <property name=3D"cacheConfiguration&quo= t;>
=C2=A0 =C2=A0 =C2=A0 <list>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 <bean class=3D"org.apache.ignite.configuration.CacheC= onfiguration">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <pro= perty name=3D"name" value=3D"BU"/>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"writeThrough" va= lue=3D"true"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &l= t;property name=3D"readThrough" value=3D"true"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"writeBe= hindEnabled" value=3D"true"/>
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 <property name=3D"writeBehindFlushFrequency"= value=3D"120000"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 <property name=3D"cacheStoreFactory">
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.apache.ignite= .platform.dotnet.PlatformDotNetCacheStoreFactory">
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"typeNa= me" value=3D"TestIgniteDAL.SQLServerStore, TestIgniteDAL"/&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name =3D"typeMetadata"&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <list>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"= org.apache.ignite.cache.CacheTypeMetadata">
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- Type to query. -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <propert= y name=3D"valueType" value=3D"BusinessUnit"/>
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- Fields = to be queried. -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 <property name=3D"queryFields">
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <map>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 <entry key=3D"BUID" value=3D"java.lang.Integer"/= >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <entry key=3D"BUName" value=3D"java.lang.Strin= g"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 <entry key=3D"CreatedByID" value=3D"jav= a.lang.Integer"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <entry key=3D"CreatedDate" val= ue=3D"java.util.Date"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <entry key=3D"ModifiedByI= D" value=3D"java.lang.Integer"/>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <entry key=3D&qu= ot;ModifiedDate" value=3D"java.util.Date"/>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </map>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </proper= ty>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &l= t;!-- Fields to index in ascending order. -->
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"ascendi= ngFields">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 <map>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <entry key=3D"BUID" value= =3D"java.lang.Integer"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </map>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </list>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 </list>
=C2=A0 =C2=A0 </property>

=C2=A0 =C2=A0 <= ;property name=3D"communicationSpi">
=C2=A0 =C2=A0 = =C2=A0 <bean class=3D"org.apache.ignite.spi.communication.tcp.TcpCo= mmunicationSpi">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property= name=3D"sharedMemoryPort" value=3D"-1"/>
= =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 </property>= ;

=C2=A0 =C2=A0 <property name=3D"discover= ySpi">
=C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.ap= ache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 <property name=3D"ipFinder">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.apache.ignit= e.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"address= es">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <= ;list>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= <value>127.0.0.1:47500..47509</value>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </list>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 </= property>
=C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 = =C2=A0 </property>
=C2=A0 </bean>
</bean= s>


Below is my config for = node from c++:
<?xml version=3D"1.0" encoding= =3D"UTF-8"?>

<!--
=C2=A0= Licensed to the Apache Software Foundation (ASF) under one or more
=C2=A0 contributor license agreements.=C2=A0 See the NOTICE file distrib= uted with
=C2=A0 this work for additional information regarding c= opyright ownership.
=C2=A0 The ASF licenses this file to You unde= r the Apache License, Version 2.0
=C2=A0 (the "License"= ); you may not use this file except in compliance with
=C2=A0 the= License.=C2=A0 You may obtain a copy of the License at


=C2=A0 =C2=A0 =C2=A0= =C2=A0 http://www.springframework.org/schema/util
=C2=A0 =C2=A0 <bean id=3D"g= rid.cfg" class=3D"org.apache.ignite.configuration.IgniteConfigura= tion">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <!-- Set to true to= enable distributed class loading for examples, default is false. -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"peerClassLoad= ingEnabled" value=3D"true"/>

=C2= =A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"cacheConfiguration"= >
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <list>
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!--
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 P= artitioned cache example configuration with binary objects enabled.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Us= ed in .NET example that is available only in enterprise edition.
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -->
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D&q= uot;org.apache.ignite.configuration.CacheConfiguration">
= <property name=3D"= atomicityMode" value=3D"ATOMIC"/>
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name= =3D"backups" value=3D"1"/>
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <!--
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = Partitioned cache example configuration.
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Used in .NET cache store exam= ple that is available only in enterprise edition.
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -->
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.apache= .ignite.configuration.CacheConfiguration">
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name= =3D"name" value=3D"tx"/>
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D&q= uot;atomicityMode" value=3D"TRANSACTIONAL"/>
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <p= roperty name=3D"backups" value=3D"1"/>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </list>
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 </property>

=C2=A0 =C2= =A0 =C2=A0 =C2=A0 <!-- Explicitly configure TCP discovery SPI to provide= list of initial nodes. -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <pr= operty name=3D"discoverySpi">
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.apache.ignite.spi.discovery= .tcp.TcpDiscoverySpi">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 <property name=3D"ipFinder">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <= ;!--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 Ignite provides several options for automatic disc= overy that can be used
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 instead os static IP based discov= ery.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 <!-- Uncomment static IP finder to enable stati= c-based discovery of initial nodes. -->
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org= .apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 <!-- <bean class=3D"org.apache.ignite.spi.discovery.tcp.= ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <property name=3D"addresses">
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 <list>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 <!-- In distributed environment, replace with actual host IP address= . -->
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <value>127.0.= 0.1:47500..47501</value>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </list&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 </property>
=C2=A0 =C2=A0 </bea= n>
</beans>

Below c++ cod= e is trying to access the cache:
int main()
{
IgniteConfiguration cfg;=

cfg.= jvmInitMem =3D 512;
= cfg.jvmMaxMem =3D 512;

//cfg.springCfgPath =3D "platforms/cpp/examples/conf= ig/example-cache.xml";
= cfg.springCfgPath =3D "config/example-cache.xml";
try
{
// Start a node.
Ignite grid =3D Ignition::Start(cfg);
std::cout << std::endl;
= std::cout << ">= >> Cache node started." << std::endl;
std::cout << std::endl;

//string key<= /div>
Cache<std::strin= g, CBusinessObject> cache =3D grid.GetCache<std::string, CBusinessObj= ect>("BU");
<= /span>cache.Clear();
CBusinessObject = obj("MSFT", 45.23);
//save = in cache
cache.Put(= "MSFT", obj);

//retreive from cache
CBusinessObject result =3D cache.Get("MSFT"= ;);

= std::cout << result.ToString();

// Stop node.
Ignition::StopAll(false);
}
catch (IgniteError& err)
{
std::cout << "An error occurred: " << err.G= etText() << std::endl;
}

<= /span>std::cout << std::endl;
std::cout << ">>> Execution finished, p= ress any key to exit ..." << std::endl;
std::cout << std::endl;

=
std::cin.get();

=C2=A0 =C2=A0 return 0;
}
<= br>
Thanks for any help.





<= /div>--
Alexey Kuznetsov
GridGai= n Systems
www.grid= gain.com





--001a11c161f0692bc30531637c52--