Okay. A few things:

1) Wrap your code in [code] blocks please. It's impossible to read your code accurately.
2) Can you possibly point out a line number where your code fails? In your Exception window, there's the option to show more details and in there it provides a stack trace.