fatoora -help
********** Welcome to ZATCA E-Invoice Java SDK 4.0.0 *********************
This SDK uses Java to call the SDK (jar) passing it an invoice XML file.
It can take a Standard or Simplified XML, Credit Note, or Debit Note.
It returns if the validation is successful or shows errors where the XML validation fails.
It checks for syntax and content as well.
You can use the command (fatoora -help) for more information.
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:296)
at java.base/java.nio.file.Path.of(Path.java:148)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at com.zatca.config.Config.readResourcesPaths(Config.java:32)
at com.zatca.config.ResourcesPaths.getInstance(ResourcesPaths.java:26)
at com.zatca.sdk.service.ArgumentHandlerService.(ArgumentHandlerService.java:27)
at com.zatca.sdk.MainApp.execute(MainApp.java:53)
at com.zatca.sdk.MainApp.main(MainApp.java:119)
2025-01-20 13:19:02,212 [ERROR] ArgumentHandlerService - an error to display thte usage from the file
Thanks for reaching out, Welcome to our community.
To provide comprehensive support as usual, can I kindly ask you to mention the exact steps you followed, additionally what are the JDK version that you are using?
thank you for response , I just install JDK and run zatca-einvoice installation file then check if it is work or not using this command “fatoora -help”
From the provided error it appears that you are missing some configuration in your environment variables as the beta version is working fine, kindly see the attached Beta_version.png
fatoora -help
********** Welcome to ZATCA E-Invoice Java SDK 3.3.9 *********************
This SDK uses Java to call the SDK (jar) passing it an invoice XML file.
It can take a Standard or Simplified XML, Credit Note, or Debit Note.
It returns if the validation is successful or shows errors where the XML validation fails.
It checks for syntax and content as well.
You can use the command (fatoora -help) for more information.
java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:296)
at java.base/java.nio.file.Path.of(Path.java:148)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at com.zatca.config.Config.readResourcesPaths(Config.java:28)
at com.zatca.config.ResourcesPaths.getInstance(ResourcesPaths.java:27)
at com.zatca.sdk.service.ArgumentHandlerService.(ArgumentHandlerService.java:25)
at com.zatca.sdk.MainApp.execute(MainApp.java:52)
at com.zatca.sdk.MainApp.main(MainApp.java:121)
2025-01-23 07:01:55,175 [ERROR] ArgumentHandlerService - an error to display thte usage from the file
got same issue when i change the version of production
I just wanted to let you know that I figured the cause of this issue.
It turns out you need to install ZATCA SDK on your Linux development or production machine. The validation functions rely on SDK_CONFIG variable from your bash profile.
To get the ZATCA SDK installed, just follow the instructions in the “Install/Update for Linux” section of the readme file. You can find this file in the readme folder under the ZATCA SDK folder.