我们在日志中使用spring integration和daily,我们可以在下面看到stacktrace。其他JMS适配器工作正常,我们认为只有一个以下缺少一些东西:
Spring集成配置:
<jms:message-driven-channel-adapter concurrent-consumers="1" id="jmsInLOAN" destination="queueLOAN" channel="LOANCommonDataChannel" acknowledge="transacted" />
请查看下面的Put和Msgs读取计数的MQ统计信息,应该有适配器读取的消息的确切数量。我担心Spring集成的消息驱动通道适配器从队列中读取额外的消息。任何帮助将不胜感激。
WARN 07/Jan/2016 09:04:15,438 [org.springframework.jms.listener.DefaultMessageListenerContainer#23-1] springframework.jms.listener.DefaultMessageListenerContainer - [SYSTEM_ID=HBUSLOANIQ] [MESSAGE_ID=null] Execution of JMS message listener failed, and no ErrorHandler has been set.
org.springframework.integration.MessagingException: unsupported payload type [com.ibm.jms.JMSMessage]
at org.springframework.integration.xml.DefaultXmlPayloadConverter.convertToDocument(DefaultXmlPayloadConverter.java:76)
at org.springframework.integration.xml.DefaultXmlPayloadConverter.convertToNode(DefaultXmlPayloadConverter.java:88)
at org.springframework.integration.xml.router.XPathRouter.getChannelIdentifiers(XPathRouter.java:119)
at org.springframework.integration.router.AbstractMessageRouter.determineTargetChannels(AbstractMessageRouter.java:247)
at org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:211)
答案 0 :(得分:0)
看起来您正在将未转换的JMS消息(com.ibm.jms.JMSMessage
)传递给XML Payload转换器......
org.springframework.integration.MessagingException: unsupported payload type [com.ibm.jms.JMSMessage]
at org.springframework.integration.xml.DefaultXmlPayloadConverter.convertToDocument(DefaultXmlPayloadConverter.java:76)
也许您已将extract-payload
设为false
?
虽然它不在您显示的配置中。
启用DEBUG日志记录将显示通过系统的消息的有效负载类型。
答案 1 :(得分:0)