Medium severityinfrastructure
Power BI Refresh Error:
JniException
What does this error mean?
The Java Native Interface (JNI) call failed in the ADF self-hosted integration runtime. This error occurs when a connector that depends on the JVM (Parquet, ORC, Avro, or JDBC-based sources) cannot start or communicate with the JRE — caused by a 32-bit JRE, wrong JAVA_HOME, or a missing JDBC driver.
Common causes
- 1JNI exception in integration runtime
- 2Integration runtime configuration is incorrect or outdated
- 3Authentication credentials or permissions are insufficient
- 4The feature or setting is not supported for the selected connector or copy mode
How to fix it
- 1Check the JRE version installed on the SHIR host — the ADF integration runtime requires a 64-bit JRE; a 32-bit JRE causes JNI failures even if JAVA_HOME is set correctly.
- 2Upgrade to JRE 8 or JRE 11 (64-bit) on the SHIR host if running an older version — some native JDBC libraries are not compatible with older Java versions.
- 3Verify that the JDBC driver files (.jar) for the connector are placed in the correct driver path on the SHIR host and match the JRE version.
- 4If using Parquet, ORC, or Avro formats, set the _JAVA_OPTIONS environment variable to '-Xmx256m' to allocate sufficient heap for the JVM codec — restart the IR service after changing this variable.
- 5Check the IR host machine's event log and the Microsoft Integration Runtime log files for the specific Java exception message that caused the JNI failure.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/azure/data-factory/connector-troubleshoot-guide