Formerly working PDF export project now failing, may be related to PDF Chemistry?
Posted: Wed May 25, 2022 10:49 pm
Hi, wonderful community:
I've inherited a very large documentation project, in which all of the transformations were created by someone who's now on medical disability and can't be brought back in to troubleshoot the problem. So, I'm clueless and thank you in advance for your help. I know how to create topics and subtopics and links and whatnot, but the magic that turns it into a PDF is, to me, legit magic.
Ever since I started adding topics and subtopics to the project, I've been able to use the original transformation to create a good-looking PDF. However, I went a couple of weeks without transforming to PDF, and now when I run it, it fails with this fatal error:
Transformation failed. C:\Program Files\Oxygen XML Editor 24\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:661: Java returned: 1
So I went to line 661 of the long build.xml file, which I have never opened because I don't understand anything except how to add topics, style text, and create links. Here's the section that contains line 661, which is under the target for pdf-css.chemistry.embedded. .
<target name="pdf-css.chemistry.embedded" if="use.chemistry" unless="use.chemistry.external">
<echo>=============================</echo>
<echo>Oxygen PDF Chemistry</echo>
<echo>Installation directory: ${embedded.chemistry.installation.dir}</echo>
<echo>Processing: ${dita.map.merged.post.processed}</echo>
<echo>Output file: ${outputFile}</echo>
<echo>=============================</echo>
<condition property="final.input.file" value="${dita.map.output.dir}/${outputFile.base}.final.xml" else="${dita.map.merged.post.processed}">
<equals arg1="${storeTypeMemory}" arg2="true"/>
</condition>
<antcall target="copyXHTML" inheritrefs="true" if:set="storeTypeMemory">
<param name="src" value="${dita.map.merged.post.processed}"/>
<param name="dest" value="${final.input.file}"/>
</antcall>
<property name="baseJVMArgLine" value=""/>
<java fork="true" failonerror="true" logerror="true"
classname="com.oxygenxml.chemistry.OxygenPDFChemistry" unless:set="skip.pdf">
<jvmarg line="-Djava.awt.headless=true ${baseJVMArgLine}"/>
Line 661 is this one, with a classname for OxygenPDFChemistry:
* C:\Program Files\Oxygen XML Editor 24\lib\oxygen-pdf-chemistry.jar, created on the day I first installed Oxygen
* .chemistry-cache in the C:/Users/myname folder, last touched yesterday
* C:\Program Files\Oxygen XML Editor 24\oxygenChemistry.bat
* C:\Program Files\Oxygen XML Editor 24\tools\chemistry\build_chemistry.xml
* C:\Users\myname\AppData\Roaming\com.oxygenxml.chemistry (empty folder)
* C:\Users\myname\AppData\Local\Temp\chemistry-temp
* C:\Program Files\Oxygen XML Editor 24\tools\chemistry folder, containing file build_chemistry XML.
When I revert to an older version of the project, the PDF transforms correctly. So, is it possible that something in the new content I've recently created is calling this specific thing, and that's making it hork? Or something else?
I can go back to the version of the project that worked and add in the new content a bit at a time until I can see if a specific file is breaking it. But, if it's something for which there's an easy fix like installing a package or correcting a file path, that would be awesome.
Thanks in advance for any help you can provide. Fingers crossed that this is a newb problem with a really easy fix that I can understand. Pretty sure I can follow the steps to output the log, if that's also helpful.
--Elissa M.
I've inherited a very large documentation project, in which all of the transformations were created by someone who's now on medical disability and can't be brought back in to troubleshoot the problem. So, I'm clueless and thank you in advance for your help. I know how to create topics and subtopics and links and whatnot, but the magic that turns it into a PDF is, to me, legit magic.
Ever since I started adding topics and subtopics to the project, I've been able to use the original transformation to create a good-looking PDF. However, I went a couple of weeks without transforming to PDF, and now when I run it, it fails with this fatal error:
Transformation failed. C:\Program Files\Oxygen XML Editor 24\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:661: Java returned: 1
So I went to line 661 of the long build.xml file, which I have never opened because I don't understand anything except how to add topics, style text, and create links. Here's the section that contains line 661, which is under the target for pdf-css.chemistry.embedded. .
<target name="pdf-css.chemistry.embedded" if="use.chemistry" unless="use.chemistry.external">
<echo>=============================</echo>
<echo>Oxygen PDF Chemistry</echo>
<echo>Installation directory: ${embedded.chemistry.installation.dir}</echo>
<echo>Processing: ${dita.map.merged.post.processed}</echo>
<echo>Output file: ${outputFile}</echo>
<echo>=============================</echo>
<condition property="final.input.file" value="${dita.map.output.dir}/${outputFile.base}.final.xml" else="${dita.map.merged.post.processed}">
<equals arg1="${storeTypeMemory}" arg2="true"/>
</condition>
<antcall target="copyXHTML" inheritrefs="true" if:set="storeTypeMemory">
<param name="src" value="${dita.map.merged.post.processed}"/>
<param name="dest" value="${final.input.file}"/>
</antcall>
<property name="baseJVMArgLine" value=""/>
<java fork="true" failonerror="true" logerror="true"
classname="com.oxygenxml.chemistry.OxygenPDFChemistry" unless:set="skip.pdf">
<jvmarg line="-Djava.awt.headless=true ${baseJVMArgLine}"/>
Line 661 is this one, with a classname for OxygenPDFChemistry:
Ransacking my drive for anything that contains "chemistry," I can find nothing for PDF Chemistry:<java fork="true" failonerror="true" logerror="true"
classname="com.oxygenxml.chemistry.OxygenPDFChemistry" unless:set="skip.pdf">
* C:\Program Files\Oxygen XML Editor 24\lib\oxygen-pdf-chemistry.jar, created on the day I first installed Oxygen
* .chemistry-cache in the C:/Users/myname folder, last touched yesterday
* C:\Program Files\Oxygen XML Editor 24\oxygenChemistry.bat
* C:\Program Files\Oxygen XML Editor 24\tools\chemistry\build_chemistry.xml
* C:\Users\myname\AppData\Roaming\com.oxygenxml.chemistry (empty folder)
* C:\Users\myname\AppData\Local\Temp\chemistry-temp
* C:\Program Files\Oxygen XML Editor 24\tools\chemistry folder, containing file build_chemistry XML.
When I revert to an older version of the project, the PDF transforms correctly. So, is it possible that something in the new content I've recently created is calling this specific thing, and that's making it hork? Or something else?
I can go back to the version of the project that worked and add in the new content a bit at a time until I can see if a specific file is breaking it. But, if it's something for which there's an easy fix like installing a package or correcting a file path, that would be awesome.
Thanks in advance for any help you can provide. Fingers crossed that this is a newb problem with a really easy fix that I can understand. Pretty sure I can follow the steps to output the log, if that's also helpful.
--Elissa M.