{"action":"opened","issue":{"url":"https://api.github.com/repos/zatosource/zato/issues/552","repository_url":"https://api.github.com/repos/zatosource/zato","labels_url":"https://api.github.com/repos/zatosource/zato/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/zatosource/zato/issues/552/comments","events_url":"https://api.github.com/repos/zatosource/zato/issues/552/events","html_url":"https://github.com/zatosource/zato/issues/552","id":132142556,"number":552,"title":"gh277 - AttributeError after deleting AMQP connection","user":{"login":"rafal-k","id":6079638,"avatar_url":"https://avatars.githubusercontent.com/u/6079638?v=3","gravatar_id":"","url":"https://api.github.com/users/rafal-k","html_url":"https://github.com/rafal-k","followers_url":"https://api.github.com/users/rafal-k/followers","following_url":"https://api.github.com/users/rafal-k/following{/other_user}","gists_url":"https://api.github.com/users/rafal-k/gists{/gist_id}","starred_url":"https://api.github.com/users/rafal-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafal-k/subscriptions","organizations_url":"https://api.github.com/users/rafal-k/orgs","repos_url":"https://api.github.com/users/rafal-k/repos","events_url":"https://api.github.com/users/rafal-k/events{/privacy}","received_events_url":"https://api.github.com/users/rafal-k/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zatosource/zato/labels/django-upgrade","name":"django-upgrade","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-08T13:32:50Z","updated_at":"2016-02-08T13:32:50Z","closed_at":null,"body":"After I deleted an AMQP connection, I found the following error in the server log:\r\n\r\n```\r\n2016-02-08 12:56:36,605 - ERROR - 3737:Thread-3 - zato.server.base:22 - Could not handle broker msg:[Bunch(action=u'100602', id=1L, msg_type=u'0005')], e:[Traceback (most recent call last):\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/base/__init__.py\", line 47, in on_broker_msg\r\ngetattr(self, handler)(msg)\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/connection/amqp/__init__.py\", line 152, in on_broker_msg_DEFINITION_AMQP_DELETE\r\nself._close()\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/connection/amqp/__init__.py\", line 212, in _close\r\nself._stop_amqp_connection()\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/connection/amqp/channel.py\", line 159, in _stop_amqp_connection\r\nself.channel_amqp.consumer.close()\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/connection/__init__.py\", line 103, in close\r\nself._close()\r\nFile \"/home/vagrant/zato/code/zato-server/src/zato/server/connection/amqp/__init__.py\", line 63, in _close\r\nself.conn.close()\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/adapters/base_connection.py\", line 86, in close\r\nsuper(BaseConnection, self).close(reply_code, reply_text)\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 600, in close\r\nself._on_close_ready()\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 1038, in _on_close_ready\r\nself._send_connection_close(self.closing[0], self.closing[1])\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 1311, in _send_connection_close\r\nself._on_connection_closed, [spec.Connection.CloseOk])\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 1301, in _rpc\r\nself._send_method(channel_number, method_frame)\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 1366, in _send_method\r\nself._send_frame(frame.Method(channel_number, method_frame))\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/connection.py\", line 1353, in _send_frame\r\nself._flush_outbound()\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/adapters/select_connection.py\", line 41, in _flush_outbound\r\nself.ioloop.poller._manage_event_state()\r\nFile \"/home/vagrant/zato/code/eggs/pika-0.9.12-py2.7.egg/pika/adapters/base_connection.py\", line 358, in _manage_event_state\r\nself.ioloop.update_handler(self.socket.fileno(),\r\nAttributeError: 'NoneType' object has no attribute 'fileno')]\r\n```"}}