Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration on Osgi. <Filter/> does not work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration on Osgi. <Filter/> does not work

    I am using springsource-dm-server-2.0.0.RELEASE Osgi, SI 1.0.3.RELEASE.

    The following is my Spring Configuration.

    <chain input-channel="eventChannel">
    <filter>
    <beans:bean class="filter.EventNameFilter" scope="prototype">
    <beansroperty name="region" value="US" />
    </beans:bean>
    </filter>
    <service-activator ref="pnlUS" method="processEvent" />
    </chain>

    Error reported in equinox is :

    Caused by: java.lang.IllegalArgumentException: 'beanName' must not be empty
    at org.springframework.util.Assert.hasText(Assert.jav a:162)
    at org.springframework.beans.factory.config.RuntimeBe anReference.<init>(RuntimeBeanReference.java:58)
    at org.springframework.beans.factory.config.RuntimeBe anReference.<init>(RuntimeBeanReference.java:46)
    at org.springframework.beans.factory.support.BeanDefi nitionBuilder.addConstructorArgReference(BeanDefin itionBuilder.java:207)
    at org.springframework.integration.config.xml.FilterP arser.parseHandler(FilterParser.java:40)
    at org.springframework.integration.config.xml.Abstrac tConsumerEndpointParser.parseInternal(AbstractCons umerEndpointParser.java:70)
    at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:59)
    at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:73)
    at org.springframework.integration.config.xml.Abstrac tIntegrationNamespaceHandler.parse(AbstractIntegra tionNamespaceHandler.java:52)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1335)
    at org.springframework.integration.config.xml.ChainPa rser.parseChild(ChainParser.java:63)
    at org.springframework.integration.config.xml.ChainPa rser.parseHandler(ChainParser.java:49)
    at org.springframework.integration.config.xml.Abstrac tConsumerEndpointParser.parseInternal(AbstractCons umerEndpointParser.java:70)
    at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:59)
    at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:73)
    at org.springframework.integration.config.xml.Abstrac tIntegrationNamespaceHandler.parse(AbstractIntegra tionNamespaceHandler.java:52)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1335)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1325)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:136)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:93)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:493)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:390)

    (I) I do not get this error if I remove the <Filter> element and messages are received by Service Activator.

    <chain input-channel="eventChannel">
    <service-activator ref="pnlUS" method="processEvent" />
    </chain>

    (II) Is there a maven repo for 2.0.0.m2 release of Spring Integration ?

    Please clarify
    Last edited by Selva; Feb 25th, 2010, 03:08 AM.

  • #2
    Please ignore this post. I got it working with Spring Integration 2.0.0.m2 and Spring DM server 2.0

    Comment

    Working...
    X