It could be a urinary tract infection, kidney stones, crystals in the urine etc, I'd get him to the vet to get him diagnosed and treated. Make sure he drinks lots of water.
Didn't find the answer you were looking for?