Whenever my code enters the generate method it throws an exception . Please hep why am getting this exception .Please help Please