Inspectopedia Help

Incorrect Spring Integration XML-based application context

Reports issues with the Spring Integration XML-based application context:

  • Unresolved bean references

  • Missing required tags or attributes

  • Incorrect property types

  • Inconsistent enum properties

  • Incorrect types of referenced beans


<beans ... > <int:channel id="channel"> <!-- 'dispatcher' and 'queue' can't be used together --> <int:dispatcher failover="true"/> <int:priority-queue capacity="4"/> </int:channel> <int:channel id="another" > <int:queue <!--Exactly one of 'message-store' or 'ref' is required --> capacity="4" message-store="myMessageStore" ref="myQueue"/> </int:channel> <int:gateway id="asyncGatewayError" async-executor="dummyBean"/> <!--Bean must be of 'java.util.concurrent.Executor' type --> <int:delayer default-delay="3" message-store="myMessageStore" scheduler="scheduler" wait-for-tasks-to-complete-on-shutdown="false"/> <!--Bean must be of 'java.util.concurrent.Executor' type --> <int:delayer default-delay="INVALID_VALUE" <!--Cannot convert string 'INVALID_VALUE' to target class 'java.lang.Integer' --> message-store="dummyBean" <!-- Bean must be of '' type--> scheduler="dummyBean" <!-- Bean must be one of these types: java.util.concurrent.ScheduledExecutorService,org.springframework.scheduling.TaskScheduler--> wait-for-tasks-to-complete-on-shutdown="INVALID_VALUE"/> <!-- Cannot resolve symbol 'INVALID_VALUE' --> <bean id="dummyBean" class="java.lang.String"/> <bean id="myMessageStore" class=""/> <task:scheduler id="scheduler"/> </beans>

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring Integration Patterns, 241.16690

Last modified: 29 April 2024