Cannot read field "result" because "fi" is null

Gertone
Posts: 17
Joined: Mon Sep 17, 2007 10:02 am
Location: Flanders

Cannot read field "result" because "fi" is null

Post by Gertone » Sat Mar 27, 2021 1:48 pm

All,

I get a nullpointer exception generating a customized responsive webhelp from DITA (I do get the same exception when I just run the vanilla HTML 5 plugin)
So the issue is in my DITA, but I am not sure how to analyse this.
It happens when copying the images, I guess. There is plenty of options. Just too much data (it is a 800 pages manual with many high resolution images), not enough memory, not enough disk space, maybe the images are locked (windows 10 machine)? Plenty of stuff to look into.
It could help however if someone had suffered from the same and could hint towards what exactly the nullpointer exception means

Thanks a lot,
Geert

[code]copy-image:
BUILD FAILED
D:\XML\IDE\Oxygen XML Editor 23\frameworks\dita\DITA-OT3.x\plugins\org.dita.base\build.xml:29: The following error occurred while executing this line:
D:\XML\IDE\Oxygen XML Editor 23\frameworks\dita\DITA-OT3.x\plugins\org.dita.base\build_preprocess.xml:364: java.lang.NullPointerException: Cannot read field "result" because "fi" is null
at org.dita.dost.ant.types.JobMapper.mapFileName(JobMapper.java:79)
at org.apache.tools.ant.util.CompositeMapper.lambda$mapFileName$0(CompositeMapper.java:32)
[/code]

Gertone
Posts: 17
Joined: Mon Sep 17, 2007 10:02 am
Location: Flanders

Re: Cannot read field "result" because "fi" is null

Post by Gertone » Sat Mar 27, 2021 2:16 pm

Some additional info
- generating a PDF (using FO and PDF2) causes no problems at all
- I did discover that all images were "blocked" by windows1à because they came from a different computer. Unblocking all the images (thank you PowerShell :) did not resolve the issue

Radu
Posts: 7529
Joined: Fri Jul 09, 2004 5:18 pm

Re: Cannot read field "result" because "fi" is null

Post by Radu » Mon Mar 29, 2021 4:14 pm

Hi,

I'm not sure what the problem is. Are you using Oxygen 23.0 or 23.1?
Can you try to reduce your DITA project to a smaller sample with which the problem can be reproduced?
Or at least try to copy the project along with the images to some folder location where the publishing engine has full read-write access and try to see if publishing works from there.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Gertone
Posts: 17
Joined: Mon Sep 17, 2007 10:02 am
Location: Flanders

Re: Cannot read field "result" because "fi" is null

Post by Gertone » Mon Mar 29, 2021 7:23 pm

Thanks for looking into this Radu

I took the opportunity to upgrade to 23.1, the issue was discovered in 23.0, it also happens in 23.1.

Then interestingly, I tried with Oxygen 22.0 and I don't have the issue.
(DITA Open Toolkit bundled with Oxygen 22.0, build 2020030411)

So whatever happens, it started happening with the OT framework bundled in Oxygen 23.0

Not sure that helps

Next step, I will try to isolate the issue in a smaller sample

Post Reply