Announcement Announcement Module
Collapse
No announcement yet.
Exception while trying to run a standalone program Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception while trying to run a standalone program

    Please refer to this:

    https://issues.springsource.org/browse/INT-885
    https://jira.springsource.org/browse/INT-797

    Apparently, this should have been fixed in 1.0.4, but I am still getting the following error:

    Code:
    Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.config.ConsumerEndpointFactoryBean#10': Cannot resolve reference to bean 'org.springframework.integration.handler.ServiceActivatingHandler#8' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.integration.handler.ServiceActivatingHandler#8': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.integration.handler.ServiceActivatingHandler]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: At most one method can expect only Message headers rather than a Message or payload, but found two: [public org.springframework.ws.client.support.interceptor.ClientInterceptor[] com.xxxx.outboundGateway.CPSMarshallingWebServiceOutboundGateway.getInterceptors()] and [public void com.xxxx.outboundGateway.CPSMarshallingWebServiceOutboundGateway.afterPropertiesSet() throws java.lang.Exception]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308)
        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947)
        at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:701)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
        at com.xxxx.v12.client.FIClient.main(FIClient.java:23)
    We cannot move to 2.0.x, though I am going to give it a shot to verify soon.

    Spring version: 2.5.6.SEC01
    Last edited by GPS; Oct 19th, 2010, 04:11 PM. Reason: Edited

  • #2
    Thanks to an anonymous message..

    In one of the defined service activators, i forgot to specify the method in the namespace declaration.

    Comment

    Working...
    X