Is my iPhone 4 dock connector broken because it says accessory not supported
Your cable isn't registering as a certified Apple cable. 

Time to replace it - or perhaps just clean the contacts.

Edit:
ohhh... dock, not cable. Then more chance it's dirty contacts; but the dock may be failing.