Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

Posted 王小雷-多面手

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)相关的知识,希望对你有一定的参考价值。

Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

Spring AMQ 集成 RabbitMQ,使用postman调试topic报错

  • 报错内容

Caused by: org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Failed to invoke target method ‘receiveMessage’ with argument type = [class [B], value = [[B@393264a4]

Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)

原因是发送时编码问题,需要增加

content_encoding":"UTF-8","content_type":"text/plain"
  • 使用postman调试RabbitMQ topic
    完整postman配置

认证配置 authorization

以上是关于Caused by: java.lang.NoSuchMethodException: hello.Receiver.receiveMessage([B)的主要内容,如果未能解决你的问题,请参考以下文章

Mathematical Problems Caused by CCD

Caused by SSLError

Caused by: java.lang.NoClassDefFoundError:

caused by a circular import.

异常Caused by: java.lang.ClassNotFoundException: org.springframework.dao.DataIntegrityViolationExcep

Caused by org hibernate DuplicateMappingException Duplicat