You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/05/10 08:27:04 UTC
[jira] [Updated] (IGNITE-3790) Spring app context not injected into
CacheStoreFactory while using JDBC
[ https://issues.apache.org/jira/browse/IGNITE-3790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Ozerov updated IGNITE-3790:
------------------------------------
Component/s: (was: jdbc-driver)
sql
> Spring app context not injected into CacheStoreFactory while using JDBC
> -----------------------------------------------------------------------
>
> Key: IGNITE-3790
> URL: https://issues.apache.org/jira/browse/IGNITE-3790
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 1.6, 1.7
> Reporter: Igor Rudyak
> Priority: Critical
>
> *@SpringApplicationContextResource* resource is not injected into CacheStoreFactory implementation while trying to establish JDBC connection to Ignite cluster with caches backed by CacheStore.
> For example, look at the class *org.apache.ignite.cache.store.cassandra.CassandraCacheStoreFactory* which has as a member:
> *private Object appCtx;*
> annotated by *@SpringApplicationContextResource*
> When trying to used JDBC connection like this:
> *DriverManager.getConnection("jdbc:ignite:cfg://file:///my-ignite-cluster.xml");*
> it throws exception:
> *java.lang.IllegalStateException: Failed to get Cassandra DataSource cause Spring application context wasn't injected into CassandraCacheStoreFactory*
> The reason is that Spring context wasn't injected into *appCtx* variable and it stays null
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)