org.springframework.messaging.core.DestinationResolutionException: failed to look up MessageChannel with name 'errorChannel' in the BeanFactory.; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with na me 'errorChannel': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a b ean from a BeanFactory in a destroy method implementation!) at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveDestination(BeanFactoryChannelResolver.java:112)

Stack Overflow | wigas | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    spring-integration: failed to look up MessageChannel with name 'errorChannel'

    Stack Overflow | 8 months ago | wigas
    org.springframework.messaging.core.DestinationResolutionException: failed to look up MessageChannel with name 'errorChannel' in the BeanFactory.; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with na me 'errorChannel': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a b ean from a BeanFactory in a destroy method implementation!) at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveDestination(BeanFactoryChannelResolver.java:112)

    1 unregistered visitors

    Root Cause Analysis

    1. org.springframework.messaging.core.DestinationResolutionException

      failed to look up MessageChannel with name 'errorChannel' in the BeanFactory.; nested exception is org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with na me 'errorChannel': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a b ean from a BeanFactory in a destroy method implementation!) at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveDestination(BeanFactoryChannelResolver.java:112)

      at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveDestination()
    2. Spring Integration Core
      ErrorHandlingTaskExecutor$1.run
      1. org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveDestination(BeanFactoryChannelResolver.java:45)
      2. org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:117)
      3. org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:80)
      4. org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:58)
      4 frames
    3. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames