Null exception [parser.execute()] #77

prystupa opened this Issue Mar 7, 2012 · 1 comment


None yet

2 participants

prystupa commented Mar 7, 2012

I'm getting occasional crashes inside amqp.js in the following place (around line 832):

  self.addListener('data', function (data) {

self.addListener('end', function () {
    // in order to allow reconnects, have to clear the
    // state.
    parser = null;

This is my stack trace:

TypeError: Cannot call method 'execute' of null
    at Connection.<anonymous> (/usr/local/marquee-web/node_modules/amqp/amqp.js:851:12)
    at Connection.emit (events.js:67:17)
    at TCP.onread (net.js:347:14)

Just before that I'm also getting an 'error' event from AMQP connection object. As you can see from the code above the parser is indeed set to null when connection ends. Is this a race condition of some sort?

xissy commented Dec 16, 2012

It occurs same to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment