praneeth ram wrote: i am getting exception while running it.
Java Exception classes are designed, so as to give lot of useful information.
You expect us to make a wild guess, about the exception you are getting?
Please post the exception stack trace..