A transient who broke into Jennifer Aniston's (search) rented Malibu (search) beach house pleaded no contest to a burglary charge on Tuesday and was sentenced to one year in jail.

Superior Court Judge Karen Nudell ordered David Hesterbey, 49, to undergo psychological counseling as part of a five-year probationary sentence. He also was ordered to stay away from Aniston for 10 years.

Aniston was filming a movie in Chicago (search) on Aug. 25 when Hesterbey took a taxi to her home and climbed over a fence. He was confronted by Aniston's employees and fled.

Hesterbey, who has a prior burglary conviction in Santa Barbara County, was arrested a short time later by sheriff's deputies while he walked along the beach near Aniston's home.