Is it common to be called whiney and immature

I got called whiney and immature with a need to grow up and can't get it out of my head it really annoyed. Is it common for a person who has known you for years to say that to you ? Have you been called something similar?