# Problem with running fatoora script on ubuntu

**URL:** <https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680>\
**Category:** General\
**Created:** [October 16, 2024, 7:39am UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680 "2024-10-16T07:39:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![osamahalnihmi](https://avatars.discourse-cdn.com/v4/letter/o/ccd318/32.png) [@osamahalnihmi](https://zatca1.discourse.group/u/osamahalnihmi)\
**Post date:** [October 16, 2024, 7:39am UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/1 "2024-10-16T07:39:43Z")

</div>

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$

---

<div class="post-metadata">

**Author:** ![hazemsabbah](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@hazemsabbah](https://zatca1.discourse.group/u/hazemsabbah)\
**Post date:** [December 15, 2024, 9:42am UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/2 "2024-12-15T09:42:49Z")

</div>

Hellow,

did you fix this ??

help me if you can please.

Thanks

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [December 15, 2024, 10:37am UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/3 "2024-12-15T10:37:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hazemsabbah](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@hazemsabbah](https://zatca1.discourse.group/u/hazemsabbah)\
**Post date:** [December 16, 2024, 3:29pm UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/4 "2024-12-16T15:29:47Z")

</div>

![ztca1](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/1X/752e47a6fbef90ea986b990fad46cc16a30670c1.png)

---

<div class="post-metadata">

**Author:** ![hazemsabbah](https://avatars.discourse-cdn.com/v4/letter/h/47e85d/32.png) [@hazemsabbah](https://zatca1.discourse.group/u/hazemsabbah)\
**Post date:** [December 16, 2024, 3:30pm UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/5 "2024-12-16T15:30:00Z")

</div>

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

 ![ztca2](https://europe1.discourse-cdn.com/flex013/uploads/zatca1/original/1X/04e9a95ad045066903c77124b5354ce0de6a541d.png)

can you help me please ?

---

<div class="post-metadata">

**Author:** ![idaoud](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@idaoud](https://zatca1.discourse.group/u/idaoud)\
**Post date:** [December 17, 2024, 5:54am UTC](https://zatca1.discourse.group/t/problem-with-running-fatoora-script-on-ubuntu/3680/6 "2024-12-17T05:54:02Z")

</div>

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](mailto:sp_support@zatca.gov.sa)

Thanks,  
Ibrahem Daoud.
