I never seen that error before... Try this: Press Windows logo key and R, then type %AppData%, copy and paste your .minecraft to a location that you will remember, then delete the .minecraft in %AppData%. After you've done that start up minecraft and click play this will create another .minecraft folder. Try to add resource packs now. If this doesn't work I don't know what else to say...