Após fazer as implementações da aula 3, estou com erro ao executar a aplicação Pedido-ms:
2024-10-19 14:55:35.834 INFO 33100 --- [ restartedMain] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [localhost:5672]
2024-10-19 14:55:35.877 INFO 33100 --- [ restartedMain] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#307c9bf0:0/SimpleConnection@59b011c [delegate=amqp://guest@127.0.0.1:5672/, localPort= 54595]
2024-10-19 14:55:35.881 INFO 33100 --- [ restartedMain] o.s.amqp.rabbit.core.RabbitAdmin : Auto-declaring a non-durable, auto-delete, or exclusive Queue (pagamentos.detalhes-pedido) durable:false, auto-delete:false, exclusive:false. It will be redeclared if the broker stops and is restarted while the connection factory is alive, but all messages will be lost.
2024-10-19 14:55:35.917 WARN 33100 --- [ntContainer#0-1] o.s.a.r.listener.BlockingQueueConsumer : Failed to declare queue: pagamento.datalhes-pedido
2024-10-19 14:55:35.920 WARN 33100 --- [ntContainer#0-1] o.s.a.r.listener.BlockingQueueConsumer : Queue declaration failed; retries left=3
org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[pagamento.datalhes-pedido]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:743) ~[spring-rabbit-2.4.4.jar:2.4.4]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.passiveDeclarations(BlockingQueueConsumer.java:620) ~[spring-rabbit-2.4.4.jar:2.4.4]
at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:607) ~[spring-rabbit-2.4.4.jar:2.4.4]
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.initialize(SimpleMessageListenerContainer.java:1375) ~[spring-rabbit-2.4.4.jar:2.4.4]
at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1220) ~[spring-rabbit-2.4.4.jar:2.4.4]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.io.IOException: null
Resumindo as mensagens mais relevantes da pilha exception:
Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no queue 'pagamento.datalhes-pedido' in vhost '/', class-id=50, method-id=10)
2024-10-19 14:55:45.932 WARN 33100 --- [ntContainer#0-1] o.s.a.r.listener.BlockingQueueConsumer : Failed to declare queue: pagamento.datalhes-pedido
2024-10-19 14:55:45.933 WARN 33100 --- [ntContainer#0-1] o.s.a.r.listener.BlockingQueueConsumer : Queue declaration failed; retries left=1