Problem with running fatoora script on ubuntu

I’m using ubuntu 22 and trying to run fatoora script but i get this issue even tho i have changed java to 11
drhex@drhex:~/Desktop/ZATCA/zatca-einvoicing-sdk-238-R3.3.5/Apps$ ./fatoora -help
********** Welcome to ZATCA E-Invoice Java SDK 3.3.5 *********************
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/sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:75)
at java.base/sun.nio.fs.UnixPath.(UnixPath.java:69)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279)
at java.base/java.nio.file.Path.of(Path.java:147)
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)
2024-10-15 04:40:47,413 [ERROR] ArgumentHandlerService - an error to display thte usage from the file
drhex@drhex:~/Desktop/ZATCA/zatca-einvoicing-sdk-238-R3.3.5/Apps$

Hellow,

did you fix this ??

help me if you can please.

Thanks

Dear @hazemsabbah

Thanks for reaching out, Welcome to our community.

Sorry, To provide comprehensive support as usual, Can I kindly ask you to elaborate more, mentioning your full concerns with more details?

Thanks,
Ibrahem Daoud.

Dear @idaoud

thanks for your reply.

i have ubuntu server,
my case is when i call fatoora from terminal its working fine,
but when i call it from cron job it give me the NullPointerException.

i attach both cases, with terminal and with cron job

can you help me please ?

Dear @hazemsabbah

Thanks for reaching out,

Can I kindly ask you to share your full concerns via below mail, mentioning the ubuntu version and all the steps that you followed?

SP mail: sp_support@zatca.gov.sa

Thanks,
Ibrahem Daoud.