I take it you are using an amp. Unplug the amp. Does it still shock? Unplug your effects? Does it still shock? Check for loose wires in the guitar and your amp. Did you remove the ground prong on the amp's electrical cord to use in a two-prong outlet?
Also, are you using two amps in parallel? That'll do it. If so, you need a signal director.