Get error when using metadata jar in fat jar

I created fat jar with groupdocs-metadata-24.12.jar to add keywords to docx file. Got the error message :

at com.groupdocs.metadata.core.MetadataAssemblyConstants.getInstance(Unknown Source)
at com.groupdocs.metadata.licensing.License.setLicense(Unknown Source)

Caused by: java.lang.NullPointerException
at com.groupdocs.metadata.core.MetadataAssemblyConstants.bph(Unknown Source)
at com.groupdocs.metadata.core.MetadataAssemblyConstants.(Unknown Source)
at com.groupdocs.metadata.core.MetadataAssemblyConstants.(Unknown Source)
at com.groupdocs.metadata.core.MetadataAssemblyConstants$a.(Unknown Source)

How to fix the problem? Thanks.

1 Like

@dngl250326

To better understand the issue, could you share more details? Specifically, it would help if you could provide the part of your code where you set the license and modify the metadata, details about your project setup (how you’re packaging and running the Fat JAR), the Java version you’re using, and if possible, a sample DOCX file that reproduces the issue. This will help us investigate and provide a solution.