Page 1 of 1

Build success on command line, fails in Oxygen 18.1

Posted: Mon Oct 07, 2019 11:19 pm
by maglid
Using DITA OT 3.2.1, running HTML-based output (Suitehelp). This command line runs successfully:

bin\dita -f suitehelp -i "C:\path\to\mymap.ditamap" -v

But when I try to run the same OT, transtype and ditamap in Oxygen v.18.1, the build fails with the errors below near the end of the build.

I created the transformation scenario by clicking New in the dialog, DITA OT Transformation, then HTML5, and then I set it up with my OT and transtype.

When I run the same setup in Oxygen 21.1, it works fine.

Thanks,
Mark

dita.map.suitehelp.index:
file:/C:/dita-ot-3.2.1/plugins/com.suite-sol.suitehelp/build_dita2suitehelp.xml:362:110: [DOTA014W][WARN] Attribute @if is deprecated. Use attribute @if:set instead.
[pipeline] java.lang.ClassNotFoundException: org.dita.dost.writer.EclipseIndexWriter
[pipeline] at java.net.URLClassLoader.findClass(Unknown Source)
[pipeline] at java.lang.ClassLoader.loadClass(Unknown Source)
[pipeline] at java.lang.ClassLoader.loadClass(Unknown Source)
[pipeline] at java.lang.Class.forName0(Native Method)
[pipeline] at java.lang.Class.forName(Unknown Source)
[pipeline] at org.dita.dost.index.IndexTermCollection.outputTerms(IndexTermCollection.java:165)
[pipeline] at org.dita.dost.module.IndexTermExtractModule.execute(IndexTermExtractModule.java:77)
[pipeline] at org.dita.dost.ant.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:169)
[pipeline] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[pipeline] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[pipeline] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[pipeline] at java.lang.reflect.Method.invoke(Unknown Source)
[pipeline] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[pipeline] at org.apache.tools.ant.Task.perform(Task.java:350)
[pipeline] at org.apache.tools.ant.Target.execute(Target.java:448)
[pipeline] at org.apache.tools.ant.Target.performTasks(Target.java:469)
[pipeline] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
... (deleted part of java unwind)

BUILD FAILED
C:\dita-ot-3.2.1\build.xml:46: The following error occurred while executing this line:
C:\dita-ot-3.2.1\plugins\com.suite-sol.suitehelp\build_dita2suitehelp.xml:362: java.lang.NullPointerException
at org.dita.dost.index.IndexTermCollection.outputTerms(IndexTermCollection.java:196)
at org.dita.dost.module.IndexTermExtractModule.execute(IndexTermExtractModule.java:77)
at org.dita.dost.ant.ExtensibleAntInvoker.execute(ExtensibleAntInvoker.java:169)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:448)
... (deleted part)

Re: Build success on command line, fails in Oxygen 18.1

Posted: Tue Oct 08, 2019 8:09 am
by Radu
Hi Mark,

Oxygen 21.1 has more advanced mechanisms for detecting the libraries used for publishing.
You probably need to edit the transformation scenario and in the "Advanced" tab click the "Libraries" button, then use the "Add" button to browse and add a reference to the library:

DITA-OT3.2.1\plugins\org.dita.eclipsehelp\lib\eclipsehelp.jar

Regards,
Radu

Re: Build success on command line, fails in Oxygen 18.1

Posted: Wed Oct 09, 2019 10:14 pm
by maglid
That worked Radu. Thanks again!!