Results 1 to 5 of 5

Thread: getting error

  1. #1
    Join Date
    Sep 2011
    Posts
    167

    Default getting error

    Hi,

    upon executing the application ,I am getting the following error, can u give an idea upon that...

    Sep 12, 2011 4:25:24 PM org.springframework.context.support.AbstractApplic ationContext prepareRefresh
    INFO: Refreshing org.springframework.context.support.ClassPathXmlAp plicationContext@1bd0dd4: startup date [Mon Sep 12 16:25:24 IST 2011]; root of context hierarchy
    Sep 12, 2011 4:25:25 PM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
    INFO: Loading XML bean definitions from class path resource [jms-spring-context.xml]
    Sep 12, 2011 4:25:25 PM org.springframework.integration.config.xml.Default ConfiguringBeanFactoryPostProcessor registerErrorChannelIfNecessary
    INFO: No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
    Sep 12, 2011 4:25:25 PM org.springframework.integration.config.xml.Default ConfiguringBeanFactoryPostProcessor registerTaskSchedulerIfNecessary
    INFO: No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
    Sep 12, 2011 4:25:25 PM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
    INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@15d17d7: defining beans [jmsConfiguration,messageHandler,org.springframewor k.context.annotation.internalConfigurationAnnotati onProcessor,org.springframework.context.annotation .internalAutowiredAnnotationProcessor,org.springfr amework.context.annotation.internalRequiredAnnotat ionProcessor,org.springframework.context.annotatio n.internalCommonAnnotationProcessor,org.springfram ework.integration.internalDefaultConfiguringBeanFa ctoryPostProcessor,output,input,org.springframewor k.integration.jms.JmsSendingMessageHandler#0,org.s pringframework.integration.config.ConsumerEndpoint FactoryBean#0,org.springframework.jms.listener.Def aultMessageListenerContainer#0,org.springframework .integration.jms.ChannelPublishingJmsMessageListen er#0,org.springframework.integration.jms.JmsMessag eDrivenEndpoint#0,org.springframework.integration. config.RouterFactoryBean#0,org.springframework.int egration.config.ConsumerEndpointFactoryBean#1,inve ntory,shouter,connectionFactory,nullChannel,errorC hannel,_org.springframework.integration.errorLogge r,taskScheduler,org.springframework.integration.co nfig.IdGeneratorConfigurer#0]; root of factory hierarchy
    SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10, 1.5.11]
    SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
    Sep 12, 2011 4:25:25 PM org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry destroySingletons
    INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultL istableBeanFactory@15d17d7: defining beans [jmsConfiguration,messageHandler,org.springframewor k.context.annotation.internalConfigurationAnnotati onProcessor,org.springframework.context.annotation .internalAutowiredAnnotationProcessor,org.springfr amework.context.annotation.internalRequiredAnnotat ionProcessor,org.springframework.context.annotatio n.internalCommonAnnotationProcessor,org.springfram ework.integration.internalDefaultConfiguringBeanFa ctoryPostProcessor,output,input,org.springframewor k.integration.jms.JmsSendingMessageHandler#0,org.s pringframework.integration.config.ConsumerEndpoint FactoryBean#0,org.springframework.jms.listener.Def aultMessageListenerContainer#0,org.springframework .integration.jms.ChannelPublishingJmsMessageListen er#0,org.springframework.integration.jms.JmsMessag eDrivenEndpoint#0,org.springframework.integration. config.RouterFactoryBean#0,org.springframework.int egration.config.ConsumerEndpointFactoryBean#1,inve ntory,shouter,connectionFactory,nullChannel,errorC hannel,_org.springframework.integration.errorLogge r,taskScheduler,org.springframework.integration.co nfig.IdGeneratorConfigurer#0]; root of factory hierarchy
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#1', and no default poller is available within the context.
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1420)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 93)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:290 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:192)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:567)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:425)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
    at com.apress.prospringintegration.test.main(test.jav a:38)
    Caused by: java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#1', and no default poller is available within the context.
    at org.springframework.util.Assert.notNull(Assert.jav a:112)
    at org.springframework.integration.config.ConsumerEnd pointFactoryBean.initializeEndpoint(ConsumerEndpoi ntFactoryBean.java:180)
    at org.springframework.integration.config.ConsumerEnd pointFactoryBean.afterPropertiesSet(ConsumerEndpoi ntFactoryBean.java:135)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1477)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1417)
    ... 12 more

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    637

    Default

    Hello.
    Your question not about http://www.springsource.org/spring-integration
    You have got problem about mismatch of slf4j-api version and his implementation version in your CLASSPATH.

    Hope, this helps,
    Artem Bilan

  3. #3
    Join Date
    Sep 2011
    Posts
    167

    Default

    hi,

    check the stack trace carefully and the error it is showing....


    Caused by: java.lang.IllegalArgumentException: No poller has been defined for endpoint 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#1', and no default poller is available within the context.


    any idea for that..?

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Any time there is a PollableChannel (the channels with a <queue> sub-element), then the consuming endpoint that references such a channel via its own 'input-channel' attribute will be a Polling Consumer. Therefore, that consumer either needs an explicit <poller> sub-element or there needs to be a single top-level <poller> in the configuration that has its 'default' attribute set to true.

    Please read this section of the manual: http://static.springsource.org/sprin...oint-namespace

  5. #5
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    637

    Default

    Sorry for my quick reply.
    Now I see your problem.

    If you define channel as queue you must have some default poller:
    <poller default="true" fixed-rate="1000">
    <transactional/>
    </poller>
    Or you can define poller in your ConsumerEndpoint of this queue-channel as nested configuration.

    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •