Metadata Import - ERROR - java.lang.NullPointerException

Hi @kfeina , thanks for sharing the logs and glad to hear of your interest in the hypertension control package.

You may want to try restarting the DHIS2 instance itself, not just clearing the application cache, and then trying again.

It seems the error arises with options and option sets. See this section of logs:

* INFO 2022-10-07T06:59:24,147 (admin) Creating 26 object(s) of type Option (NotificationLoggerUtil.java [taskScheduler-1])
* ERROR 2022-10-07T06:59:24,255 java.lang.NullPointerException
at org.hisp.dhis.option.OptionSet.addOption(OptionSet.java:104)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

To help identify the problem further could you please share:

  • Is this a blank DHIS2 instance you are importing into, or an instance with existing data and metadata?
  • Which version of DHIS2 are you using, and can you confirm the package metadata file is the same version?

If this is not a blank instance then the import may be attempting to change an existing option set.
Please see this section of the installation guide for tips on how to deal with metadata conflicts.

Tagging @YuryR and @stratosilva if they have additional thoughts, or if this could be an import bug.

1 Like