If you have not already tried it: Try to debug your app at java level by in studio Pro ‘Deploy for Eclipse’, start your app from Eclipse and set a breakpoint in java where you get this exception.
Any idea to what xpath your dynamic xpath evaluated?
And last tip: since this is in communitycommons, maybe Mendix can shed light on this. support.mendix.com