Experts say that excess production of the stomach acid is responsible for corroding the lining of the esophagus, causing it to inflame and eventually producing an ulcer. This condition is commonly associated with long-term use of pain relievers, smoking, infection by the bacterium Helicobacter pylori, and acid reflux.