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 26D6C19CBC for ; Wed, 27 Apr 2016 15:51:19 +0000 (UTC) Received: (qmail 68436 invoked by uid 500); 27 Apr 2016 15:51:19 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 68392 invoked by uid 500); 27 Apr 2016 15:51:18 -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 68381 invoked by uid 99); 27 Apr 2016 15:51:18 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2016 15:51:18 +0000 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 041BE1A00D8 for ; Wed, 27 Apr 2016 15:51:17 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id q76so18277253qke.2 for ; Wed, 27 Apr 2016 08:51:17 -0700 (PDT) X-Gm-Message-State: AOPr4FW0B5c3AzE+/JmOFyUOed5k/a/D0jYkaCXfsJkPq5c23B2dAgbM20mXneCAz6ZkqoJJF0oEP4HF/YbyhNSl X-Received: by 10.55.77.216 with SMTP id a207mr9749614qkb.80.1461772276490; Wed, 27 Apr 2016 08:51:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.83.9 with HTTP; Wed, 27 Apr 2016 08:50:36 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Wed, 27 Apr 2016 08:50:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Error running nodes in .net and c++ To: user Content-Type: multipart/alternative; boundary=001a114a7d9848a1fa05317961c5 --001a114a7d9848a1fa05317961c5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Argh=E2=80=A6 sorry, I forgot :( On Wed, Apr 27, 2016 at 8:48 AM, Pavel Tupitsyn wrote: > Dmitriy, nightly builds do not include Ignite.NET. > > On Wed, Apr 27, 2016 at 6:45 PM, Dmitriy Setrakyan > wrote: > >> Murthy, >> >> Is this what you are looking for? >> https://ignite.apache.org/community/contribute.html#nightly-builds >> >> D. >> >> On Wed, Apr 27, 2016 at 8:13 AM, Murthy Kakarlamudi >> wrote: >> >>> Great..Thank you so much Vladimir. While I wait for 1.6 release, can I >>> get the latest source, build it to use? Or are the pre-GA 1.6 binaries >>> available to download? >>> >>> Thanks, >>> Murthy. >>> >>> On Wed, Apr 27, 2016 at 9:45 AM, Vladimir Ozerov >>> wrote: >>> >>>> Murthy, >>>> >>>> As per initial issue - I created a ticket and fixed the bug causing >>>> your initial problem (*"org.apache.ignite.**IgniteException: Spring >>>> application context resource is not injected"*). The fix will be >>>> included into upcoming Ignite 1.6 release. >>>> >>>> Vladimir. >>>> >>>> On Wed, Apr 27, 2016 at 11:50 AM, Vladimir Ozerov >>> > wrote: >>>> >>>>> Hi Murthy, >>>>> >>>>> Please provide configs you used to start clients and servers. >>>>> >>>>> Vladimir. >>>>> >>>>> On Wed, Apr 27, 2016 at 5:45 AM, Murthy Kakarlamudi >>>>> wrote: >>>>> >>>>>> Can someone please help how Ignite works for the following use case. >>>>>> The server node loads data from Persistent Store into cache upon sta= rt up. >>>>>> There will be a couple of client nodes (c++, .net based) that needs = to >>>>>> access the cache. >>>>>> The server node will have the configuration for cachestore. Should >>>>>> the client nodes also have the configuration for cachestore? I am ho= ping no >>>>>> because all they need is to read the cache. >>>>>> But I am assuming, if these client nodes can also update the cache >>>>>> then the cachestore config is required if write through is enabled. >>>>>> Please validate my assumptions. >>>>>> >>>>>> Thanks, >>>>>> Satya... >>>>>> >>>>>> On Tue, Apr 26, 2016 at 9:44 AM, Murthy Kakarlamudi >>>>> > wrote: >>>>>> >>>>>>> No..I am not. I have different configs for my server node in java v= s >>>>>>> my client node in c++. That was the question I had. In my server no= de that >>>>>>> loads the data from persistent store to cache, I configured cachest= ore. 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 < >>>>>>> vozerov@gridgain.com> 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 configu= ration in >>>>>>>> advance. >>>>>>>> >>>>>>>> Vladimir. >>>>>>>> >>>>>>>> On Tue, Apr 26, 2016 at 3:27 PM, Murthy Kakarlamudi < >>>>>>>> ksatya@gmail.com> 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=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:uti= l=3D" >>>>>>>>> http://www.springframework.org/schema/util" >>>>>>>>> xsi:schemaLocation=3D" >>>>>>>>> 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.xs= d >>>>>>>>> "> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>>> class=3D"org.springframework.jdbc.datasource.DriverManagerDataSou= rce"> >>>>>>>>> >>>>>>>> value=3D"com.microsoft.sqlserver.jdbc.SQLServerDriver" /> >>>>>>>>> >>>>>>>> value=3D"jdbc:sqlserver://LAPTOP-QIT4AVOG\MSSQLSERVER64;databaseN= ame=3DPrimeOne;integratedSecurity=3Dtrue" >>>>>>>>> /> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> class=3D"org.apache.ignite.configuration.IgniteConfiguration"> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>>> class=3D"org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFac= tory"> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>>> class=3D"org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDisco= veryVmIpFinder"> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> 127.0.0.1:47500..47509 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Error: >>>>>>>>> >>> Cache node started. >>>>>>>>> >>>>>>>>> [08:27:25,045][SEVERE][exchange-worker-#38%null%][GridDhtPartitio= nsExchangeFuture] >>>>>>>>> Failed to reinitialize local partitions (preloading will be stopp= ed): >>>>>>>>> GridDhtPartitionExchangeId [topVer=3DAffinityTopologyVersion [top= Ver=3D11, >>>>>>>>> minorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDISCOVERY_CUSTOM_EVT] >>>>>>>>> class org.apache.ignite.IgniteException: Spring application >>>>>>>>> context resource is not injected. >>>>>>>>> at >>>>>>>>> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.crea= te(CacheJdbcPojoStoreFactory.java:156) >>>>>>>>> at >>>>>>>>> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.crea= te(CacheJdbcPojoStoreFactory.java:96) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.cr= eateCache(GridCacheProcessor.java:1243) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.pr= epareCacheStart(GridCacheProcessor.java:1638) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.pr= epareCachesStart(GridCacheProcessor.java:1563) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.distributed.dht.prelo= ader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeF= uture.java:956) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.distributed.dht.prelo= ader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.j= ava:523) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCachePartitionExc= hangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:129= 7) >>>>>>>>> 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%][GridCachePartit= ionExchangeManager] >>>>>>>>> Failed to wait for completion of partition map exchange (preloadi= ng will >>>>>>>>> not start): GridDhtPartitionsExchangeFuture [dummy=3Dfalse, >>>>>>>>> forcePreload=3Dfalse, reassign=3Dfalse, discoEvt=3DDiscoveryCusto= mEvent >>>>>>>>> [customMsg=3DDynamicCacheChangeBatch [reqs=3D[DynamicCacheChangeR= equest >>>>>>>>> [deploymentId=3D8ea535e3451-d29afc27-9b4b-4125-bbf2-232c08daa0cb, >>>>>>>>> startCfg=3DCacheConfiguration [name=3DbuCache, >>>>>>>>> storeConcurrentLoadAllThreshold=3D5, rebalancePoolSize=3D2, >>>>>>>>> rebalanceTimeout=3D10000, evictPlc=3Dnull, evictSync=3Dfalse, >>>>>>>>> evictKeyBufSize=3D1024, evictSyncConcurrencyLvl=3D4, evictSyncTim= eout=3D10000, >>>>>>>>> evictFilter=3Dnull, evictMaxOverflowRatio=3D10.0, eagerTtl=3Dtrue= , >>>>>>>>> dfltLockTimeout=3D0, startSize=3D1500000, nearCfg=3Dnull, writeSy= nc=3DPRIMARY_SYNC, >>>>>>>>> storeFactory=3DCacheJdbcPojoStoreFactory [batchSizw=3D512, >>>>>>>>> dataSrcBean=3DmyDataSource, dialect=3Dnull, maxPoolSize=3D4, maxW= riteAttempts=3D2, >>>>>>>>> parallelLoadCacheMinThreshold=3D512, >>>>>>>>> hasher=3Do.a.i.cache.store.jdbc.JdbcTypeDefaultHasher@78d010a2, >>>>>>>>> dataSrc=3Dnull], storeKeepBinary=3Dfalse, loadPrevVal=3Dfalse, >>>>>>>>> aff=3Do.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction@= 76311661, >>>>>>>>> cacheMode=3DPARTITIONED, atomicityMode=3DATOMIC, atomicWriteOrder= Mode=3DPRIMARY, >>>>>>>>> backups=3D1, invalidate=3Dfalse, tmLookupClsName=3Dnull, rebalanc= eMode=3DASYNC, >>>>>>>>> rebalanceOrder=3D0, rebalanceBatchSize=3D524288, >>>>>>>>> rebalanceBatchesPrefetchCount=3D2, offHeapMaxMem=3D-1, swapEnable= d=3Dfalse, >>>>>>>>> maxConcurrentAsyncOps=3D500, writeBehindEnabled=3Dfalse, >>>>>>>>> writeBehindFlushSize=3D10240, writeBehindFlushFreq=3D5000, >>>>>>>>> writeBehindFlushThreadCnt=3D1, writeBehindBatchSize=3D512, >>>>>>>>> memMode=3DONHEAP_TIERED, >>>>>>>>> affMapper=3Do.a.i.i.processors.cache.CacheDefaultBinaryAffinityKe= yMapper@2e41d426, >>>>>>>>> rebalanceDelay=3D0, rebalanceThrottle=3D0, interceptor=3Dnull, >>>>>>>>> longQryWarnTimeout=3D3000, readFromBackup=3Dtrue, >>>>>>>>> nodeFilter=3Do.a.i.configuration.CacheConfiguration$IgniteAllNode= sPredicate@d211e68, >>>>>>>>> sqlSchema=3Dnull, sqlEscapeAll=3Dfalse, sqlOnheapRowCacheSize=3D1= 0240, >>>>>>>>> snapshotableIdx=3Dfalse, cpOnRead=3Dtrue, topValidator=3Dnull], c= acheType=3DUSER, >>>>>>>>> initiatingNodeId=3Dbc7d2aa2-4a64-467f-8097-d0f579dec0b3, nearCach= eCfg=3Dnull, >>>>>>>>> clientStartOnly=3Dtrue, stop=3Dfalse, close=3Dfalse, failIfExists= =3Dfalse, >>>>>>>>> template=3Dfalse, exchangeNeeded=3Dtrue, cacheFutTopVer=3Dnull, >>>>>>>>> cacheName=3DbuCache]], clientNodes=3Dnull, >>>>>>>>> id=3D45ec9825451-cbb8263a-223e-4f3e-8492-71f2612ddae6, >>>>>>>>> clientReconnect=3Dfalse], affTopVer=3DAffinityTopologyVersion [to= pVer=3D11, >>>>>>>>> minorTopVer=3D1], super=3DDiscoveryEvent [evtNode=3DTcpDiscoveryN= ode >>>>>>>>> [id=3Dbc7d2aa2-4a64-467f-8097-d0f579dec0b3, addrs=3D[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=3D[LAPTOP-QIT4AV= OG/ >>>>>>>>> 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=3D0, order=3D1= 1, intOrder=3D0, >>>>>>>>> lastExchangeTime=3D1461673644205, loc=3Dtrue, ver=3D1.5.0#2015122= 9-sha1:f1f8cda2, >>>>>>>>> isClient=3Dtrue], topVer=3D11, nodeId8=3Dbc7d2aa2, msg=3Dnull, >>>>>>>>> type=3DDISCOVERY_CUSTOM_EVT, tstamp=3D1461673645026]], >>>>>>>>> rcvdIds=3DGridConcurrentHashSet [elements=3D[]], rmtIds=3Dnull, >>>>>>>>> exchId=3DGridDhtPartitionExchangeId [topVer=3DAffinityTopologyVer= sion >>>>>>>>> [topVer=3D11, minorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDISCOVER= Y_CUSTOM_EVT], >>>>>>>>> init=3Dtrue, ready=3Dfalse, replied=3Dfalse, added=3Dtrue, >>>>>>>>> initFut=3DGridFutureAdapter [resFlag=3D2, res=3Dfalse, startTime= =3D1461673645026, >>>>>>>>> endTime=3D1461673645046, ignoreInterrupts=3Dfalse, lsnr=3Dnull, s= tate=3DDONE], >>>>>>>>> topSnapshot=3Dnull, lastVer=3Dnull, partReleaseFut=3Dnull, skipPr= eload=3Dfalse, >>>>>>>>> clientOnlyExchange=3Dfalse, initTs=3D1461673645026, >>>>>>>>> oldest=3D7700cd68-08b1-4571-8744-0e91dcdad9b0, oldestOrder=3D1, e= vtLatch=3D0, >>>>>>>>> remaining=3D[], super=3DGridFutureAdapter [resFlag=3D1, res=3Dcla= ss >>>>>>>>> o.a.i.IgniteException: Spring application context resource is not >>>>>>>>> injected., startTime=3D1461673645026, endTime=3D1461673645046, >>>>>>>>> ignoreInterrupts=3Dfalse, lsnr=3Dnull, state=3DDONE]] >>>>>>>>> class org.apache.ignite.IgniteCheckedException: Spring applicatio= n >>>>>>>>> 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(Gri= dFutureAdapter.java:166) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.util.future.GridFutureAdapter.get(Grid= FutureAdapter.java:115) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCachePartitionExc= hangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:129= 9) >>>>>>>>> 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.crea= te(CacheJdbcPojoStoreFactory.java:156) >>>>>>>>> at >>>>>>>>> org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.crea= te(CacheJdbcPojoStoreFactory.java:96) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.cr= eateCache(GridCacheProcessor.java:1243) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.pr= epareCacheStart(GridCacheProcessor.java:1638) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.GridCacheProcessor.pr= epareCachesStart(GridCacheProcessor.java:1563) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.distributed.dht.prelo= ader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeF= uture.java:956) >>>>>>>>> at >>>>>>>>> org.apache.ignite.internal.processors.cache.distributed.dht.prelo= ader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.j= ava:523) >>>>>>>>> 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 < >>>>>>>>> vozerov@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: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> with this: >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> It should help. >>>>>>>>>> >>>>>>>>>> Vladimir. >>>>>>>>>> >>>>>>>>>> On Tue, Apr 26, 2016 at 1:36 AM, Murthy Kakarlamudi < >>>>>>>>>> ksatya@gmail.com> 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=3D0B8lM91-_3MwRZmF6N0tnN1pyN2M >>>>>>>>>>> >>>>>>>>>>> C++ Project: >>>>>>>>>>> https://drive.google.com/open?id=3D0B8lM91-_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.Ignit= eException: >>>>>>>>>>>> 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 < >>>>>>>>>>>> vozerov@gridgain.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Alexey Kuznetsov, >>>>>>>>>>>>> >>>>>>>>>>>>> Provided you have more expertise with POJO store, could you >>>>>>>>>>>>> please advise what could cause this exception? Seems that POJ= O 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 < >>>>>>>>>>>>> ksatya@gmail.com> 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 cli= ent. I am >>>>>>>>>>>>>>> getting the below error trying to start the node from c++. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> [19:08:57] Security status [authentication=3Doff, tls/ssl= =3Doff] >>>>>>>>>>>>>>> [19:08:58,163][SEVERE][main][IgniteKernal] Failed to start >>>>>>>>>>>>>>> manager: GridManagerAdapter [enabled=3Dtrue, >>>>>>>>>>>>>>> name=3Do.a.i.i.managers.discovery.GridDiscoveryManager] >>>>>>>>>>>>>>> class org.apache.ignite.IgniteCheckedException: Remote node >>>>>>>>>>>>>>> has peer class loading enabled flag different from local [l= ocId8=3Df02445af, >>>>>>>>>>>>>>> locPeerClassLoading=3Dtrue, rmtId8=3D8e52f9c9, rmtPeerClass= Loading=3Dfalse, >>>>>>>>>>>>>>> rmtAddrs=3D[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT4AVO= G/ >>>>>>>>>>>>>>> 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.GridDiscovery= Manager.checkAttributes(GridDiscoveryManager.java:1027) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.managers.discovery.GridDiscovery= Manager.start(GridDiscoveryManager.java:680) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.IgniteKernal.startManager(Ignite= Kernal.java:1505) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.= java:917) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.s= tart0(IgnitionEx.java:1688) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.s= tart(IgnitionEx.java:1547) >>>>>>>>>>>>>>> at >>>>>>>>>>>>>>> org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.jav= a: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.PlatformAbst= ractBootstrap.start(PlatformAbstractBootstrap.java >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Below if my config for .net node: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instan= ce" >>>>>>>>>>>>>>> xsi:schemaLocation=3D" >>>>>>>>>>>>>>> http://www.springframework.org/schema/beans >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xs= d >>>>>>>>>>>>>>> "> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.IgniteConfiguratio= n"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.ConnectorConfigura= tion"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.CacheConfiguration= "> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"120000"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.platform.dotnet.PlatformDotNetCa= cheStoreFactory"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"TestIgniteDAL.SQLServerStore, TestIgniteDAL"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.cache.CacheTypeMetadata"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"BusinessUnit"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.lang.Integer"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.lang.String"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.lang.Integer"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.util.Date"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.lang.Integer"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"java.util.Date"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instan= ce" >>>>>>>>>>>>>>> xmlns:util=3D" >>>>>>>>>>>>>>> http://www.springframework.org/schema/util" >>>>>>>>>>>>>>> xsi:schemaLocation=3D" >>>>>>>>>>>>>>> http://www.springframework.org/schema/beans >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> http://www.springframework.org/schema/beans/spring-beans.xs= d >>>>>>>>>>>>>>> http://www.springframework.org/schema/util >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> http://www.springframework.org/schema/util/spring-util.xsd"= > >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.IgniteConfiguratio= n"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"true"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.CacheConfiguration= "> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.configuration.CacheConfiguration= "> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> value=3D"TRANSACTIONAL"/> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.spi.discovery.tcp.TcpDiscoverySp= i"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> class=3D"org.apache.ignite.spi.discovery.tcp.ipfinder.vm.Tc= pDiscoveryVmIpFinder"> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> 127.0.0.1:47500 >>>>>>>>>>>>>>> ..47501 >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Below c++ code is trying to access the cache: >>>>>>>>>>>>>>> int main() >>>>>>>>>>>>>>> { >>>>>>>>>>>>>>> IgniteConfiguration cfg; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> cfg.jvmInitMem =3D 512; >>>>>>>>>>>>>>> cfg.jvmMaxMem =3D 512; >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> //cfg.springCfgPath =3D >>>>>>>>>>>>>>> "platforms/cpp/examples/config/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 >>>>>>>>>>>>>>> Cache cache =3D >>>>>>>>>>>>>>> grid.GetCache("BU"); >>>>>>>>>>>>>>> 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.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 >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > --001a114a7d9848a1fa05317961c5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Argh=E2=80=A6 sorry, I forgot :(

On Wed, Apr 27, 2016 at 8:48 AM, Pave= l Tupitsyn <ptupitsyn@gridgain.com> wrote:
Dmitriy, nightly builds do not inclu= de Ignite.NET.

On Wed, Apr 27, 2016 at 6:45 PM,= Dmitriy Setrakyan <dsetrakyan@apache.org> wrote:

On Wed, Apr 27, 2016 at 8:13 AM, Murthy Ka= karlamudi <ksatya@gmail.com> wrote:
Great..Thank you so much Vladimir. While I wait = for 1.6 release, can I get the latest source, build it to use? Or are the p= re-GA 1.6 binaries available to download?

Thanks,
<= div>Murthy.

On Wed, Apr 27, 2016 at 9:45 AM, Vladimir Ozerov <voze= rov@gridgain.com> wrote:
Murthy,

As per initial issue - I created = a ticket and fixed the bug causing your initial problem ("org.apache.ignite.IgniteException: Spring application context resource is not i= njected"). The fix will be included into upcoming Ignite 1.6 relea= se.=C2=A0

Vladi= mir.
<= br>
On Wed, Apr 27, 2016 at 11:50 AM, Vladimir Oz= erov <vozerov@gridgain.com> wrote:
Hi Murthy,

Please provide= configs you used to start clients and servers.=C2=A0

Vladimir.
<= div>

On Wed, Apr 2= 7, 2016 at 5:45 AM, Murthy Kakarlamudi <ksatya@gmail.com> wro= te:
Can someone please h= elp how Ignite works for the following use case. The server node loads data= from Persistent Store into cache upon start up. There will be a couple of = client nodes (c++, .net based) that needs to access the cache.=C2=A0
Th= e server node will have the configuration for cachestore. Should the client= nodes also have the configuration for cachestore? I am hoping no because a= ll they need is to read the cache.=C2=A0
But I am assuming, if th= ese client nodes can also update the cache then the cachestore config is re= quired if write through is enabled.=C2=A0
Please validate my assu= mptions.

Thanks,
Satya...

On Tue, Ap= r 26, 2016 at 9:44 AM, Murthy Kakarlamudi <ksatya@gmail.com> = wrote:
No..I am not. I h= ave 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 per= sistent 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.=C2=A0

Let me try the option you suggested.

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

Do y= ou start all nodes with the same XML configuration? Please ensure that this= is so, and all nodes know all caches from configuration in advance.
<= span>

Vladimir.

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

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

<!-- Licensed to the Apache Soft= ware Foundation (ASF) under one or more contributor=C2=A0
license agreements. See the NOTICE fi= le distributed with this work for additional=C2=A0
information regarding copyright ownership. T= he ASF licenses this file to=C2=A0
You under the Apache License, Version 2.0 (the "License= "); you may not use=C2=A0
this file except in compliance with the License. You may obtain = a copy of=C2=A0
the = License at http://www.apache.org/licenses/LICENSE-2.0 Unless required=C2= =A0
by applicable la= w or agreed to in writing, software distributed under the=C2=A0
<= span style=3D"white-space:pre-wrap"> License is distributed on an &q= uot;AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS=C2=A0
OF ANY KIND, either express or im= plied. See the License for the specific=C2=A0
language governing permissions and limitations un= der the License. -->

<!-- Ignit= e Spring configuration file to startup Ignite cache. This file=C2=A0
<= div> demonstrates how to config= ure cache using Spring. Provided cache will be=C2=A0
created on node startup. Use this configu= ration file when running HTTP REST=C2=A0
examples (see 'examples/rest' folder). When st= arting a standalone node, you=C2=A0
need to execute the following command: {IGNITE_HOME}/bin/ig= nite.{bat|sh}=C2=A0
= examples/config/example-cache.xml When starting Ignite from Java IDE, pass= =C2=A0
path t= o this file to Ignition: Ignition.start("examples/config/example-cache= .xml"); -->
xsi:schemaLocat= ion=3D"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.springframework.org/schema/util<= /div>

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

<bean id=3D"igni= te.cfg" class=3D"org.apache.ignite.configuration.IgniteConfigurat= ion">
=
<propert= y name=3D"binaryConfiguration">
<bean class=3D"org.apache.ignite.configu= ration.BinaryConfiguration">
<property name=3D"compactFooter" va= lue=3D"false" />
</bean>
</property>

<property name=3D"cacheConfiguration&quo= t;>
<list>= ;
<!-- = Partitioned cache example configuration (Atomic mode). -->
<bean class=3D"o= rg.apache.ignite.configuration.CacheConfiguration">

<= /div>
<property nam= e=3D"atomicityMode" value=3D"ATOMIC" />
<property name=3D"ba= ckups" value=3D"1" />
<property name=3D"readThrough= " value=3D"true" />
<property name=3D"writeThrough" value=3D= "true" />
<property name=3D"cacheStoreFactory">
<bean
class=3D"org.apache.ig= nite.cache.store.jdbc.CacheJdbcPojoStoreFactory">
<!-- <property name=3D&qu= ot;dataSourceBean" value=3D"myDataSource" /> =C2=A0-->=
<pro= perty name=3D"dataSource" ref=3D"myDataSource" />
<= ;property name=3D"types">
<list>
<bean class=3D"org.apache.ignite.cache.s= tore.jdbc.JdbcType">
<property name=3D"cacheName" value=3D"b= uCache" />
= <property name=3D"databaseTable" value=3D"Busines= sUnit" />
= <property name=3D"keyType" value=3D"java.lang.Inte= ger" />
<property name=3D"keyFields">
<list>
<bean class=3D"org.apa= che.ignite.cache.store.jdbc.JdbcTypeField">
<property name=3D"dat= abaseFieldType">
= <util:constant static-field=3D"java.sql.Types.BIG= INT" />
= </property>
= <property name=3D"databaseFieldName" value= =3D"BUID" />
= <property name=3D"javaFieldType" value=3D&qu= ot;java.lang.Integer" />
<property name=3D"javaFieldName" valu= e=3D"buid" />
</bean>
</list>
</property>
<property name=3D"= valueType" value=3D"models.BusinessUnit" />
<property name=3D&quo= t;valueFields">
= <list>
= <bean class=3D"org.apache.ignite.cache.store.jdbc= .JdbcTypeField">
= <property name=3D"databaseFieldType">
<util:co= nstant static-field=3D"java.sql.Types.BIGINT" />
</property>
<propert= y name=3D"databaseFieldName" value=3D"BUID" />
=
<property = name=3D"javaFieldType" value=3D"java.lang.Integer" />= ;
<pr= operty name=3D"javaFieldName" value=3D"buid" />
</bean>=
<bean= class=3D"org.apache.ignite.cache.store.jdbc.JdbcTypeField">
<prope= rty name=3D"databaseFieldType">
<util:constant static-field=3D&quo= t;java.sql.Types.VARCHAR" />
</property>
<property name=3D"databaseFi= eldName" value=3D"BUName" />
<property name=3D"javaFieldT= ype" value=3D"java.lang.String" />
<property name=3D"jav= aFieldName" value=3D"buName" />
</bean>
<bean class=3D"org.ap= ache.ignite.cache.store.jdbc.JdbcTypeField">
<property name=3D"dat= abaseFieldType">
= <util:constant static-field=3D"java.sql.Types.BIG= INT" />
= </property>
= <property name=3D"databaseFieldName" value= =3D"CreatedByID" />
<property name=3D"javaFieldType" valu= e=3D"java.lang.Integer" />
<property name=3D"javaFieldName&quo= t; value=3D"createdByID" />
</bean>
<= span style=3D"white-space:pre-wrap"> </list>
</property><= /div>
</bean>= ;
</list&g= t;
</proper= ty>
&= lt;/bean>
<= ;/property>
</bean>
= </list>
</= property>

= <!-- Explicitly configure TCP discovery SPI to provide list of = initial=C2=A0
node= s. -->
<prope= rty name=3D"discoverySpi">
<bean class=3D"org.apache.ignite.spi.discover= y.tcp.TcpDiscoverySpi">
<property name=3D"ipFinder">
<!-- Ignite provides several= options for automatic discovery that can=C2=A0
be used instead os static IP = based discovery. For information on all options=C2=A0
refer to our documentation: <= a href=3D"http://apacheignite.readme.io/docs/cluster-config" target=3D"_bla= nk">http://apacheignite.readme.io/docs/cluster-config -->
<!-- Uncomment st= atic IP finder to enable static-based discovery of=C2=A0
initial nodes. -->
<= span style=3D"white-space:pre-wrap"> <bean
class=3D"org.apache.ignite.s= pi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<!-- <bean class=3D&qu= ot;org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulti= castIpFinder"> -->
<property name=3D"addresses">
<list>
<!-- In distributed envir= onment, replace with actual host IP address. -->
= <value>127.0.0.1:= 47500..47509</value>
= </list>
= </property>
</bean>
= </property>
</bean>
<= /span></property>
</bean>
</beans>


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=3DAffinityT= opologyVersion [topVer=3D11, minorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDIS= COVERY_CUSTOM_EVT]
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.CacheJd= bcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:156)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.cache.store.jdbc.CacheJdbcPoj= oStoreFactory.create(CacheJdbcPojoStoreFactory.java:96)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.GridCac= heProcessor.createCache(GridCacheProcessor.java:1243)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.GridCacheP= rocessor.prepareCacheStart(GridCacheProcessor.java:1638)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.GridCac= heProcessor.prepareCachesStart(GridCacheProcessor.java:1563)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.dis= tributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtP= artitionsExchangeFuture.java:956)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at = org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridD= htPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:523)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processo= rs.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePar= titionExchangeManager.java:1297)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at o= rg.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:74= 5)
[08:27:25,063][SEVERE][exchange-worker-#38%null%][GridC= achePartitionExchangeManager] Failed to wait for completion of partition ma= p exchange (preloading will not start): GridDhtPartitionsExchangeFuture [du= mmy=3Dfalse, forcePreload=3Dfalse, reassign=3Dfalse, discoEvt=3DDiscoveryCu= stomEvent [customMsg=3DDynamicCacheChangeBatch [reqs=3D[DynamicCacheChangeR= equest [deploymentId=3D8ea535e3451-d29afc27-9b4b-4125-bbf2-232c08daa0cb, st= artCfg=3DCacheConfiguration [name=3DbuCache, storeConcurrentLoadAllThreshol= d=3D5, rebalancePoolSize=3D2, rebalanceTimeout=3D10000, evictPlc=3Dnull, ev= ictSync=3Dfalse, evictKeyBufSize=3D1024, evictSyncConcurrencyLvl=3D4, evict= SyncTimeout=3D10000, evictFilter=3Dnull, evictMaxOverflowRatio=3D10.0, eage= rTtl=3Dtrue, dfltLockTimeout=3D0, startSize=3D1500000, nearCfg=3Dnull, writ= eSync=3DPRIMARY_SYNC, storeFactory=3DCacheJdbcPojoStoreFactory [batchSizw= =3D512, dataSrcBean=3DmyDataSource, dialect=3Dnull, maxPoolSize=3D4, maxWri= teAttempts=3D2, parallelLoadCacheMinThreshold=3D512, hasher=3Do.a.i.cache.s= tore.jdbc.JdbcTypeDefaultHasher@78d010a2, dataSrc=3Dnull], storeKeepBinary= =3Dfalse, loadPrevVal=3Dfalse, aff=3Do.a.i.cache.affinity.rendezvous.Rendez= vousAffinityFunction@76311661, cacheMode=3DPARTITIONED, atomicityMode=3DATO= MIC, atomicWriteOrderMode=3DPRIMARY, backups=3D1, invalidate=3Dfalse, tmLoo= kupClsName=3Dnull, rebalanceMode=3DASYNC, rebalanceOrder=3D0, rebalanceBatc= hSize=3D524288, rebalanceBatchesPrefetchCount=3D2, offHeapMaxMem=3D-1, swap= Enabled=3Dfalse, maxConcurrentAsyncOps=3D500, writeBehindEnabled=3Dfalse, w= riteBehindFlushSize=3D10240, writeBehindFlushFreq=3D5000, writeBehindFlushT= hreadCnt=3D1, writeBehindBatchSize=3D512, memMode=3DONHEAP_TIERED, affMappe= r=3Do.a.i.i.processors.cache.CacheDefaultBinaryAffinityKeyMapper@2e41d426, = rebalanceDelay=3D0, rebalanceThrottle=3D0, interceptor=3Dnull, longQryWarnT= imeout=3D3000, readFromBackup=3Dtrue, nodeFilter=3Do.a.i.configuration.Cach= eConfiguration$IgniteAllNodesPredicate@d211e68, sqlSchema=3Dnull, sqlEscape= All=3Dfalse, sqlOnheapRowCacheSize=3D10240, snapshotableIdx=3Dfalse, cpOnRe= ad=3Dtrue, topValidator=3Dnull], cacheType=3DUSER, initiatingNodeId=3Dbc7d2= aa2-4a64-467f-8097-d0f579dec0b3, nearCacheCfg=3Dnull, clientStartOnly=3Dtru= e, stop=3Dfalse, close=3Dfalse, failIfExists=3Dfalse, template=3Dfalse, exc= hangeNeeded=3Dtrue, cacheFutTopVer=3Dnull, cacheName=3DbuCache]], clientNod= es=3Dnull, id=3D45ec9825451-cbb8263a-223e-4f3e-8492-71f2612ddae6, clientRec= onnect=3Dfalse], affTopVer=3DAffinityTopologyVersion [topVer=3D11, minorTop= Ver=3D1], super=3DDiscoveryEvent [evtNode=3DTcpDiscoveryNode [id=3Dbc7d2aa2= -4a64-467f-8097-d0f579dec0b3, addrs=3D[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:880= 6:0:8d00:15e5:c0bf:286e:8785, 2600:8806:0:8d00:3ccf:1e94:1ab4:83a9], sockAd= drs=3D[LAPTOP-QIT4AVOG/1= 92.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:90d= 7: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], disc= Port=3D0, order=3D11, intOrder=3D0, lastExchangeTime=3D1461673644205, loc= =3Dtrue, ver=3D1.5.0#20151229-sha1:f1f8cda2, isClient=3Dtrue], topVer=3D11,= nodeId8=3Dbc7d2aa2, msg=3Dnull, type=3DDISCOVERY_CUSTOM_EVT, tstamp=3D1461= 673645026]], rcvdIds=3DGridConcurrentHashSet [elements=3D[]], rmtIds=3Dnull= , exchId=3DGridDhtPartitionExchangeId [topVer=3DAffinityTopologyVersion [to= pVer=3D11, minorTopVer=3D1], nodeId=3Dbc7d2aa2, evt=3DDISCOVERY_CUSTOM_EVT]= , init=3Dtrue, ready=3Dfalse, replied=3Dfalse, added=3Dtrue, initFut=3DGrid= FutureAdapter [resFlag=3D2, res=3Dfalse, startTime=3D1461673645026, endTime= =3D1461673645046, ignoreInterrupts=3Dfalse, lsnr=3Dnull, state=3DDONE], top= Snapshot=3Dnull, lastVer=3Dnull, partReleaseFut=3Dnull, skipPreload=3Dfalse= , clientOnlyExchange=3Dfalse, initTs=3D1461673645026, oldest=3D7700cd68-08b= 1-4571-8744-0e91dcdad9b0, oldestOrder=3D1, evtLatch=3D0, remaining=3D[], su= per=3DGridFutureAdapter [resFlag=3D1, res=3Dclass o.a.i.IgniteException: Sp= ring application context resource is not injected., startTime=3D14616736450= 26, endTime=3D1461673645046, ignoreInterrupts=3Dfalse, lsnr=3Dnull, state= =3DDONE]]
class org.apache.ignite.IgniteCheckedException: S= pring application context resource is not injected.
=C2=A0 =C2=A0= =C2=A0 =C2=A0 at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUt= ils.java:7005)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.i= nternal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:166)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.util.future= .GridFutureAdapter.get(GridFutureAdapter.java:115)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.GridCacheParti= tionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.j= ava:1299)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.intern= al.util.worker.GridWorker.run(GridWorker.java:110)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteException: Spring application c= ontext 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 at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.crea= te(CacheJdbcPojoStoreFactory.java:96)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCa= che(GridCacheProcessor.java:1243)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at = org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCache= Start(GridCacheProcessor.java:1638)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 a= t org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCac= hesStart(GridCacheProcessor.java:1563)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.ignite.internal.processors.cache.distributed.dht.preloade= r.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFutu= re.java:956)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.int= ernal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeF= uture.init(GridDhtPartitionsExchangeFuture.java:523)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.processors.cache.GridCacheP= artitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManag= er.java:1297)
=
On Tue, Apr 26, 2016 at 8:06 AM, Vladimir Oz= erov <vozerov@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:
<= br>
<property name=3D"dataSourceBean" value=3D"myData= Source" />

with thi= s:

= <pr= operty name=3D"dataSource" ref=3D"myDataSource" />

It should help.

Vladimir.

On Tue, Apr 26, 2016 at 1:36 AM, M= urthy Kakarlamudi <ksatya@gmail.com> wrote:
Hi Alexey...Apologize the delay in my res= ponse. Below are the 2 links from gdrive for my Java and c++ projects.
=
Java Project:

=
C++ Project:

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:<= br>
I see in stack trace &qu= ot;Caused by: class org.apache.ignite.IgniteException: Spring application con= text resource is not injected."

Also Ca= cheJdbcPojoStoreFactory contains such declaration:
@SpringApplica= tionContextResource
private transient Object appCtx;
Anybody know why appCtx may not be injected?
<= br>
Also=C2=A0Satya, it is possi= ble for you to prepare small reproducible example that we could debug?


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

Provided you have = more expertise with POJO store, could you please advise what could cause th= is exception? Seems that POJO store expects some injection, which doesn'= ;t happen. =C2=A0
Are there any specific requirements here? C++ n= ode starts as a regular node and also use Spring.

Vladimir.
=

On Mon, Apr 25, 2= 016 at 5:32 PM, Murthy Kakarlamudi <ksatya@gmail.com> wrote:<= br>
Any help on this issue p= lease...

On Sat, Apr 16, 2016 at 7:29 PM, Murthy Kakarlamudi <ksatya@gmail.co= m> wrote:
= Hi,
=C2=A0 =C2=A0In my use case, I am starting a node from .net which l= oads data from SQL Server table into cache upon start up. I have to read th= ose 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++.=C2=A0

[19:08:57] Security status [authentication=3Doff, tls/ssl=3Doff= ]
[19:08:58,163][SEVERE][main][IgniteKernal] Failed to start mana= ger: GridManagerAdapter [enabled=3Dtrue, name=3Do.a.i.i.managers.discovery.= GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedExcept= ion: Remote node has peer class loading enabled flag different from local [= locId8=3Df02445af, locPeerClassLoading=3Dtrue, rmtId8=3D8e52f9c9, rmtPeerCl= assLoading=3Dfalse, rmtAddrs=3D[LAPTOP-QIT4AVOG/0:0:0:0:0:0:0:1, LAPTOP-QIT= 4AVOG/127.0.0.1, LAPTOP-= QIT4AVOG/192.168.0.5, = LAPTOP-QIT4AVOG/2001:0:9d38:90d7:145b:5bf:bb9b:11d9, LAPTOP-QIT4AVOG/2600:8= 806:0:8d00:0:0:0:1, /2600:8806:0:8d00:3ccf:1e94:1ab4:83a9, /2600:8806:0:8d0= 0:f114:bf30:2068:352d]]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache= .ignite.internal.managers.discovery.GridDiscoveryManager.checkAttributes(Gr= idDiscoveryManager.java:1027)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.= apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDi= scoveryManager.java:680)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apach= e.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1505)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.IgniteKernal.s= tart(IgniteKernal.java:917)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.ap= ache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:= 1688)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.I= gnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1547)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.internal.IgnitionEx.start0(Igniti= onEx.java:1003)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.= internal.IgnitionEx.start(IgnitionEx.java:534)
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:5= 15)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ignite.Ignition.sta= rt(Ignition.java:322)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.i= gnite.internal.processors.platform.PlatformAbstractBootstrap.start(Platform= AbstractBootstrap.java

Below if my config fo= r .net node:
<?xml version=3D"1.0" encoding=3D&= quot;UTF-8"?>

=C2=A0 =C2=A0 = =C2=A0 =C2=A0xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance&q= uot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0xsi:schemaLocation=3D"
=
=C2=A0= <bean id=3D"ignite.cfg" class=3D"org.apache.ignite.confi= guration.IgniteConfiguration">
=C2=A0 =C2=A0 <property= name=3D"connectorConfiguration">
=C2=A0 =C2=A0 =C2= =A0 <bean class=3D"org.apache.ignite.configuration.ConnectorConfigu= ration">
=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= ">
=C2=A0 =C2=A0 =C2=A0 <list>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 <bean class=3D"org.apache.ignite.configuration.Ca= cheConfiguration">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <= ;property name=3D"name" value=3D"BU"/>
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"writeThrough"= ; value=3D"true"/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 <property name=3D"readThrough" value=3D"true"/&g= t;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"w= riteBehindEnabled" value=3D"true"/>
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"writeBehindFlushFrequenc= y" 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"= ;typeName" value=3D"TestIgniteDAL.SQLServerStore, TestIgniteDAL&q= uot;/>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>=
=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&= quot;>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <list><= /div>
=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 &= lt;property name=3D"valueType" value=3D"BusinessUnit"/&= gt;
=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.Inte= ger"/>
=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.String"/>
=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"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"CreatedDat= e" value=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"= ModifiedByID" 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 <entr= y key=3D"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 = </property>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 <!-- 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&q= uot;ascendingFields">
=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&qu= ot; 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.T= cpCommunicationSpi">
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <prop= erty name=3D"sharedMemoryPort" value=3D"-1"/>
<= div>=C2=A0 =C2=A0 =C2=A0 </bean>
=C2=A0 =C2=A0 </propert= y>

=C2=A0 =C2=A0 <property name=3D"disc= overySpi">
=C2=A0 =C2=A0 =C2=A0 <bean class=3D"or= g.apache.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.i= gnite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"add= resses">
=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>
= </beans>


Below is my co= nfig for node from c++:
<?xml version=3D"1.0" e= ncoding=3D"UTF-8"?>

<!--
=C2=A0 Licensed to the Apache Software Foundation (ASF) under one or more<= /div>
=C2=A0 contributor license agreements.=C2=A0 See the NOTICE file = distributed with
=C2=A0 this work for additional information rega= rding copyright ownership.
=C2=A0 The ASF licenses this file to Y= ou under the Apache License, Version 2.0
=C2=A0 (the "Licens= e"); 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 Unless required by applicable law= or agreed to in writing, software
=C2=A0 distributed under the L= icense is distributed on an "AS IS" BASIS,
=C2=A0 WITHO= UT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
=C2=A0 See the License for the specific language governing permissions a= nd
=C2=A0 limitations under the License.
-->

=C2=A0 =C2=A0 =C2=A0 =C2=A0xmlns:xsi=3D"= htt= p://www.w3.org/2001/XMLSchema-instance"
=C2=A0 =C2=A0 = =C2=A0 =C2=A0xmlns:util=3D"http://www.springframework.org/schema/util"
=C2=A0 =C2=A0 =C2=A0 =C2=A0xsi:schemaLocation=3D"
=C2=A0 =C2=A0= =C2=A0 =C2=A0 http://www.springframework.org/schema/util
=C2=A0 =C2=A0 <bean id=3D= "grid.cfg" class=3D"org.apache.ignite.configuration.IgniteCo= nfiguration">
=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"peerCl= assLoadingEnabled" value=3D"true"/>

<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 <property name=3D"cacheConfiguratio= n">
=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 =C2=A0 = =C2=A0 Partitioned 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 Used 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 cla= ss=3D"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 <prop= erty name=3D"backups" value=3D"1"/>
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </bean>
<= br>
=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 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"= ;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 <prop= erty 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"atomicityMode" value=3D"TRANSACTIONAL"/>
=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 </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 <property name=3D"discoverySpi">
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <bean class=3D"org.apache.ignite.sp= i.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 discovery 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 I= P based discovery.
=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 t= o enable static-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 cla= ss=3D"org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIp= Finder">
=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 h= ost 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 <v= alue>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>
=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 </pr= operty>
=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 </bean>
</beans>

Below c++ code is trying to access the cache:
int main()
{
IgniteCon= figuration cfg;

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

//cfg.springCfgPath =3D "platforms/c= pp/examples/config/example-cache.xml";
cfg.springCfgPath =3D "config/example-cache.xm= l";
try
{
// Start a node.
Ignite grid =3D Ignition::Start(cfg);
std::cout << std::end= l;
std::cout <&l= t; ">>> Cache node started." << std::endl;
std::cout << std::en= dl;

= //string key
Cache&= lt;std::string, CBusinessObject> cache =3D grid.GetCache<std::string,= CBusinessObject>("BU");
cache.Clear();
CBu= sinessObject obj("MSFT", 45.23);
<= /span>//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.GetText() << std::endl;
}

std::cout << std::endl;
std::cout << ">>> Exe= cution finished, press any key to exit ..." << std::endl;
<= div> std::cout << std::en= dl;

s= td::cin.get();

=C2=A0 =C2=A0 return 0;
}=

Thanks for any help.





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












--001a114a7d9848a1fa05317961c5--