当前位置:   article > 正文

rabbitmq 清理消息队列 解决 启动消费者报错_由于队列不存在,启动消费者报错的这个问题

由于队列不存在,启动消费者报错的这个问题

 org.springframework.amqp.rabbit.support.ListenerExecutionFailedException: Listener threw exception

 [ntContainer#1-1] s.a.r.l.ConditionalRejectingErrorHandler : Execution of Rabbit message listener failed.

  1. org.springframework.amqp.rabbit.support.ListenerExecutionFailedException: Listener threw exception
  2.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.wrapToListenerExecutionFailedExceptionIfNeeded(AbstractMessageListenerContainer.java:1705) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  3.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1595) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  4.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1510) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  5.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1498) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  6.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1489) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  7.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1433) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  8.     at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970) [spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  9.     at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916) [spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  10.     at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83) [spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  11.     at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291) [spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  12.     at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197) [spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  13.     at java.lang.Thread.run(Thread.java:750) [na:1.8.0_321]
  14. Caused by: org.springframework.amqp.AmqpException: No method found for class java.lang.String
  15.     at org.springframework.amqp.rabbit.listener.adapter.DelegatingInvocableHandler.getHandlerForPayload(DelegatingInvocableHandler.java:151) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  16.     at org.springframework.amqp.rabbit.listener.adapter.DelegatingInvocableHandler.getMethodFor(DelegatingInvocableHandler.java:270) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  17.     at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.getMethodFor(HandlerAdapter.java:84) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  18.     at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:146) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  19.     at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  20.     at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1591) ~[spring-rabbit-2.2.9.RELEASE.jar:2.2.9.RELEASE]
  21.     ... 10 common frames omitted
  22. 2023-06-20 17:17:08.028  WARN 14252 --- [ntContainer#1-1] s.a.r.l.ConditionalRejectingErrorHandler : Execution of Rabbit message listener failed.

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/625944
推荐阅读
相关标签
  

闽ICP备14008679号