PURPOSE: This randomized phase I/II trial is studying the side effects and best dose of vandetanib when given together with oxaliplatin and docetaxel and to see how well it works in treating patients with advanced cancer of the esophagus or gastroesophageal junction.