added clearer error reporting in case of JSON marshaling error causing MethodNotFoundException