Glad you fixed it yourself, but in the future
you should not ignore any exceptions you got, but invesitgate them and in case you stucks, share them with us. Post them with the complete stacktrace. Exceptions tell something about the cause of the problem and thus, when you understand them, a solution should be obvious enough. You as developer should really know that better.