Failed to register plugin: java. Lang.NullPointerException 'java. lang.NullPointerException: null

Hi Morpheus support team,

I have a trouble with the custom plugin where I can upload successfully in online environment but not in my production (offline env).

My Jar file doesn’t need to point to any internet URL. When I upload to Morpheus UI, it does not display in UI and the log shows “Failed to load plugin report-1.1.176.jar, null*java. lang. NullPointerException: null”. However, I can see the Jar file located in /var/log/morpheus/morpheus-ui/plugins

Morpheus runs version 7.0.2 and “com.morpheusdata:morpheus-plugin-api:0.12.5” with 2 App nodes, 3 DB nodes, and 1 NFS Server. The folder permission is show as image.

Hope to see your help!





I believe for Morpheus version 7.0.2, the compatible Plugin API version is 1.1.2.
https://docs.morpheusdata.com/en/7.0.2/#morphver-releasetype-release-notes

I changed to Plugin API version 1.1.2 but still got the same error.

I wonder why the first API version in my Gradle is 0.12.x but it can successfully run on Morpheus 7.0.2

From your Morpheus app node, grab the output of the following and share please,

cat /etc/fstab

Curious you seem to have another permission error around K8s workspaces in the same NFS shared directory. Is it possible that the UID/GID of morpheus-local and morpheus-app are different across your front end nodes?

this is /etc/fstab in App Nodes:

i try to create a new Morpheus Appliance, the logs seem good but the problem comes only when I mount NFS share to App Nodes and upload plugin, it shows:

hello @cbunge hunge, before mounting NFS, I checked all the UID/GID of the 2 nodes are the same.