You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Mekhanikov (JIRA)" <ji...@apache.org> on 2017/10/10 15:15:00 UTC
[jira] [Comment Edited] (IGNITE-6555) When a CacheStore with a
@SpringResource annotated field is configured Ignite fails to start via
igniteSpringBean
[ https://issues.apache.org/jira/browse/IGNITE-6555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16198627#comment-16198627 ]
Denis Mekhanikov edited comment on IGNITE-6555 at 10/10/17 3:14 PM:
--------------------------------------------------------------------
This problem is reproduced not only for {{CacheStore}}-s, but for services as well.
When starting {{IgniteSpringBean}} with configured {{SpringAwareService}} from code snippet bellow, then initialization never finishes.
{code}
@Component("springComponent")
class SpringComponent {
private final Ignite ignite;
@Autowired
public SpringComponent(Ignite ignite) {
this.ignite = ignite;
}
}
class SpringAwareService implements Service {
@SpringResource(resourceName = "springComponent")
private transient SpringComponent springComponent;
...
}
{code}
I believe that there is the same bug behind these two problems.
was (Author: dmekhanikov):
This problem is reproduced not only for {{CacheStore}}-s, but for services as well.
When starting {{IgniteSpringBean}} with configured {{SpringAwareService}} from code snippet bellow, then initialization never finishes.
{code}
@Component("springComponent")
class SpringComponent {
private final Ignite ignite;
@Autowired
public SpringComponent(Ignite ignite) {
this.ignite = ignite;
}
}
class SpringAwareService implements Service {
@SpringResource(resourceName = "springComponent")
private transient SpringComponent springComponent;
...
}
{code}
A believe that there is the same bug behind these two problems.
> When a CacheStore with a @SpringResource annotated field is configured Ignite fails to start via igniteSpringBean
> -----------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-6555
> URL: https://issues.apache.org/jira/browse/IGNITE-6555
> Project: Ignite
> Issue Type: Bug
> Components: spring
> Affects Versions: 2.2
> Reporter: Alexandr Fedotov
> Assignee: Alexandr Fedotov
> Labels: 2.2, regresion
> Fix For: 2.4
>
>
> When a CacheStore with a @SpringResource annotated field is configured Ignite fails to start via igniteSpringBean.
> Example configuration leading to the failure is as follows
> {code:java}
> public class SpringIgniteCacheStore<K, V> extends CacheStoreAdapter<K, V> implements Serializable {
> @SpringResource(resourceClass = SomeDao.class)
> public transient SomeDao someDao;
> ...
> }
> @Configuration
> public class IgniteSpringConfig {
> @Bean
> public IgniteSpringBean igniteSpringBean() {
> IgniteSpringBean igniteSpringBean = new IgniteSpringBean();
> ...
> return igniteSpringBean;
> }
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)