org.springframework.integration.support.channel.ChannelResolutionException: failed to look up MessageChannel bean with name 'errorChannel' [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:75) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:111) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:78)

Spring JIRA | Richard Wagstaff | 4 years ago
  1. 0

    I am throwing events on a async publishing channel, if these events fail the below exception is thrown. The problem i think is in the {{org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(Throwable)}} As it tries up to lookup the default 'errorChannel' when it does not exist, when it should use the error channel specified on the message as a priority. I accept a default errorChannel should always be created, but I think this is not always the case in OSGi {code} <int:gateway id="orderExecutionEventPublisher" default-request-channel="orderExecutionEventsEnricher" service-interface="com.investmaster.orders.execution.OrderExecutionEventPublisher" /> <int:channel id="orderExecutionEventsEnricher" /> <int:header-enricher input-channel="orderExecutionEventsEnricher" output-channel="orderExecutionEvents"> <int:error-channel ref="failedExecutionEvents" /> </int:header-enricher> <int:publish-subscribe-channel id="orderExecutionEvents" task-executor="orderExecutionExecutor" /> <task:executor id="orderExecutionExecutor" pool-size="5" /> <!-- Error Handling --> <int:channel id="failedExecutionEvents" /> <int:service-activator input-channel="failedExecutionEvents" ref="orderExecutionEventErrorHandler" method="logEvent" /> <bean id="orderExecutionEventErrorHandler" class="com.investmaster.orders.execution.OrderExecutionEventErrorHandler" /> {code} {noformat} [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err Exception in thread "orderExecutionExecutor-16" org.springframework.integration.support.channel.ChannelResolutionException: failed to look up MessageChannel bean with name 'errorChannel' [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:75) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:111) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:78) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:55) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.lang.Thread.run(Thread.java:662) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'errorChannel' is defined [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:553) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:72) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err ... 6 more {noformat}

    Spring JIRA | 4 years ago | Richard Wagstaff
    org.springframework.integration.support.channel.ChannelResolutionException: failed to look up MessageChannel bean with name 'errorChannel' [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:75) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:111) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:78)
  2. 0

    I am throwing events on a async publishing channel, if these events fail the below exception is thrown. The problem i think is in the {{org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(Throwable)}} As it tries up to lookup the default 'errorChannel' when it does not exist, when it should use the error channel specified on the message as a priority. I accept a default errorChannel should always be created, but I think this is not always the case in OSGi {code} <int:gateway id="orderExecutionEventPublisher" default-request-channel="orderExecutionEventsEnricher" service-interface="com.investmaster.orders.execution.OrderExecutionEventPublisher" /> <int:channel id="orderExecutionEventsEnricher" /> <int:header-enricher input-channel="orderExecutionEventsEnricher" output-channel="orderExecutionEvents"> <int:error-channel ref="failedExecutionEvents" /> </int:header-enricher> <int:publish-subscribe-channel id="orderExecutionEvents" task-executor="orderExecutionExecutor" /> <task:executor id="orderExecutionExecutor" pool-size="5" /> <!-- Error Handling --> <int:channel id="failedExecutionEvents" /> <int:service-activator input-channel="failedExecutionEvents" ref="orderExecutionEventErrorHandler" method="logEvent" /> <bean id="orderExecutionEventErrorHandler" class="com.investmaster.orders.execution.OrderExecutionEventErrorHandler" /> {code} {noformat} [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err Exception in thread "orderExecutionExecutor-16" org.springframework.integration.support.channel.ChannelResolutionException: failed to look up MessageChannel bean with name 'errorChannel' [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:75) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:111) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:78) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:55) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at java.lang.Thread.run(Thread.java:662) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'errorChannel' is defined [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:553) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095) [2013-04-09 18:07:03.404] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:72) [2013-04-09 18:07:03.405] ERROR orderExecutionExecutor-16 System.err ... 6 more {noformat}

    Spring JIRA | 4 years ago | Richard Wagstaff
    org.springframework.integration.support.channel.ChannelResolutionException: failed to look up MessageChannel bean with name 'errorChannel' [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.support.channel.BeanFactoryChannelResolver.resolveChannelName(BeanFactoryChannelResolver.java:75) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.resolveErrorChannel(MessagePublishingErrorHandler.java:111) [2013-04-09 18:07:03.403] ERROR orderExecutionExecutor-16 System.err at org.springframework.integration.channel.MessagePublishingErrorHandler.handleError(MessagePublishingErrorHandler.java:78)
  3. 0

    Getting spring BeanCreationException for a class in jar file on jboss

    Stack Overflow | 2 years ago | user3337443
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.xxx.yy.jaws.manager.NotificationManager] found for dependency: expected at least 1 bean which q ualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    implementing ApplicationContextAware - ApplicationContext is NULL

    Stack Overflow | 1 year ago | Ulrich
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'responseXmlFilter' is defined
  6. 0

    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'BookDao' is defined

    Stack Overflow | 1 year ago | sahar04
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'BookDao' is defined

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.NoSuchBeanDefinitionException

      No bean named 'errorChannel' is defined

      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
    2. Spring Beans
      AbstractBeanFactory.doGetBean
      1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:553)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
      3 frames