Page 1 of 1

WebHelp Responsive transform causes java.io.FileNotFoundException

Posted: Thu Jan 03, 2019 1:45 am
by rtimkovi
Note: This problem only occurs in your nightly development build, not in Oxygen 20.1.

Due to a previously reported problem (topic18323.html), I am now using your nightly development build of the DITA OT. With this build, I am getting the following error with the out-of-the-box "DITA Map WebHelp Responsive" transform:

Code: Select all

System ID: /Users/rtimkovi/zdebugindex/ditatest.ditamap
Scenario: DITA Map WebHelp Responsive
Input file: /Users/rtimkovi/zdebugindex/ditatest.ditamap
Document type: DITA Map
Engine name: XSLT
Severity: error
Description: java.io.FileNotFoundException: /Users/rtimkovi/zdebugindex/temp/webhelp-responsive/SATC common libraries/topics/conrefs-text.dita.indexterms (No such file or directory) Cause: java.io.FileNotFoundException: /Users/rtimkovi/zdebugindex/temp/webhelp-responsive/SATC common libraries/topics/conrefs-text.dita.indexterms (No such file or directory)
Start location: 60:0
...which is funny, since there are no index terms anywhere in my document. Using the default DITA OT (Oxygen 20.1 , build 2018122403) the transform runs without error. I've pared my code down to create this example so that you can recreate this and figure out what's going on.

ditatest.ditamap:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>SOP for DITA</title>
<topichead processing-role="resource-only">
<topicmeta>
<navtitle translate="no">Libraries </navtitle>
</topicmeta>
<topicref href="SATC%20common%20libraries/keydefs-numbers.ditamap" format="ditamap"
processing-role="resource-only"/>
<topicref href="SATC%20common%20libraries/keydefs-topics.ditamap" format="ditamap"
processing-role="resource-only"/>
</topichead>
<mapref href="gov.ditamap"/>
</map>
keydefs-numbers.ditamap:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title translate="no">Numbers - key definitions</title>
<topichead>
<topicmeta>
<navtitle>Common</navtitle>
</topicmeta>
<keydef keys="copyright_year">
<topicmeta>
<keywords>
<keyword>2019</keyword>
</keywords>
</topicmeta>
</keydef>
</topichead>
<topichead>
<topicmeta>
<navtitle>Analytics</navtitle>
</topicmeta>
</topichead>
</map>
keydefs-topics.ditamap:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title translate="no">Topics - key definitions</title>
<topichead>
<topicmeta>
<navtitle>Common</navtitle>
</topicmeta>
<keydef keys="conrefs-text" href="../SATC%20common%20libraries/topics/conrefs-text.dita"/>
</topichead>
<topichead>
<topicmeta>
<navtitle>Analytics</navtitle>
</topicmeta>
</topichead>
</map>
conrefs-text.dita:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="conrefs-text">
<title translate="no">Content references for text</title>
<body>
<section>
<title translate="no">Common</title>
<p><ph id="copyright_text">© <ph keyref="copyright_year"/> Amazon Web Services, Inc. or
its affiliates. All rights reserved.</ph></p>
</section>
<section>
<title translate="no">Analytics</title>
<p/>
</section>
</body>
</topic>
gov.ditamap:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd">
<map>
<title>AWS Governance at Scale</title>
<topicref href="aws-governance-at-scale/abstract.dita"/>

</map>
abstract.dita:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="abstract">
<title>Abstract</title>
<body>
<p>Customers need to ...</p>
<p><ph conkeyref="conrefs-text/copyright_text"/></p>
</body>
</topic>
Directory tree:

Code: Select all


...zdebugindex/
ditatest.ditamap
gov.ditamap
aws-governance-at-scale/
abstract.dita
SATC common libraries/
keydefs-numbers,ditamap
keydefs-topics.ditamap
topics/
conrefs-text.dita
Thanks.

Rick

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Posted: Tue Jan 08, 2019 12:25 pm
by alin
Hello,

Thank you for reporting this issue. I managed to reproduce the problem and I have logged it in our issue management system to be analyzed (ticket ID: WH-2115).

Regards,
Alin

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Posted: Fri Jan 11, 2019 2:10 pm
by annyjul
I have the same issue and the same error. I removed "processing-role="resource-only"" for terms topics to fix it, but proper solution would be welcome.

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Posted: Mon Jan 14, 2019 11:58 am
by ionela
Hi,

I have added your comments and your vote for this issue. We'll update the thread when the bugfix becomes available.

Regards,
Ionela