Announcement Announcement Module
No announcement yet.
outbound-channel-adapter failed to map Message header '$timestamp' Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • outbound-channel-adapter failed to map Message header '$timestamp'

    I have configured an jms outbound-channel-adapter as follows

    <jms:outbound-channel-adapter channel="responseChannel" destination="responseQueue" />

    When a message is sent to the response channel I get the following warning. I am using activemq 5.2.0

    [org.springframework.jms.listener.DefaultMessageLis tenerContainer#0-1] WARN org.springframework.integration.jms.DefaultJmsHead erMapper 2010-10-20 14:32:08,258 failed to map Message header '$timestamp' to JMS property

    Is this an problem? Or should I turn of the logging at this level?

    Here is the stack trace

    javax.jms.MessageNotWriteableException: Message properties are read-only
    at org.apache.activemq.command.ActiveMQMessage.checkR eadOnlyProperties(
    at org.apache.activemq.command.ActiveMQMessage.setObj ectProperty(
    at org.apache.activemq.command.ActiveMQMessage.setObj ectProperty(
    at org.springframework.integration.jms.DefaultJmsHead erMapper.fromHeaders( 01)
    at org.springframework.integration.jms.DefaultJmsHead erMapper.fromHeaders( 3)
    at org.springframework.integration.jms.JmsSendingMess ageHandler$1.postProcessMessage(JmsSendingMessageH
    at org.springframework.jms.core.JmsTemplate$7.createM essage(
    at org.springframework.jms.core.JmsTemplate.doSend(Jm
    at org.springframework.jms.core.JmsTemplate$3.doInJms (
    at org.springframework.jms.core.JmsTemplate.execute(J

  • #2
    By default, SI jms adapter tries to map all the header properties into corresponding JMS header properties.
    In this case, you have something like "$timestamp" in the SI header, and that mapping is failing.
    Again, if you see, its just a warning and won't cause any issues.
    Check DefaultJmsHeaderMapper for exact details.