If you are getting exceptions, there's not much we can do unless you post an SSCCE demonstrating the problem and the full stack trace associated - what you've posted is very general and there's not...