Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.4
Description
When, after adding a secondary, the Core is restarted, there are error conditions related to the additional Spring beans defined.
java.lang.NullPointerException: Cannot invoke "org.springframework.beans.factory.support.DefaultListableBeanFactory.containsBeanDefinition(String)" because the return value of "org.apache.syncope.core.spring.ApplicationContextProvider.getBeanFactory()" is null at org.apache.syncope.core.persistence.jpa.DomainConfFactory.unregisterBeanDefinition(DomainConfFactory.java:64) at org.apache.syncope.core.persistence.jpa.DomainConfFactory.registerBeanDefinition(DomainConfFactory.java:70) at org.apache.syncope.core.persistence.jpa.DomainConfFactory.register(DomainConfFactory.java:93) at org.apache.syncope.core.persistence.jpa.RuntimeDomainLoader.added(RuntimeDomainLoader.java:60) at org.apache.syncope.common.keymaster.client.zookeeper.ZookeeperDomainOps.lambda$afterPropertiesSet$0(ZookeeperDomainOps.java:73) at org.apache.curator.framework.recipes.cache.CuratorCacheImpl.lambda$putStorage$6(CuratorCacheImpl.java:288) at org.apache.curator.framework.listen.MappingListenerManager.lambda$forEach$0(MappingListenerManager.java:93) at org.apache.curator.framework.listen.MappingListenerManager.forEach(MappingListenerManager.java:90) at org.apache.curator.framework.listen.StandardListenerManager.forEach(StandardListenerManager.java:90) at org.apache.curator.framework.recipes.cache.CuratorCacheImpl.lambda$callListeners$9(CuratorCacheImpl.java:302) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833)
Parameter 0 of method transactionTemplate in org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$TransactionTemplateConfiguration required a single bean, but 2 were found: - MasterTransactionManager: defined by method 'transactionManager' in class path resource [org/apache/syncope/core/persistence/jpa/MasterDomain.class] - newDomainTransactionManager: defined in unknown location
Also, Console Dashboard is always showing numbers for Master domain.
Attachments
Issue Links
- links to