thanks but that doesnt work

I have the folowing jars in spark classpath for spark 2.2

cache-api-1.0.0.jar
spring-expression-4.3.7.RELEASE.jar
spring-context-4.3.7.RELEASE.jar
spring-core-4.3.7.RELEASE.jar
spring-beans-4.3.7.RELEASE.jar
ignite-spring-2.5.0.jar
ignite-core-2.5.0.jar
ignite-spark-2.5.0.jar


running spark in local mode i execute the following code:

import org.apache.ignite.spark.IgniteDataFrameSettings._
   import org.apache.ignite.spark._
   
   val df =
spark.read.format(FORMAT_IGNITE).option(OPTION_TABLE,"ComplianceSummaryCache.ComplianceSummary").option(OPTION_CONFIG_FILE,"stoxx-server.xml").load()

I get the following error 


Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 2.1.0
      /_/

Using Scala version 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java
1.8.0_151)
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.apache.ignite.spark.IgniteDataFrameSettings._
import org.apache.ignite.spark.IgniteDataFrameSettings._

scala>    import org.apache.ignite.spark._
import org.apache.ignite.spark._

scala>
     |    val df =
spark.read.format(FORMAT_IGNITE).option(OPTION_TABLE,"ComplianceSummaryCache.ComplianceSummary").option(OPTION_CONFIG_FILE,"stoxx-server.xml").load()
18/07/18 10:59:06 ERROR : Failed to resolve default logging config file:
config/java.util.logging.properties
Console logging handler is not configured.
[10:59:07]    __________  ________________
[10:59:07]   /  _/ ___/ |/ /  _/_  __/ __/
[10:59:07]  _/ // (7 7    // /  / / / _/
[10:59:07] /___/\___/_/|_/___/ /_/ /___/
[10:59:07]
[10:59:07] ver. 2.5.0#20180523-sha1:86e110c7
[10:59:07] 2018 Copyright(C) Apache Software Foundation
[10:59:07]
[10:59:07] Ignite documentation: http://ignite.apache.org
[10:59:07]
[10:59:07] Quiet mode.
[10:59:07]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[10:59:07]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[10:59:07]
[10:59:07] OS: Windows 7 6.1 amd64
[10:59:07] VM information: Java(TM) SE Runtime Environment 1.8.0_151-b12
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.151-b12
18/07/18 10:59:07 WARN : Possible too long JVM pause: 510 milliseconds.
18/07/18 10:59:07 WARN GridDiagnostic: Initial heap size is 128MB (should be
no less than 512MB, use -Xms512m -Xmx512m).
[10:59:07] Initial heap size is 128MB (should be no less than 512MB, use
-Xms512m -Xmx512m).
[10:59:07] Configured plugins:
[10:59:07]   ^-- None
[10:59:07]
[10:59:07] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
[tryStop=false, timeout=0]]
18/07/18 10:59:08 WARN TcpCommunicationSpi: Message queue limit is set to 0
which may lead to potential OOMEs when running cache operations in
FULL_ASYNC or PRIMARY_SYNC modes due to message queues growth on sender and
receiver sides.
[10:59:08] Message queue limit is set to 0 which may lead to potential OOMEs
when running cache operations in FULL_ASYNC or PRIMARY_SYNC modes due to
message queues growth on sender and receiver sides.
18/07/18 10:59:08 WARN NoopCheckpointSpi: Checkpoints are disabled (to
enable configure any GridCheckpointSpi implementation)
18/07/18 10:59:08 WARN GridCollisionManager: Collision resolution is
disabled (all jobs will be activated upon arrival).
[10:59:08] Security status [authentication=off, tls/ssl=off]
[10:59:08] REST protocols do not start on client node. To start the
protocols on client node set '-DIGNITE_REST_START_ON_CLIENT=true' system
property.
18/07/18 10:59:13 ERROR GridDhtPartitionsExchangeFuture: Failed to
reinitialize local partitions (preloading will be stopped):
GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2,
minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode
[id=0c59ff6b-7c95-4072-9866-844f87a6f12d, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1,
172.19.112.175], sockAddrs=[PC50439.oa.pnrad.net/172.19.112.175:0,
/0:0:0:0:0:0:0:1:0, /127.0.0.1:0], discPort=0, order=2, intOrder=0,
lastExchangeTime=1531907
49159, loc=true, ver=2.5.0#20180523-sha1:86e110c7, isClient=true], topVer=2,
nodeId8=0c59ff6b, msg=null, type=NODE_JOINED, tstamp=1531907953545],
nodeId=0c59ff6b, evt=NODE_JOINED]
class org.apache.ignite.IgniteException: Spring application context resource
is not injected.
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:171)
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:100)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:1830)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:792)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:674)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
        at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:748)
18/07/18 10:59:13 ERROR IgniteKernal%stoxx: Got exception while starting
(will rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Spring application context
resource is not injected.
        at
org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7307)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:259)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:232)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:159)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:151)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager.onKernalStart(GridCachePartitionExchangeManager.java:635)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:875)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1091)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:671)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:611)
        at org.apache.ignite.Ignition.getOrStart(Ignition.java:419)
        at
org.apache.ignite.spark.IgniteContext.ignite(IgniteContext.scala:150)
        at
org.apache.ignite.spark.IgniteContext.<init>(IgniteContext.scala:63)
        at
org.apache.ignite.spark.IgniteContext$.apply(IgniteContext.scala:192)
        at
org.apache.ignite.spark.impl.IgniteRelationProvider.igniteContext(IgniteRelationProvider.scala:236)
        at
org.apache.ignite.spark.impl.IgniteRelationProvider.createRelation(IgniteRelationProvider.scala:62)
        at
org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:330)
        at
org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:152)
        at
org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:125)
        at
$line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:30)
        at
$line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:35)
        at
$line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:37)
        at
$line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:39)
        at
$line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:41)
        at $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:43)
        at $line16.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:45)
        at $line16.$read$$iw$$iw$$iw$$iw$$iw.<init>(<console>:47)
        at $line16.$read$$iw$$iw$$iw$$iw.<init>(<console>:49)
        at $line16.$read$$iw$$iw$$iw.<init>(<console>:51)
        at $line16.$read$$iw$$iw.<init>(<console>:53)
        at $line16.$read$$iw.<init>(<console>:55)
        at $line16.$read.<init>(<console>:57)
        at $line16.$read$.<init>(<console>:61)
        at $line16.$read$.<clinit>(<console>)
        at $line16.$eval$.$print$lzycompute(<console>:7)
        at $line16.$eval$.$print(<console>:6)
        at $line16.$eval.$print(<console>)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:786)
        at
scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:1047)
        at
scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:638)
        at
scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:637)
        at
scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
        at
scala.reflect.internal.util.AbstractFileClassLoader.asContext(AbstractFileClassLoader.scala:19)
        at
scala.tools.nsc.interpreter.IMain$WrappedRequest.loadAndRunReq(IMain.scala:637)
        at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:569)
        at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:565)
        at
scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:807)
        at
scala.tools.nsc.interpreter.ILoop.interpretStartingWith(ILoop.scala:825)
        at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:681)
        at scala.tools.nsc.interpreter.ILoop.processLine(ILoop.scala:395)
        at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:415)
        at
scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:923)
        at
scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:909)
        at
scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:909)
        at
scala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:97)
        at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:909)
        at org.apache.spark.repl.Main$.doMain(Main.scala:68)
        at org.apache.spark.repl.Main$.main(Main.scala:51)
        at org.apache.spark.repl.Main.main(Main.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
        at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
        at
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
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:171)
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:100)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:1830)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:792)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:674)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
        at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:748)
18/07/18 10:59:13 ERROR GridCachePartitionExchangeManager: Failed to wait
for completion of partition map exchange (preloading will not start):
GridDhtPartitionsExchangeFuture [firstDiscoEvt=DiscoveryEvent
[evtNode=TcpDiscoveryNode [id=0c59ff6b-7c95-4072-9866-844f87a6f12d,
addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.19.112.175],
sockAddrs=[PC50439.oa.pnrad.net/172.19.112.175:0, /0:0:0:0:0:0:0:1:0,
/127.0.0.1:0], discPort=0, order=2, intOrder=0,
lastExchangeTime=1531907949159, loc=true, ver=2.5.0#201
0523-sha1:86e110c7, isClient=true], topVer=2, nodeId8=0c59ff6b, msg=null,
type=NODE_JOINED, tstamp=1531907953545], crd=TcpDiscoveryNode
[id=903cfa44-3aac-4cd9-b819-575381dc04b6, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1,
172.19.112.175], sockAddrs=[/0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500,
PC50439.oa.pnrad.net/172.19.112.175:47500], discPort=47500, order=1,
intOrder=1, lastExchangeTime=1531907953474, loc=false,
ver=2.5.0#20180523-sha1:86e110c7, isClient=false],
exchId=GridDhtPartitionExchangeId [topVer
AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent
[evtNode=TcpDiscoveryNode [id=0c59ff6b-7c95-4072-9866-844f87a6f12d,
addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.19.112.175],
sockAddrs=[PC50439.oa.pnrad.net/172.19.112.175:0, /0:0:0:0:0:0:0:1:0,
/127.0.0.1:0], discPort=0, order=2, intOrder=0,
lastExchangeTime=1531907949159, loc=true, ver=2.5.0#20180523-sha1:86e110c7,
isClient=true], topVer=2, nodeId8=0c59ff6b, msg=null, type=NODE_JOINED,
tstamp=1531907953545], nodeId=0c59ff6b
 evt=NODE_JOINED], added=true, initFut=GridFutureAdapter
[ignoreInterrupts=false, state=DONE, res=false, hash=42054526], init=false,
lastVer=null, partReleaseFut=null, exchActions=null, affChangeMsg=null,
initTs=1531907953575, centralizedAff=false, forceAffReassignment=false,
changeGlobalStateE=null, done=true, state=CLIENT, evtLatch=0,
remaining=[903cfa44-3aac-4cd9-b819-575381dc04b6], super=GridFutureAdapter
[ignoreInterrupts=false, state=DONE, res=class o.a.i.IgniteException: Spring
applicati
n context resource is not injected., hash=1089305632]]
class org.apache.ignite.IgniteCheckedException: Spring application context
resource is not injected.
        at
org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7307)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:259)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:207)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:159)
        at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:151)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2433)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
        at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:748)
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:171)
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:100)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:1830)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:792)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:674)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
        ... 3 more
[10:59:14] Ignite node stopped OK [name=stoxx, uptime=00:00:08.408]
18/07/18 10:59:14 ERROR IgniteContext: Failed to start Ignite.
class org.apache.ignite.IgniteException: Spring application context resource
is not injected.
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:171)
        at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:100)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:1830)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:792)
        at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:674)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
        at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
        at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.lang.Thread.run(Thread.java:748)
org.apache.ignite.IgniteException: Spring application context resource is
not injected.
  at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:171)
  at
org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:100)
  at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1437)
  at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1945)
  at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCachesOnLocalJoin(GridCacheProcessor.java:1830)
  at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.initCachesOnLocalJoin(GridDhtPartitionsExchangeFuture.java:792)
  at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:674)
  at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
  at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
  at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
  at java.lang.Thread.run(Thread.java:748)



here is the ignite config file:


<?xml version="1.0" encoding="UTF-8"?>



<beans xmlns="http://www.springframework.org/schema/beans";
       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";>
    
    <bean id="placeholderConfig"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="classpath:secret.properties"/>
    </bean>

    
    <bean id="dsSQLServer_Sustainanalytics"
class="com.microsoft.sqlserver.jdbc.SQLServerDataSource">
        <property name="URL"
value="${dsSQLServer_Sustainanalytics.jdbc.url}"/>
        <property name="user"
value="${dsSQLServer_Sustainanalytics.jdbc.username}"/>
        <property name="password"
value="${dsSQLServer_Sustainanalytics.jdbc.password}"/>
    </bean>

    <bean class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="igniteInstanceName" value="stoxx"/>

        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                        <property name="addresses">
                            <list>
                                <value>127.0.0.1:47500..47510</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>

        <property name="dataStorageConfiguration">
            <bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="defaultDataRegionConfiguration">
                    <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="maxSize" value="1048576000"/>
                    </bean>
                </property>
            </bean>
        </property>

        <property name="cacheConfiguration">
            <list>
                <bean
class="org.apache.ignite.configuration.CacheConfiguration">
                    <property name="name" value="ComplianceSummaryCache"/>
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="queryDetailMetricsSize" value="50"/>



                    <property name="cacheStoreFactory">
                        <bean
class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory">
                            <property name="dataSourceBean"
value="dsSQLServer_Sustainanalytics"/>
                            <property name="dialect">
                                <bean
class="org.apache.ignite.cache.store.jdbc.dialect.SQLServerDialect">
                                </bean>
                            </property>

                            <property name="types">
                                <list>
                                    <bean
class="org.apache.ignite.cache.store.jdbc.JdbcType">
                                        <property name="cacheName"
value="ComplianceSummaryCache"/>
                                        <property name="keyType"
value="com.gmail.waynetheron.model.ComplianceSummaryKey"/>
                                        <property name="valueType"
value="com.gmail.waynetheron.model.ComplianceSummary"/>
                                        <property name="databaseSchema"
value="SustainAnalytics"/>
                                        <property name="databaseTable"
value="Compliance_Summary"/>

                                        <property name="keyFields">
                                            <list>
                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.INTEGER"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="companyId"/>
                                                    <constructor-arg
value="int"/>
                                                    <constructor-arg
value="companyId"/>
                                                </bean>
                                            </list>
                                        </property>

                                        <property name="valueFields">
                                            <list>
                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.INTEGER"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="companyId"/>
                                                    <constructor-arg
value="int"/>
                                                    <constructor-arg
value="companyid"/>
                                                </bean>

                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.VARCHAR"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="Compliance_Summary_Item"/>
                                                    <constructor-arg
value="java.lang.String"/>
                                                    <constructor-arg
value="complianceSummaryItem"/>
                                                </bean>

                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.VARCHAR"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="Compliance_Summary_Value"/>
                                                    <constructor-arg
value="java.lang.String"/>
                                                    <constructor-arg
value="complianceSummaryValue"/>
                                                </bean>

                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.DATE"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="Record_Valid_From"/>
                                                    <constructor-arg
value="java.sql.Date"/>
                                                    <constructor-arg
value="recordValidFrom"/>
                                                </bean>

                                                <bean
class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
                                                    <constructor-arg>
                                                        <util:constant
static-field="java.sql.Types.DATE"/>
                                                    </constructor-arg>
                                                    <constructor-arg
value="Record_Valid_To"/>
                                                    <constructor-arg
value="java.sql.Date"/>
                                                    <constructor-arg
value="recordValidTo"/>
                                                </bean>
                                            </list>
                                        </property>
                                    </bean>
                                </list>
                            </property>
                        </bean>
                    </property>

                    <property name="readThrough" value="true"/>
                    <property name="writeThrough" value="true"/>

                    <property name="queryEntities">
                        <list>
                            <bean
class="org.apache.ignite.cache.QueryEntity">
                                <property name="keyType"
value="com.gmail.waynetheron.model.ComplianceSummaryKey"/>
                                <property name="valueType"
value="com.gmail.waynetheron.model.ComplianceSummary"/>

                                <property name="fields">
                                    <map>
                                        <entry key="companyid"
value="java.lang.Integer"/>
                                        <entry key="complianceSummaryItem"
value="java.lang.String"/>
                                        <entry key="complianceSummaryValue"
value="java.lang.String"/>
                                        <entry key="recordValidFrom"
value="java.sql.Date"/>
                                        <entry key="recordValidTo"
value="java.sql.Date"/>
                                    </map>
                                </property>

                                <property name="indexes">
                                    <list>
                                        <bean
class="org.apache.ignite.cache.QueryIndex">
                                            <property name="name"
value="Cl_Compliance_Summary"/>
                                            <property name="indexType"
value="SORTED"/>

                                            <property name="fields">
                                                <map>
                                                    <entry key="companyid"
value="false"/>
                                                    <entry
key="complianceSummaryItem" value="false"/>
                                                    <entry
key="recordValidFrom" value="false"/>
                                                    <entry
key="recordValidTo" value="false"/>
                                                </map>
                                            </property>
                                        </bean>
                                    </list>
                                </property>
                            </bean>
                        </list>
                    </property>
                </bean>
            </list>
        </property>
    </bean>
</beans>





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to