I am using testrpc. While running truffle migrate I get the following error:

/usr/local/lib/node_modules/truffle/node_modules/truffle-contract/contract.js:671
throw new Error(this.contract_name + " has no network configuration for its current network id (" + network_id + ").");
^
Error: XXXTokenFactory has no network configuration for its current network id (1497979617513).