There are several causes for chest pain which could be heart related (cardiac), or gastrointestinal causes one of which is acid reflux or GERD or psychological causes such as panic attacks, anxiety, stress which has resulted in your ulcer. Your vomiting seems to be the acid reflux...