This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Your code seems to be written in a way to be deliberately unhelpful! Exception stack traces contain a wealth of information about what is going wrong. Print the stack trace - you should get an idea what could be happening.