achilleasa / dart_amqp

Dart AMQP client implementing protocol version 0.9.1
MIT License
79 stars 40 forks source link

After connection I get The null object does not have a getter 'msgClassId'. #4

Closed FaisalAbid closed 8 years ago

FaisalAbid commented 8 years ago

Sometimes after connecting to my RabbitMQ instance I get the following error.

Jan 05 22:22:02 a41a608c3bea clever_bardeen: The null object does not have a getter 'msgClassId'. Jan 05 22:22:02 a41a608c3bea clever_bardeen: NoSuchMethodError: method not found: 'msgClassId' Jan 05 22:22:02 a41a608c3bea clever_bardeen: Receiver: null Jan 05 22:22:02 a41a608c3bea clever_bardeen: Arguments: []

Which ends up eventually throwing

FatalException: Lost connection to the server.

Even though the server is fine.

rajmaniar commented 8 years ago

Try disabling the heartbeat in your server configs. I've had a very similar looking issue with RabbitMQ overriding the client connection settings.

FaisalAbid commented 8 years ago

Thanks I'll try that!

On Tue, Jan 5, 2016, 11:28 PM Raj Maniar notifications@github.com wrote:

Try disabling the heartbeat in your server configs. I've had a very similar looking issue with RabbitMQ overriding the client connection settings.

— Reply to this email directly or view it on GitHub https://github.com/achilleasa/dart_amqp/issues/4#issuecomment-169217084.

FaisalAbid commented 8 years ago

Arg, I'm using a cloud service to host rabbitmq and I don't think I can disable it, it's set to 120 seconds.

Hey @rajmaniar how would I go about implementing heartbeat in this driver? Would it just be a timer that sends specific data every 120 seconds or less?

achilleasa commented 8 years ago

Thanks for submitting a patch for that.

I have merged it into master and published a new release. If there is enough interest I could look into implementing heartbeats.

FaisalAbid commented 8 years ago

Thanks @achilleasa . It would be awesome if you get around to implementing heartbeats. I think Dart needs one solid MQ solution and this is it!

Great work!