org.springframework.messaging.converter.MessageConversionException: Cannot convert from [[B] to dto

1,202 views
Skip to first unread message

Sercan Noyan Germiyanoglu

unread,
Aug 3, 2022, 2:38:10 PM8/3/22
to rabbitmq-users
Hi,
I have a problem about sending message from one service to another.

While listening message from rabbitmq in one service, I got this issue in report service.

Caused by: org.springframework.messaging.converter.MessageConversionException: Cannot convert from [[B] to [com.springbootmicroservices.report.dto.AdvertisementDto] for GenericMessage [payload=byte[59], headers={amqp_receivedDeliveryMode=PERSISTENT, amqp_receivedRoutingKey=queue-advertisement, amqp_contentEncoding=UTF-8, amqp_deliveryTag=1, amqp_consumerQueue=queue-advertisement, amqp_redelivered=false, id=38ab4c7f-6de4-dbbd-6471-5ba1cf2a80bc, amqp_consumerTag=amq.ctag-d4XUFeupnFO59f5OKRwlTQ, amqp_lastInBatch=false, contentType=application/json, __TypeId__=com.springbootmicroservices.advertisement.dto.AdvertisementDto, timestamp=1659551606120}]

How can I fix it?

Gary Russell

unread,
Aug 4, 2022, 10:34:22 AM8/4/22
to rabbitm...@googlegroups.com
Please ask questions about Spring on Stack Overflow, tagged with spring-amqp.

Also, show the actual code you are having problems with; not just a pointer to a repo with many projects.

Preferably, provide an MCRE [1].




From: rabbitm...@googlegroups.com <rabbitm...@googlegroups.com> on behalf of Sercan Noyan Germiyanoglu <sngermi...@gmail.com>
Sent: Wednesday, August 3, 2022 2:38 PM
To: rabbitmq-users <rabbitm...@googlegroups.com>
Subject: [rabbitmq-users] org.springframework.messaging.converter.MessageConversionException: Cannot convert from [[B] to dto
 

⚠ External Email

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/732750c0-b5d9-4dd5-ba8a-3123ce18a440n%40googlegroups.com.


⚠ External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.

Reply all
Reply to author
Forward
0 new messages