Better JNI error management, devices fetching by type, devices ignore