More updated thread with better debugging information and link to JIRA issue:
https://jira.xwiki.org/browse/XWIKI-18387