Sometimes the NPCclient, which handles NPC actions, is down or is having problems. This is what causes the "impervious to attack" messages. NPCclient may crash on its own sometimes or is taken down by developers when some work needs to be done. Whenever this occurs, you'll have to wait until it is returned.