Announcement Announcement Module
Collapse
No announcement yet.
Default poller makes a mistake Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Default poller makes a mistake

    Hi,
    SI loading makes a mistake if configuration files are loaded several times (due to multiple <imports resources ...>) and a global default poller is defined.

    HTML Code:
    	<poller default="true">
    		<interval-trigger interval="30" time-unit="MILLISECONDS" />
    	</poller>
    The poller tries to register more than one instance in his context.
    I looked at the SI code and I understood why it's not allowed but it's a constraint or a known issue ?

    Code:
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:174)
    	... 11 more
    Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Configuration problem: Only one default <poller/> element is allowed per context.
    All the best,
    Last edited by ZLm; Jan 16th, 2010, 10:07 AM.

  • #2
    This is a constraint, but could you explain exactly why you think it's a mistake? Perhaps you can share a sample project?

    Comment

    Working...
    X