Hi ! The symptoms you have described points to some kind of irritation in the peritoneal cavity
(abdomen). It could be an attack of appendicitis
, or urinary tract infection
with impacted calculi in the right side ureter. There could be a reflex suppression of urine in these conditions. I would suggest you to be examined clinically be your family physician first, who may advise you for investigations like CBC, urine test, ultrasound abdomen, and then he may advise to be examined by a general surgeon
. By the way, you have not mentioned anything on your age. In case of elderly persons urinary retention
with distended bladder due to increase in the size of prostate has to be ruled out.