Getting exception while writing errors to work centre through BSSV


I have requirement of writing error messages to work centre through NER. But the problem is, when i am calling that NER through my custom report, it works fine. But when I called same NER through BSSV, it gives me an error.(something like IllegalArgumentException). I don't understand why it is giving such error.
can someone help me out.