Hi Sanjay,
I think your approach is correct ,however due to some mismatch , it is resulting in a dump. Check the Active calls/Events section in the st22 dump. If there is a custom class in the call stack , it is something do with the custom code.
Could you please upload the complete st22 trace?
Regards,
Raghu