Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1770

Errors upon Core restart after adding domain

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              ilgrosso Francesco Chicchiriccò
              ilgrosso Francesco Chicchiriccò
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: