[quote user="Jagadish Patil"]we are using try {} catch {} blocks. In that catch block only we got this error[/quote]
But what was happening when your code threw that error? Only you can see your code: we have to guess. Using guesswork to analyse software usually doesn't work very well.