Inspectopedia 2025.2 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

Example:

<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 'org.springframework.integration.store.MessageStore' 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="org.springframework.integration.store.SimpleMessageStore"/> <task:scheduler id="scheduler"/> </beans>

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

SpringIntegrationModel
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Spring | Spring Integration

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection SpringIntegrationModel

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.2, Qodana for JVM 2025.2,

Last modified: 18 September 2025