You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by wt <wa...@gmail.com> on 2018/07/13 11:02:49 UTC

Spring application context resource is not injected

Hi

I switched to spark 2.2 and now i am getting a different error:

*on the server (intellij running) i have the following output:*


[18:50:49]    __________  ________________ 
[18:50:49]   /  _/ ___/ |/ /  _/_  __/ __/ 
[18:50:49]  _/ // (7 7    // /  / / / _/   
[18:50:49] /___/\___/_/|_/___/ /_/ /___/  
[18:50:49] 
[18:50:49] ver. 2.5.0#20180523-sha1:86e110c7
[18:50:49] 2018 Copyright(C) Apache Software Foundation
[18:50:49] 
[18:50:49] Ignite documentation: http://ignite.apache.org
[18:50:49] 
[18:50:49] Quiet mode.
[18:50:49]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[18:50:49]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[18:50:49] 
[18:50:49] OS: Windows 7 6.1 amd64
[18:50:49] 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:50:49] Initial heap size is 128MB (should be no less than 512MB, use
-Xms512m -Xmx512m).
[18:50:50] Configured plugins:
[18:50:50]   ^-- None
[18:50:50] 
[18:50:50] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
[tryStop=false, timeout=0]]
[18:50:50] 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:50:50] Security status [authentication=off, tls/ssl=off]
log4j:WARN No appenders could be found for logger
(org.springframework.beans.factory.support.DefaultListableBeanFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
[18:51:04] Performance suggestions for grid 'stoxx' (fix if possible)
[18:51:04] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[18:51:04]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM
options)
[18:51:04]   ^-- Specify JVM heap max size (add '-Xmx<size>[g|G|m|M|k|K]' to
JVM options)
[18:51:04]   ^-- Set max direct memory size if getting 'OOME: Direct buffer
memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
[18:51:04]   ^-- Disable processing of calls to System.gc() (add
'-XX:+DisableExplicitGC' to JVM options)
[18:51:04]   ^-- Enable write-behind to persistent store (set
'writeBehindEnabled' to true)
[18:51:04] Refer to this page for more performance suggestions:
https://apacheignite.readme.io/docs/jvm-and-system-tuning
[18:51:04] 
[18:51:04] To start Console Management & Monitoring run
ignitevisorcmd.{sh|bat}
[18:51:04] 
[18:51:04] Ignite node started OK (id=28bf5313, instance name=stoxx)
[18:51:04] Topology snapshot [ver=1, servers=1, clients=0, CPUs=2,
offheap=0.98GB, heap=1.8GB]
[18:51:04]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
clusterState=ACTIVE]
[18:51:04] Data Regions Configured:
[18:51:04]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
persistenceEnabled=false]
[11:53:17] Topology snapshot [ver=2, servers=1, clients=1, CPUs=2,
offheap=2.0GB, heap=2.7GB]
[11:53:17]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
clusterState=ACTIVE]
[11:53:17] Data Regions Configured:
[11:53:17]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
persistenceEnabled=false]
[11:53:19] Topology snapshot [ver=3, servers=1, clients=0, CPUs=2,
offheap=0.98GB, heap=1.8GB]
[11:53:19]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
clusterState=ACTIVE]
[11:53:19] Data Regions Configured:
[11:53:19]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
persistenceEnabled=false]
[11:55:47] Topology snapshot [ver=4, servers=1, clients=1, CPUs=2,
offheap=2.0GB, heap=2.7GB]
[11:55:47]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
clusterState=ACTIVE]
[11:55:47] Data Regions Configured:
[11:55:47]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
persistenceEnabled=false]
[11:55:47] Topology snapshot [ver=5, servers=1, clients=0, CPUs=2,
offheap=0.98GB, heap=1.8GB]
[11:55:47]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
clusterState=ACTIVE]
[11:55:47] Data Regions Configured:
[11:55:47]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
persistenceEnabled=false]



*In spark i get the following output*

scala> val df =
spark.read.format(FORMAT_IGNITE).option(OPTION_TABLE,"ComplianceSummaryCache.ComplianceSummary").option(OPTION_CONFIG_FILE,"stoxx-server.xml").load()
[11:55:37]    __________  ________________
[11:55:37]   /  _/ ___/ |/ /  _/_  __/ __/
[11:55:37]  _/ // (7 7    // /  / / / _/
[11:55:37] /___/\___/_/|_/___/ /_/ /___/
[11:55:37]
[11:55:37] ver. 2.5.0#20180523-sha1:86e110c7
[11:55:37] 2018 Copyright(C) Apache Software Foundation
[11:55:37]
[11:55:37] Ignite documentation: http://ignite.apache.org
[11:55:37]
[11:55:37] Quiet mode.
[11:55:37]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[11:55:37]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[11:55:37]
[11:55:37] OS: Windows 7 6.1 amd64
[11:55:37] VM information: Java(TM) SE Runtime Environment 1.8.0_151-b12
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.151-b12
[11:55:38] Configured plugins:
[11:55:38]   ^-- None
[11:55:38]
18/07/13 11:55:38 WARN GridDiagnostic: Initial heap size is 128MB (should be
no less than 512MB, use -Xms512m -Xmx512m).
[11:55:38] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
[tryStop=false, timeout=0]]
[11:55:38] Initial heap size is 128MB (should be no less than 512MB, use
-Xms512m -Xmx512m).
18/07/13 11:55:38 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.
[11:55:38] 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/13 11:55:38 WARN NoopCheckpointSpi: Checkpoints are disabled (to
enable configure any GridCheckpointSpi implementation)
18/07/13 11:55:38 WARN GridCollisionManager: Collision resolution is
disabled (all jobs will be activated upon arrival).
[11:55:38] Security status [authentication=off, tls/ssl=off]
18/07/13 11:55:38 WARN IgniteH2Indexing: Custom H2 serialization is already
configured, will override.
[11:55:38] 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/13 11:55:47 ERROR GridDhtPartitionsExchangeFuture: Failed to
reinitialize local partitions (preloading will be stopped):
GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=4,
minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode
[id=1784eba7-12ba-4a17-99a8-ba46f969ae4b, 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=4, intOrder=0,
lastExchangeTime=15314793
38316, loc=true, ver=2.5.0#20180523-sha1:86e110c7, isClient=true], topVer=4,
nodeId8=1784eba7, msg=null, type=NODE_JOINED, tstamp=1531479347598],
nodeId=1784eba7, 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/13 11:55:47 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:306)
        at
org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:178)
        at
org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:146)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:35)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:40)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:42)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:44)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:46)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:48)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:50)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:52)
        at
$line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:54)
        at $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:56)
        at $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:58)
        at $line21.$read$$iw$$iw$$iw$$iw$$iw.<init>(<console>:60)
        at $line21.$read$$iw$$iw$$iw$$iw.<init>(<console>:62)
        at $line21.$read$$iw$$iw$$iw.<init>(<console>:64)
        at $line21.$read$$iw$$iw.<init>(<console>:66)
        at $line21.$read$$iw.<init>(<console>:68)
        at $line21.$read.<init>(<console>:70)
        at $line21.$read$.<init>(<console>:74)
        at $line21.$read$.<clinit>(<console>)
        at $line21.$eval$.$print$lzycompute(<console>:7)
        at $line21.$eval$.$print(<console>:6)
        at $line21.$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.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:70)
        at org.apache.spark.repl.Main$.main(Main.scala:53)
        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:755)
        at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
        at
org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)
        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/13 11:55:47 ERROR GridCachePartitionExchangeManager: Failed to wait
for completion of partition map exchange (preloading will not start):
GridDhtPartitionsExchangeFuture [firstDiscoEvt=DiscoveryEvent
[evtNode=TcpDiscoveryNode [id=1784eba7-12ba-4a17-99a8-ba46f969ae4b,
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=4, intOrder=0,
lastExchangeTime=1531479338316, loc=true, ver=2.5.0#2018
0523-sha1:86e110c7, isClient=true], topVer=4, nodeId8=1784eba7, msg=null,
type=NODE_JOINED, tstamp=1531479347598], crd=TcpDiscoveryNode
[id=28bf5313-ba7c-4bda-b371-d7651a97d48c, 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=1531479347567, loc=false,
ver=2.5.0#20180523-sha1:86e110c7, isClient=false],
exchId=GridDhtPartitionExchangeId [topVer=
AffinityTopologyVersion [topVer=4, minorTopVer=0], discoEvt=DiscoveryEvent
[evtNode=TcpDiscoveryNode [id=1784eba7-12ba-4a17-99a8-ba46f969ae4b,
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=4, intOrder=0,
lastExchangeTime=1531479338316, loc=true, ver=2.5.0#20180523-sha1:86e110c7,
isClient=true], topVer=4, nodeId8=1784eba7, msg=null, type=NODE_JOINED,
tstamp=1531479347598], nodeId=1784eba7,
 evt=NODE_JOINED], added=true, initFut=GridFutureAdapter
[ignoreInterrupts=false, state=DONE, res=false, hash=1763792566],
init=false, lastVer=null, partReleaseFut=null, exchActions=null,
affChangeMsg=null, initTs=1531479347614, centralizedAff=false,
forceAffReassignment=false, changeGlobalStateE=null, done=true,
state=CLIENT, evtLatch=0, remaining=[28bf5313-ba7c-4bda-b371-d7651a97d48c],
super=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=class
o.a.i.IgniteException: Spring applicat
ion context resource is not injected., hash=223993261]]
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
[11:55:47] Ignite node stopped OK [name=stoxx, uptime=00:02:28.655]
18/07/13 11:55:47 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)




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

Re: Spring application context resource is not injected

Posted by "ilya.kasnacheev" <il...@gmail.com>.
Hello!

Can you please upload the project to github so that we could take a look?
Please include relevant Spark configs.

Regards,



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

Re: Spring application context resource is not injected

Posted by wt <wa...@gmail.com>.
this is all i am running

val df =
spark.read.format(FORMAT_IGNITE).option(OPTION_TABLE,"ComplianceSummaryCache.ComplianceSummary").option(OPTION_CONFIG_FILE,"stoxx-server.xml").load() 

the intellij project hosting the server was downloaded from the web console.
I haven't changed anything there. Been reading it might be the heap size but
i would have expected an out of memory error if that were the case.



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

Re: Spring application context resource is not injected

Posted by Prasad Bhalerao <pr...@gmail.com>.
Can you please share the code?

On Fri, Jul 13, 2018 at 4:32 PM wt <wa...@gmail.com> wrote:

> Hi
>
> I switched to spark 2.2 and now i am getting a different error:
>
> *on the server (intellij running) i have the following output:*
>
>
> [18:50:49]    __________  ________________
> [18:50:49]   /  _/ ___/ |/ /  _/_  __/ __/
> [18:50:49]  _/ // (7 7    // /  / / / _/
> [18:50:49] /___/\___/_/|_/___/ /_/ /___/
> [18:50:49]
> [18:50:49] ver. 2.5.0#20180523-sha1:86e110c7
> [18:50:49] 2018 Copyright(C) Apache Software Foundation
> [18:50:49]
> [18:50:49] Ignite documentation: http://ignite.apache.org
> [18:50:49]
> [18:50:49] Quiet mode.
> [18:50:49]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
> [18:50:49]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [18:50:49]
> [18:50:49] OS: Windows 7 6.1 amd64
> [18:50:49] 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:50:49] Initial heap size is 128MB (should be no less than 512MB, use
> -Xms512m -Xmx512m).
> [18:50:50] Configured plugins:
> [18:50:50]   ^-- None
> [18:50:50]
> [18:50:50] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
> [tryStop=false, timeout=0]]
> [18:50:50] 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:50:50] Security status [authentication=off, tls/ssl=off]
> log4j:WARN No appenders could be found for logger
> (org.springframework.beans.factory.support.DefaultListableBeanFactory).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> [18:51:04] Performance suggestions for grid 'stoxx' (fix if possible)
> [18:51:04] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> [18:51:04]   ^-- Enable G1 Garbage Collector (add '-XX:+UseG1GC' to JVM
> options)
> [18:51:04]   ^-- Specify JVM heap max size (add '-Xmx<size>[g|G|m|M|k|K]'
> to
> JVM options)
> [18:51:04]   ^-- Set max direct memory size if getting 'OOME: Direct buffer
> memory' (add '-XX:MaxDirectMemorySize=<size>[g|G|m|M|k|K]' to JVM options)
> [18:51:04]   ^-- Disable processing of calls to System.gc() (add
> '-XX:+DisableExplicitGC' to JVM options)
> [18:51:04]   ^-- Enable write-behind to persistent store (set
> 'writeBehindEnabled' to true)
> [18:51:04] Refer to this page for more performance suggestions:
> https://apacheignite.readme.io/docs/jvm-and-system-tuning
> [18:51:04]
> [18:51:04] To start Console Management & Monitoring run
> ignitevisorcmd.{sh|bat}
> [18:51:04]
> [18:51:04] Ignite node started OK (id=28bf5313, instance name=stoxx)
> [18:51:04] Topology snapshot [ver=1, servers=1, clients=0, CPUs=2,
> offheap=0.98GB, heap=1.8GB]
> [18:51:04]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
> clusterState=ACTIVE]
> [18:51:04] Data Regions Configured:
> [18:51:04]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
> [11:53:17] Topology snapshot [ver=2, servers=1, clients=1, CPUs=2,
> offheap=2.0GB, heap=2.7GB]
> [11:53:17]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
> clusterState=ACTIVE]
> [11:53:17] Data Regions Configured:
> [11:53:17]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
> [11:53:19] Topology snapshot [ver=3, servers=1, clients=0, CPUs=2,
> offheap=0.98GB, heap=1.8GB]
> [11:53:19]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
> clusterState=ACTIVE]
> [11:53:19] Data Regions Configured:
> [11:53:19]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
> [11:55:47] Topology snapshot [ver=4, servers=1, clients=1, CPUs=2,
> offheap=2.0GB, heap=2.7GB]
> [11:55:47]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
> clusterState=ACTIVE]
> [11:55:47] Data Regions Configured:
> [11:55:47]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
> [11:55:47] Topology snapshot [ver=5, servers=1, clients=0, CPUs=2,
> offheap=0.98GB, heap=1.8GB]
> [11:55:47]   ^-- Node [id=28BF5313-BA7C-4BDA-B371-D7651A97D48C,
> clusterState=ACTIVE]
> [11:55:47] Data Regions Configured:
> [11:55:47]   ^-- default [initSize=256.0 MiB, maxSize=1000.0 MiB,
> persistenceEnabled=false]
>
>
>
> *In spark i get the following output*
>
> scala> val df =
>
> spark.read.format(FORMAT_IGNITE).option(OPTION_TABLE,"ComplianceSummaryCache.ComplianceSummary").option(OPTION_CONFIG_FILE,"stoxx-server.xml").load()
> [11:55:37]    __________  ________________
> [11:55:37]   /  _/ ___/ |/ /  _/_  __/ __/
> [11:55:37]  _/ // (7 7    // /  / / / _/
> [11:55:37] /___/\___/_/|_/___/ /_/ /___/
> [11:55:37]
> [11:55:37] ver. 2.5.0#20180523-sha1:86e110c7
> [11:55:37] 2018 Copyright(C) Apache Software Foundation
> [11:55:37]
> [11:55:37] Ignite documentation: http://ignite.apache.org
> [11:55:37]
> [11:55:37] Quiet mode.
> [11:55:37]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
> [11:55:37]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
> or "-v" to ignite.{sh|bat}
> [11:55:37]
> [11:55:37] OS: Windows 7 6.1 amd64
> [11:55:37] VM information: Java(TM) SE Runtime Environment 1.8.0_151-b12
> Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.151-b12
> [11:55:38] Configured plugins:
> [11:55:38]   ^-- None
> [11:55:38]
> 18/07/13 11:55:38 WARN GridDiagnostic: Initial heap size is 128MB (should
> be
> no less than 512MB, use -Xms512m -Xmx512m).
> [11:55:38] Configured failure handler: [hnd=StopNodeOrHaltFailureHandler
> [tryStop=false, timeout=0]]
> [11:55:38] Initial heap size is 128MB (should be no less than 512MB, use
> -Xms512m -Xmx512m).
> 18/07/13 11:55:38 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.
> [11:55:38] 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/13 11:55:38 WARN NoopCheckpointSpi: Checkpoints are disabled (to
> enable configure any GridCheckpointSpi implementation)
> 18/07/13 11:55:38 WARN GridCollisionManager: Collision resolution is
> disabled (all jobs will be activated upon arrival).
> [11:55:38] Security status [authentication=off, tls/ssl=off]
> 18/07/13 11:55:38 WARN IgniteH2Indexing: Custom H2 serialization is already
> configured, will override.
> [11:55:38] 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/13 11:55:47 ERROR GridDhtPartitionsExchangeFuture: Failed to
> reinitialize local partitions (preloading will be stopped):
> GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=4,
> minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode
> [id=1784eba7-12ba-4a17-99a8-ba46f969ae4b, 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=4, intOrder=0,
> lastExchangeTime=15314793
> 38316, loc=true, ver=2.5.0#20180523-sha1:86e110c7, isClient=true],
> topVer=4,
> nodeId8=1784eba7, msg=null, type=NODE_JOINED, tstamp=1531479347598],
> nodeId=1784eba7, 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/13 11:55:47 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:306)
>         at
> org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:178)
>         at
> org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:146)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:35)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:40)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:42)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:44)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:46)
>         at
>
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:48)
>         at
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:50)
>         at
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:52)
>         at
> $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:54)
>         at $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:56)
>         at $line21.$read$$iw$$iw$$iw$$iw$$iw$$iw.<init>(<console>:58)
>         at $line21.$read$$iw$$iw$$iw$$iw$$iw.<init>(<console>:60)
>         at $line21.$read$$iw$$iw$$iw$$iw.<init>(<console>:62)
>         at $line21.$read$$iw$$iw$$iw.<init>(<console>:64)
>         at $line21.$read$$iw$$iw.<init>(<console>:66)
>         at $line21.$read$$iw.<init>(<console>:68)
>         at $line21.$read.<init>(<console>:70)
>         at $line21.$read$.<init>(<console>:74)
>         at $line21.$read$.<clinit>(<console>)
>         at $line21.$eval$.$print$lzycompute(<console>:7)
>         at $line21.$eval$.$print(<console>:6)
>         at $line21.$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.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:70)
>         at org.apache.spark.repl.Main$.main(Main.scala:53)
>         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:755)
>         at
> org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
>         at
> org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
>         at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:119)
>         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/13 11:55:47 ERROR GridCachePartitionExchangeManager: Failed to wait
> for completion of partition map exchange (preloading will not start):
> GridDhtPartitionsExchangeFuture [firstDiscoEvt=DiscoveryEvent
> [evtNode=TcpDiscoveryNode [id=1784eba7-12ba-4a17-99a8-ba46f969ae4b,
> 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=4, intOrder=0,
> lastExchangeTime=1531479338316, loc=true, ver=2.5.0#2018
> 0523-sha1:86e110c7, isClient=true], topVer=4, nodeId8=1784eba7, msg=null,
> type=NODE_JOINED, tstamp=1531479347598], crd=TcpDiscoveryNode
> [id=28bf5313-ba7c-4bda-b371-d7651a97d48c, 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=1531479347567, loc=false,
> ver=2.5.0#20180523-sha1:86e110c7, isClient=false],
> exchId=GridDhtPartitionExchangeId [topVer=
> AffinityTopologyVersion [topVer=4, minorTopVer=0], discoEvt=DiscoveryEvent
> [evtNode=TcpDiscoveryNode [id=1784eba7-12ba-4a17-99a8-ba46f969ae4b,
> 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=4, intOrder=0,
> lastExchangeTime=1531479338316, loc=true, ver=2.5.0#20180523-sha1:86e110c7,
> isClient=true], topVer=4, nodeId8=1784eba7, msg=null, type=NODE_JOINED,
> tstamp=1531479347598], nodeId=1784eba7,
>  evt=NODE_JOINED], added=true, initFut=GridFutureAdapter
> [ignoreInterrupts=false, state=DONE, res=false, hash=1763792566],
> init=false, lastVer=null, partReleaseFut=null, exchActions=null,
> affChangeMsg=null, initTs=1531479347614, centralizedAff=false,
> forceAffReassignment=false, changeGlobalStateE=null, done=true,
> state=CLIENT, evtLatch=0, remaining=[28bf5313-ba7c-4bda-b371-d7651a97d48c],
> super=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=class
> o.a.i.IgniteException: Spring applicat
> ion context resource is not injected., hash=223993261]]
> 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
> [11:55:47] Ignite node stopped OK [name=stoxx, uptime=00:02:28.655]
> 18/07/13 11:55:47 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)
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>