So, does:
not return anything? That seems very odd. Can you post your code?
Am having a log only(from different location). So unable to print the stack trace.
Not sure what you mean by this, but I'm struggling to think of a reason why you would be prevented from printing the stack trace. Can you explain more?