Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2121

Message header value has type com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.1 M1
    • Fix Version/s: 2.1 M2
    • Component/s: AMQP Support
    • Labels:
      None

      Description

      This issue is exactly similar to https://jira.springsource.org/browse/AMQP-170 defect

      it is occurring when i am trying to receive AMQP message through AMQP inbound-channel-adapter connected to http:outbound-gateway

      http:outbound-gateway throws following Error

      Caused by: java.lang.IllegalArgumentException: Expected MediaType or String value for 'Content-Type' header value, but received: class com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString
      at org.springframework.integration.http.support.DefaultHttpHeaderMapper.setHttpHeader(DefaultHttpHeaderMapper.java:571)

      analyzing the spring-integration-amqp code pointed the problem in org.springframework.integration.amqp.support.DefaultAmqpHeaderMapper.toHeaders() method

        Attachments

          Activity

            People

            • Assignee:
              mark.fisher Mark Fisher
              Reporter:
              dayanand Dayanand
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: