My 9 yr old male has done this for years. Mostly at night or early morning. Vet says there is no need for concern. I guess you could say it was a form of human "acid reflex". However there are deferent causes that can be much more serious. Below is what I could find that may be helpful.
Why Does My Dog Keep Throwing Up Yellow Bile? | eHow.com