I have just upgraded a project from 3.1 to 3.2. Our HazelcastInstance is defined in spring with lazy-init="true". With 3.1 I get no issues whatsoever, with 3.2 at run time I get a complaint about autowiring:
"Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.hazelcast.core.HazelcastInstance gamesys.casino.game.system.roulette.infrastructure.persistence.hazelcast.AbstractHazelcastLockStore.casinoHazelcastInstance; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.hazelcast.core.HazelcastInstance] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}"
Any ideas as to why this is occurring and why it is version specific? Thanks.