Spring integration AMPQ:-“历史”。应为[class MessageHistory],但实际类型为[class ArrayList]

Spring integration AMPQ:-“历史”。应为[class MessageHistory],但实际类型为[class ArrayList],spring-integration,spring-amqp,Spring Integration,Spring Amqp,Spring集成和Spring集成AMQP 我有以下代码: <bean id="allHeadersMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper"> <property name="requestHeaderNames" value="*" /> <property name="replyHeaderNames"

Spring集成和Spring集成AMQP

我有以下代码:

<bean id="allHeadersMapper" class="org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper">
        <property name="requestHeaderNames" value="*" />
        <property name="replyHeaderNames" value="*" />
    </bean>

<int-amqp:inbound-channel-adapter channel="ResponseChannel" queue-names="OutputQueue" connection-factory="amqpConnectionFactory" error-channel="274ErrorChannel" header-mapper="allHeadersMapper"  />
我得到一个例外:

Incorrect type specified for header 'history'. Expected [class org.springframework.integration.history.MessageHistory] but actual type is [class java.util.ArrayList]

你介意分享更多的StackTrace来确定犯罪成分吗。
Incorrect type specified for header 'history'. Expected [class org.springframework.integration.history.MessageHistory] but actual type is [class java.util.ArrayList]