I am having really bad stomach pain and vomiting blood I was checked for ulcer and thankfully I don't have ulcer but what can it be?

One possibility... ...Is something called mallory-weiss tear: http://www.Nlm.Nih.Gov/medlineplus/ency/article/000269.Htm this can be an emergency if it does not go away quickly.