it looks like that general area of code is trying to print an error listing. most likely culprit is an invalid GL Account number. I'm not sure why it is throwing an error but maybe that will help you. if you can find the invalid account number, it should quit trying to print the error log.