What does ‘pickle’ mean?

( n ) Jam, trouble. She is such an airhead, getting in one pickle after another.
( pp ) Trouble. Pedro forgot that he had invited Remona to the party and got himself in a pickle when he invited Kristin, too.