NullPointerException Failures in Privacera Trino Plugin¶
This section explains how to resolve NullPointerException failures when initiating the Privacera Trino Plugin during the Trino Server startup. This issue typically occurs with Trino Version 459 and above.
Error¶
You may see the following error in your Trino Server logs:
| Bash | |
|---|---|
Root Cause¶
From Trino version 459 onwards, the Java runtime was upgraded to JDK 23. As part of this update, a specific security flag is required in the default JVM configuration. If you use a custom JVM configuration, it overrides Trino's defaults. If the flag below is missing from your custom config, the Privacera plugin will fail to initialize:
Resolution Steps¶
- Identify your JVM Config source: Review your Trino deployment files to find where JVM configurations are defined. The JVM configs can be passed throughvarious files such as
values.yaml,configmap-coordinator.yml, etc. -
Update the Configuration: Add the following flag to the existing list of JVM arguments:
-
Redeploy: Apply the changes and redeploy the Trino Server.
Verification¶
After redeploying, follow these steps to confirm the flag has been applied successfully.
- Get the name of the Trino coordinator pod:
Bash -
Access the Trino coordinator Pod shell:
Bash -
Run below command to check the above-mentioned flag is present in the JVM config:
Bash
The Privacera Trino Plugin should now initialize successfully, and the NullPointerException should no longer occur for Trino version 459 and later.
- Prev topic: Troubleshooting