Please note we have a code button; please use it. Since you are new, I have edited your post and you can see how much better it looks. Please avoid long lines in "code"; they are difficult to read. On this JDBC forum, you may have to tick the "disable smilies" box to avoid getting dbc:driver in the middle of your code.
I am afraid we need more details before we can help you. Particularly: what is the exact message with the Exception, and show us the line it refers to. We can't run your code, so we don't know what is happening.