improve error reporting for jni xml2succinct call.