It usually means that there is a urinary disorder. You need to go ahead and see the vet with him as soon as you can. You can expect the vet to do a urine culture and maybe even some blood work.
The most likely cause is a urinary tract infection or urinary stones but you reallly need to get him checked just to be sure.
Let me know if you still have questions.