Give him some cranberry juice (100%, no sugar added; as natural as possible) in the meantime. Sometimes that already helps my glider. But take him to the vet - it can be a UTI or inflammation of the bladder, in which case he would need antibiotics or an anti-inflammatory, respectively.