SimpleAmqpClient icon indicating copy to clipboard operation
SimpleAmqpClient copied to clipboard

What does this exception mean? (IE what am I doing wrong)

Open Sourpowerpete opened this issue 7 years ago • 4 comments

" try { AmqpException::Throw(*reinterpret_cast<amqp_channel_close_t *>( incoming_frame.payload.method.decoded)); } catch (AmqpException &) { MaybeReleaseBuffersOnChannel(incoming_frame.channel); throw;"

Here's the code for my publisher: https://pastebin.com/4iR2898B And here's the code for my receiver: https://pastebin.com/Z7PVMwJ1

It crashes when I run the receiver and then the publisher. Running the publisher doesn't work, as the receiver never receives a message.

Sourpowerpete avatar Jun 20 '18 19:06 Sourpowerpete

hey @Sourpowerpete what exception the code throw, as I am now facing a problem while establishing the connection Channel::ptr_t connection = Channel::Create("127.0.0.1", 5672, "code_client", "1234");

It throws Socket error occurred.

Did you install SimpleAmqp from scratch or installed it via NuGet in VS?

ktawfik avatar Jun 20 '18 21:06 ktawfik

I built it from scratch using the instructions on the front page.

Sourpowerpete avatar Jun 21 '18 14:06 Sourpowerpete

Do you have any idea why do I get such error?, I build it from scratch as well.

ktawfik avatar Jun 21 '18 22:06 ktawfik

Calling the what() method on the thrown exception will give you more information about what the exception being thrown.

Likely the error is that queue = 'queue' is being declared as an exclusive queue queue in both the publisher and receiver. This causes the 2nd one to declare the queue to fail.

alanxz avatar Jul 08 '18 06:07 alanxz