Harassed was a poor word choice on my part when titling this thread, but in my defense I did write stopped
or harassed, not stopped
and harassed, as a few seem to be reading it. I was trying to come up with a word for the times a police officer may have addressed you in some manner without actually stopping you. As many have noted, true harassment of cyclists seems fairly rare, and I would agree.
Personally, I have never been stopped or addressed by an officer while cycling, but reading some of the stories here has me expecting it eventually. I rarely break laws, but often ride near the center of the lane. I make a point of waving to police whenever practical, and sometimes they wave back. I am always happy to see them on my route, as they seem to have a magical effect on motorist behavior.

(in the immediate area anyway)
Once, when a major intersection was shut down because of a serious car wreck, I asked the officer at the blockade if it was ok for me to ride through. He said sure, go ahead, while requiring all the motorists to turn around!