in a jam

[in a jam] {adv. phr.}, {informal} In a predicament; in a situationfraught with difficulty.

If you continue to disregard theuniversity instructions on how to take a test, you'll wind up in a jamwith the head of the department.

Compare: IN A PICKLE, IN DEEP SHIT.