Stack trace on exception?

Hi,

Today we received this error in one of our crawls

An error occurred while processing the script Clickspace--Write Combined Product to XML Feed
The error message was The application script threw an exception org.jdom.IllegalDataException The data "null" is not legal for a JDOM attribute A null is not a legal XML value. BSF info null at line 0 column columnNo

Is it possible to have a stack trace generated whenever an exception occurs? That way we could track down where in the code the error is occurring. "BSF info null at line 0 column columnNo" isn't very useful to help diagnosing the problem.

Thanks,

Brendan