in a pickle
The term refers to being in pickling solution, presumably unpleasant. It was first used in English by William Shakespeare in The Tempest (1611), although the phrase had been used in Dutch earlier.