Such exceptions could occur if an import statement is missing or if you've used the wrong method parameters. I've only checked it in the current trunk but at least there the exec method needs another additional parameter: ClassLoader...So check your parameters for: Set<String>, Map<String, Object>, String, String, ClassLoader...