Soooo, this has been bothering me like crazy for the past couple of months. It especially started happening when I moved to another appartement, and I finally have the solution.
My AC-outlets here are not grounded, but I thought I would have to use a grounded AC-adapter anyway. But it kept shocking me (I actually measured it at 80 volts, for people who would like to know 🙂)
So the solution is:
When on a grounded power outlet, use the grounded AC adapter. When on a non-grounded outlet, use the duckhead-adapter OR replace the clipon-extension chord of the adapter with a basic ungrounded one (you can get them in any electronics-shop, it's one of those things that usually plug into those big block PC-adapters. It should have a flat plug) if you would like more length than the short adapter.
Also, always use grounded power adapters for peripherals (printers, hdd's etc.), and ungrounded ones if you are on an ungrounded outlet. Otherwise the grounding will still want to go through your body.
It's actually basic electronics 101, but it still got me a while to figure it out.
If you still experience shocking on a grounded outlet with a grounded plug, try switching to an ungrounded adapter (the duckhead one), it could be that your power outlet, or grounding in the whole house is defective.
But, last of all: It's bloody annoying and I really don't get why Apple decided to do it this way.