Rectangle 27 0

java Attribute 'fixed rate' is not allowed to appear in element 'int:poller'?


<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-integration</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.integration</groupId>
            <artifactId>spring-integration-file</artifactId>
        </dependency>

I know i am late but i am adding this for someone like me who stumbles upon this. Some times it may be due to simple mistakes like not including spring dependencies. I moved application to spring boot and forgot to include following two dependencies and i received this error. You should add version in the dependencies below if directly using in pom without dependencyManagement BOM of spring integration.

Note
Rectangle 27 0

java Attribute 'fixed rate' is not allowed to appear in element 'int:poller'?


<int:inbound-channel-adapter .... >
    <int:poller >
        <int:interval-trigger fixed-rate=".." />
    </int:poller >
</int:inbound-channel-adapter>

I guess you need to study the schema or some other detailed documentation.

That's because the schema does not allow the fixed-rate attribute on that element. My guess is that you want this:

thanks for your suggestion Now I am able to allow fixed-rate but getting another exception " http //www.springframework.org/schema/integration advice-chain ' is expected"

Note
Rectangle 27 0

java Attribute 'fixed rate' is not allowed to appear in element 'int:poller'?


<int:inbound-channel-adapter .... >
    <int:poller >
        <int:interval-trigger fixed-rate=".." />
    </int:poller >
</int:inbound-channel-adapter>

I guess you need to study the schema or some other detailed documentation.

That's because the schema does not allow the fixed-rate attribute on that element. My guess is that you want this:

thanks for your suggestion Now I am able to allow fixed-rate but getting another exception " http //www.springframework.org/schema/integration advice-chain ' is expected"

Note
Rectangle 27 0

java Attribute 'fixed rate' is not allowed to appear in element 'int:poller'?


<int:inbound-channel-adapter id="fileTransferChannelAdapter" auto-startup="true" ref="fileTransferCollector" method="poll" channel="fileTransferChannel">
    <int:poller fixed-rate="500">
    </int:poller>
</int:inbound-channel-adapter>

I've encountered the same problem and I can resolve it like this :

Note