hi saha ,
try to put this code in the exception block
{
StackTraceElement element[] = e.getStackTrace();
StringBuffer buffer = new StringBuffer();
for(int i=0;i<element.length;i++)
{
buffer.append(element[i]);
}
wdComponentAPI.getMessageManager().reportException(buffer.toString(),true);
}
and post the exception that you are getting ..
Regards
Govardan Raj S