title: TypeError: Cannot call method 'handle' of undefined
body: <p>I want to create a simple http server using node js that will listen to a particular port . But I am facing with an error that looks like this :</p>
  
  <pre><code>/usr/local/lib/node_modules/express/lib/application.js:123
    this._router.handle(req, res, function(err) {
                 ^
  TypeError: Cannot call method 'handle' of undefined
      at Function.app.handle (/usr/local/lib/node_modules/express/lib/application.js:123:16)
      at Server.app (/usr/local/lib/node_modules/express/lib/express.js:28:9)
      at Manager.handleRequest (/home/node/node_modules/socket.io/lib/manager.js:565:28)
      at Server.&lt;anonymous&gt; (/home/node/node_modules/socket.io/lib/manager.js:119:10)
      at Server.EventEmitter.emit (events.js:98:17)
      at HTTPParser.parser.onIncoming (http.js:2108:12)
      at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)
      at Socket.socket.ondata (http.js:1966:22)
      at TCP.onread (net.js:527:27)
  </code></pre>
  
  <p>Below is the code I have written :</p>
  
  <pre><code>var express = require('express'); 
  var http = require('http'); 
  
  var app = express();
  var server = http.createServer(app);
  
  server.listen(1200);
  </code></pre>
  
  <p>Recently only I have upgraded the node version and express as mentioned below :</p>
  
  <p>express @ 4.4.1
  node @ 0.10.28</p>
  
  <p>Please can anyone explain where the error lies ?</p>