prachi vora wrote:I am not able to get this working and am receiving some exceptions.
Hi prachi, please be more specific at it.
"The more information you provide, the easier it is for people to answer your questions. Consider these examples:
[not helpful] My program throws an error.
[better] My program throws a NullPointerException on line 13. Below is the code and the stack trace.
The better one provides the reader with everything he/she needs to know to answer your question."
TellTheDetails (<--link, please find this page for more details)
[edit] It seems you added them after edited your post