[
https://issues.apache.org/jira/browse/IGNITE-7982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404674#comment-16404674
]
Pavel Vinokurov commented on IGNITE-7982:
-----------------------------------------
The workaround is to using @Lazy annoation on MyObjectRepository
> IgniteRepositoryFactory is unable to instantiate a non-lazy repository
> ----------------------------------------------------------------------
>
> Key: IGNITE-7982
> URL: https://issues.apache.org/jira/browse/IGNITE-7982
> Project: Ignite
> Issue Type: Bug
> Components: spring
> Affects Versions: 2.4
> Reporter: Pavel Vinokurov
> Priority: Major
> Attachments: ignite-7982.zip
>
>
> It is unable to create an instance of IgniteRepository during ignite
> initialization.
> The Reproducer are attached.
> Caused by: java.lang.IllegalStateException: Ignite is in invalid state to
> perform this operation. It either not started yet or has already being or
> have stopped.
> Make sure that IgniteSpringBean is not referenced from any kind of Spring
> bean init methods like @PostConstruct}.
> [ignite=null, cfg=IgniteConfiguration [igniteInstanceName=null,
> pubPoolSize=8, svcPoolSize=null, callbackPoolSize=8, stripedPoolSize=8,
> sysPoolSize=8, mgmtPoolSize=4, igfsPoolSize=8, dataStreamerPoolSize=8,
> utilityCachePoolSize=8, utilityCacheKeepAliveTime=60000, p2pPoolSize=2,
> qryPoolSize=8, igniteHome=null, igniteWorkDir=null, mbeanSrv=null,
> nodeId=null, marsh=null, marshLocJobs=false, daemon=false, p2pEnabled=false,
> netTimeout=5000, sndRetryDelay=1000, sndRetryCnt=3, metricsHistSize=10000,
> metricsUpdateFreq=2000, metricsExpTime=9223372036854775807, discoSpi=null,
> segPlc=STOP, segResolveAttempts=2, waitForSegOnStart=true,
> allResolversPassReq=true, segChkFreq=10000, commSpi=null, evtSpi=null,
> colSpi=null, deploySpi=null, indexingSpi=null, addrRslvr=null,
> clientMode=null, rebalanceThreadPoolSize=1,
> txCfg=org.apache.ignite.configuration.TransactionConfiguration@93081b6,
> cacheSanityCheckEnabled=true, discoStartupDelay=60000, deployMode=SHARED,
> p2pMissedCacheSize=100, locHost=null, timeSrvPortBase=31100,
> timeSrvPortRange=100, failureDetectionTimeout=10000,
> clientFailureDetectionTimeout=30000, metricsLogFreq=0, hadoopCfg=null,
> connectorCfg=org.apache.ignite.configuration.ConnectorConfiguration@cd1e646,
> odbcCfg=null, warmupClos=null, atomicCfg=AtomicConfiguration
> [seqReserveSize=1000, cacheMode=PARTITIONED, backups=1, aff=null,
> grpName=null], classLdr=null, sslCtxFactory=null, platformCfg=null,
> binaryCfg=null, memCfg=null, pstCfg=null, dsCfg=null, activeOnStart=true,
> autoActivation=true, longQryWarnTimeout=3000, sqlConnCfg=null,
> cliConnCfg=ClientConnectorConfiguration [host=null, port=10800,
> portRange=100, sockSndBufSize=0, sockRcvBufSize=0, tcpNoDelay=true,
> maxOpenCursorsPerConn=128, threadPoolSize=8, idleTimeout=0, jdbcEnabled=true,
> odbcEnabled=true, thinCliEnabled=true]]]
> at
> org.apache.ignite.IgniteSpringBean.checkIgnite(IgniteSpringBean.java:638)
> at
> org.apache.ignite.IgniteSpringBean.getOrCreateCache(IgniteSpringBean.java:394)
> at
> org.apache.ignite.springdata.repository.support.IgniteRepositoryFactory.getTargetRepository(IgniteRepositoryFactory.java:123)
> at
> org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:199)
> at
> org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:277)
> at
> org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:263)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)