The stack trace tells you what methods were called to produce that exception. You didn't post it here, or any part of it, so have a look at it and
you should be able to see for yourself.
If you can't figure out what the stack trace is telling you, then post it here (or at least part of it, I expect it's very long) and people will explain it to you.