Risk factors for prostatitis include:  Being young or middle-aged. Trauma to the pelvis from an injury. Using a urinary catheter, which is a tube that drains urine.