In case if system locale is using , (comma) for decimal separator JVM would not be able to correctly parse measurements received from JNI call with CSV string. It can be fixed by setting en-us locale at beginning of energy_stat_csv_string and restoring it to the previous one before returning from a call, but maybe there is a better way to fix that issue.