The error messages in the user interface are oftentimes ambiguous. The best way to find the core problem is to do a search for the errors in the internal index. This will reveal the complete stack trace (including the exact line that caused the error).
Below is an example:
(BTW: I'm posting this despite the fact the person who asked the question found the answer in case others are trying to debug similar issues)
... View more