SharePoint BCS : There are no addresses available for this application

While activating a feature in the project which was using external content types, i received the following error:
There are no addresses available for this application.


In Central Administration clicking on Business Data Connectivity shows the given error
Application Management- Manage Application Services- Business Data Connectivity

In System Settings- Manage Services on Server, I found that Business Data Connectivity Service was stopped.
Starting the service and performing IISREST resolved the problem.