I had the same problem after installing a root access app. The phone was in warranty and I went to Samsung. After a few hours they changed my Motherboard and battery without charging me.
Nowafter more than an year I have charging issues only from the fixed outlet and issues with very slow memory...