First up you might want to try disconnecting everything from the receiver (speakers, hdmi...whatever other cables) and see if it still shuts off ..if it doesn't might want to start hooking stuff back up on at a time (double checking for frayed speaker wires and for shorted connections on the speakers themselves.
Should the unit still shut off with nothing connected .. you might want to try resetting the unit.
here is a link to doing a factory reset on many onkyo receivers you might want to give this a go.. since you didn't list a model this may or may not apply to yours check i guess.
http://www.eu.onkyo.com/en/videos/factory-reset-of-an-tx-nr609-and-other-57264.html
if it still shuts off after doing that stuff it might well...