Announcement Announcement Module
Collapse
No announcement yet.
Exception while referring to a bean from ServiceActivator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception while referring to a bean from ServiceActivator

    I am getting the below exception when i am trying to ref the bean from ServiceActivator in Spring Integration.
    Could someone please let me know what i am doing wrong


    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ConsumerEn dpointFactoryBean#2': Cannot resolve reference to bean 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isCglibProxyCl ass(Ljava/lang/ClassZ at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1327) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1085) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:516) at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:455) 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.(ClassPathXmlApplicationContext.j ava:139) at org.springframework.context.support.ClassPathXmlAp plicationContext.(ClassPathXmlApplicationContext.j ava:83) at com.shephertz.app42.paas.service.ChannelAdapterDem o.main(ChannelAdapterDemo.java:17) Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.integration.config.ServiceAct ivatorFactoryBean#0': FactoryBean threw exception on object creation; nested exception is java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isCglibProxyCl ass(Ljava/lang/ClassZ at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:149) at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.getObjectFromFactoryBean(Factor yBeanRegistrySupport.java:102) at org.springframework.beans.factory.support.Abstract BeanFactory.getObjectForBeanInstance(AbstractBeanF actory.java:1440) at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:247 ) at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:192) at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:322) ... 15 more Caused by: java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isCglibProxyCl ass(Ljava/lang/ClassZ at org.springframework.aop.support.AopUtils.isCglibPr oxyClass(AopUtils.java:96) at org.springframework.integration.util.MessagingMeth odInvokerHelper.getTargetClass(MessagingMethodInvo kerHelper.java:365) at org.springframework.integration.util.MessagingMeth odInvokerHelper.findHandlerMethodsForTarget(Messag ingMethodInvokerHelper.java:274) at org.springframework.integration.util.MessagingMeth odInvokerHelper.(MessagingMethodInvokerHelper.java :169) at org.springframework.integration.util.MessagingMeth odInvokerHelper.(MessagingMethodInvokerHelper.java :107) at org.springframework.integration.util.MessagingMeth odInvokerHelper.(MessagingMethodInvokerHelper.java :111) at org.springframework.integration.handler.MethodInvo kingMessageProcessor.(MethodInvokingMessageProcess or.java:48) at org.springframework.integration.handler.ServiceAct ivatingHandler.(ServiceActivatingHandler.java:43) at org.springframework.integration.config.ServiceActi vatorFactoryBean.createMethodInvokingHandler(Servi ceActivatorFactoryBean.java:48) at org.springframework.integration.config.AbstractSta ndardMessageHandlerFactoryBean.createHandler(Abstr actStandardMessageHandlerFactoryBean.java:72) at org.springframework.integration.config.AbstractSim pleMessageHandlerFactoryBean.createHandlerInternal (AbstractSimpleMessageHandlerFactoryBean.java:99) at org.springframework.integration.config.AbstractSim pleMessageHandlerFactoryBean.getObject(AbstractSim pleMessageHandlerFactoryBean.java:81) at org.springframework.integration.config.AbstractSim pleMessageHandlerFactoryBean.getObject(AbstractSim pleMessageHandlerFactoryBean.java:38) at org.springframework.beans.factory.support.FactoryB eanRegistrySupport.doGetObjectFromFactoryBean(Fact oryBeanRegistrySupport.java:142) ... 20 more
Working...
X