Please don't duplicate posts. Your other post was moved to a more appropriate category.

http://www.javaprogrammingforums.com/jdbc-databases/17102-mysql-stacktrace.html

I am locking this thread.