Ulcers main cause is H pyori bacteria that effects the GI AKA Gastroligical tract. The second cause of ulcers is the use of pain killers. m the use of medication. Some other things that may cause ulcers are Unbalanced Diet
,Smoking ,Alcohol In fact ulcers tend to be more common in heavy drinkers, Stress ,Caffeine,Acid , and even Family History. The exact reason why some people get ulcers, and some do not is unclear. However my own theroy is that people with higher stres levels lower their immunity, slow their healing process, ,and make it more dificult for their body to cope with the things that may cause ulcers. Stress may increase your risk of devloping an ulcer, but it is not the only cause.
It does play a role though. Such as stress, and cold weather do not directly give you a cold. However they contribute by lowering the bodys immunity, and make it more difiult for the body to fight of infections.