Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post here questions and problems related to editing and publishing DITA content.
mjlorenzi
Posts: 12
Joined: Thu Jul 11, 2019 12:29 am

Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by mjlorenzi »

I am trying to publish a ditamap to PDF using the DITA Map PDF - based on HTML5 & CSS.
I tried with another ditamap and it was successful, but with the one I am trying now I get the following fatal error:

Description:
Transformation failed. ...AppData\Local\Oxygen XML Author 21\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:611: Java returned: 1
Here is the message from line 611:

Code: Select all

<java fork="true" failonerror="true" logerror="true" classname="com.oxygenxml.chemistry.OxygenPDFChemistry" unless:set="skip.pdf">
There is also an error message from line 533:

Code: Select all

	 <antcall target="pdf-css.chemistry.embedded"/>
I am not sure what the issues is here. Does it have to do with my Oxygen PDF Chemistry?
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by Costin »

Hello,

Please send us the full transformation log on our official support email address (support@oxygenxml.com).
Also, make sure that you run the scenario on a DITA Map, not on a CSS / XML file.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
mjlorenzi
Posts: 12
Joined: Thu Jul 11, 2019 12:29 am

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by mjlorenzi »

Hi there,
I will send you whatever you need. Is the transformation log saved out as a file, or is it just found in the build console? If there is a log file, where do I find this?
Thanks.
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by Costin »

No, it's the console log.
If you run the transformation scenario from inside one of the oXygen GUI products (Editor/Author), you obtain the transformation error log also in oXygen, in a dedicated view at the bottom.
Otherwise, if you run the transformation from command line, you should have the log in the console.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
april_m
Posts: 11
Joined: Mon Oct 21, 2019 10:55 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by april_m »

Hello, I am just replying to this thread as I am having a similar issue to the OP. I wonder if it is a problem with DITA-OT following the update to Oxygen 22.0? It is only occurring with one map, the rest of my maps (and my coworker's maps) are rendering fine.
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by julien_lacour »

Hello,

The original problem here was related to the usage of <flowRoot> elements inside SVG files (created with Inkscape).
If you have the same issue a solution consists in modifying the svg declared version in the file:

Code: Select all

<svg version="1.2"
	...
The default version is "1.1".

If you have another issue please send us the complete console output (Options > Preferences > DITA > Logging / set Show console output to Always) at support@oxygenxml.com.

Regards,
Julien
april_m
Posts: 11
Joined: Mon Oct 21, 2019 10:55 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by april_m »

Thank you for the reply.

I'm not sure what I changed, but the build was successful today.

I will email support if the error occurs again.
Wladimir
Posts: 1
Joined: Wed Nov 22, 2017 5:42 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by Wladimir »

Hello,
I have the same problem using "DITA Map PDF - based on HTML5 & CSS - Copy" scenario. Please, could you explain me how I can fix it because I didn't understand the solution from the conversation above...

Code: Select all

Scenario: DITA Map PDF - based on HTML5 & CSS - Copy
Severity: fatal
Description: Transformation failed. C:\Users\wladimir.gorban\AppData\Local\Programs\Oxygen XML Editor 23\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:611: Java returned: 1
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

Re: Fatal error returned on DITA Map PDF - based on HTML5 & CSS

Post by chrispitude »

Hi Wladimir,

The "Java returned: 1" error means that the transformation failed, but it doesn't tell you anything about why the transformation failed. To figure that out, you'll need to look at the transformation log to see what went wrong.

After the transformation runs, you should see a logging pane (possibly minimized) that is named something like this:
DITA-OT (DITA Map PDF - based on HTML5 & CSS) - Copy
At the bottom of this log, you will see the "Java returned: 1" Now you can scroll upward and see where things start to go wrong.
Post Reply