The error should contain a stack trace of where it happened. Like where you where in the code when the error happened. This will point in the forward somewhere and will help you narrow down the problem.