DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post here questions and problems related to editing and publishing DITA content.
kminke
Posts: 2
Joined: Thu Apr 07, 2022 4:40 pm

DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post by kminke »

Whenever I try to render a pdf using the DITA-OT in oXygen XML Editor I get the following error

Code: Select all

{DITA-OT-Directory}\plugins\org.dita.pdf2\build.xml:264 java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI
The line in the build.xml file is under the transform.topic2fo.index target and is

Code: Select all

<index-preprocess input="${inputFile.url}" output="${dita.temp.dir}/stage1.xml" indexConfig="${index.config.file}" locale="${document.locale}" catalogs="${xml.catalog.files}"/>
All of the file paths created exist other than the output file itself, because the line doesn't execute.

I am mostly using XEP but I also have tried using Apache FOP as the FO processer, resulting in the same error.

I am not sure if this error is a Oxygen XML Editor java error or what exactly it means.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post by Radu »

Hi,

iI you edit your transformation scenario, in the "Advanced" tab click the "Libraries" button and use the "Add" button to add a reference to a JAR library which should be located in ${oxygenHome}/lib/oxygen-basic-utilities.jar.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
kminke
Posts: 2
Joined: Thu Apr 07, 2022 4:40 pm

Re: DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post by kminke »

Oh thank you so much that fixed it perfectly for me.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post by Radu »

Hi,

We'll have a fix for this problem also on our side in an Oxygen 24.1 minor bug fix release, I'll update this thread when the minor release becomes available.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: DITA-OT rendering causing java.lang.NoClassDefFoundError: ro/sync/basic/io/FilePathToURI Error

Post by Radu »

Hi,
As an update, our latest Oxygen 24.1 minor bug fix release which is available for download should have a fix for this problem:
https://www.oxygenxml.com/build_history.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply