{java:net.sf.saxon.Version}getProductVersion() error

rdelong
Posts: 68

{java:net.sf.saxon.Version}getProductVersion() error

Wed Jul 04, 2018 12:33 am

I'm receiving the following error when I attempt to run webhelp-responsive using DITA-OT 3.1 on our server (and yes, I have a valid license.)

Can someone tell me how to resolve this Fatal error?

Code: Select all

whr-toc-xml:
     [xslt] Processing C:\Users\rdelong\AppData\Local\Temp\4\temp20180703152613693\RetroToolsProducttasksTasksandwhattheycando.ditamap to C:\InfoShare\Data\PublishingService\Data\DataExports\GUID-97219B58-A60A-48AF-83B5-FCAFAE76E084.54368.20180703093026432\1\en-US\out\toc.xml
     [xslt] Loading stylesheet C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDita.xsl
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.highlight\xhtmlHighlight.xsl:15:35: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\org.dita.html5\xsl\dita2html5Impl.xsl:33:116: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDitaImpl.xsl:17:70: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDita.xsl:8:39: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDita.xsl:8:39: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDita.xsl:8:39: Fatal Error! Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE
     [xslt] Failed to process C:\Users\rdelong\AppData\Local\Temp\4\temp20180703152613693\RetroToolsProducttasksTasksandwhattheycando.ditamap
Error: Fatal error during transformation using C:\InfoShare\App\Utilities\DITA-OT\OracleFS31\plugins\com.oxygenxml.webhelp.responsive\xsl\navLinks\tocDita.xsl: Cannot find a 0-argument function named {java:net.sf.saxon.Version}getProductVersion(). Reflexive calls to Java methods are not available under Saxon-HE; SystemID: file:/C:/InfoShare/App/Utilities/DITA-OT/OracleFS31/plugins/com.oxygenxml.webhelp.responsive/xsl/navLinks/tocDita.xsl; Line#: 8; Column#: 39
Radu
Posts: 5867

Re: {java:net.sf.saxon.Version}getProductVersion() error

Wed Jul 04, 2018 7:26 am

Dear Rick,

Our WebHelp DITA OT plugin does not officially support DITA OT 3.1:

https://www.oxygenxml.com/doc/versions/20.1/ug-webhelp-responsive/topics/integrating-webhelp-plugin-with-dita-ot.html

The major impediment is that DITA OT 3.1 comes with an unlicensed version of Saxon 9.8 which no longer supports Java extensions and some of our XSLT stylesheets still use them.
Our WebHelp responsive can be made to work with DITA OT 3.1 but the DITA OT 3.1 needs to be slightly changed. I created an add-on for Oxygen which installs a full DITA OT 3.1 + WebHelp Responsive:

https://github.com/oxygenxml/dita-ot-3x-plugin

So if you download and use this DITA-OT 3.x + WebHelp plugins bundle I put together, it should work. It's bundled WebHelp responsive plugins are the equivalent of the Oxygen 20.1 bundled WebHelp responsive plugins.

Or:

A minimum which you could try on your side to get your DITA OT 3.1 + WebHelp Responsive working is:

1) Remove the library "DITA-OT\lib\Saxon-HE-9.8.0-12.jar" and replace it with the two "saxon-9.1.0.8-dom.jar" and "saxon-9.1.0.8.jar" libraries located in:

https://github.com/oxygenxml/dita-ot-3x-plugin/tree/master/dita-ot-3.x/lib

2) Get the entire plugin folder:

https://github.com/oxygenxml/dita-ot-3x-plugin/tree/master/dita-ot-3.x/plugins/com.oxygenxml.dost.patches

and integrate it in your DITA OT 3.x "plugins" folder.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
rdelong
Posts: 68

Re: {java:net.sf.saxon.Version}getProductVersion() error

Thu Jul 05, 2018 7:20 pm

This is great information and excellent support for this plugin. Thank you!

Will Syncro-Soft be providing a stand-alone version of the WebHelp Responsive plugin that supports OT 3.1 without these patches?
Radu
Posts: 5867

Re: {java:net.sf.saxon.Version}getProductVersion() error

Fri Jul 06, 2018 7:38 am

Hi Rick,

We probably will but I cannot give you a timeline, it depends on when we can fix on our side the problems generated by DITA OT 3.1 bundling with Saxon 9.8.
Do you have any particular interest in DITA OT 3.1? Any feature which is implemented in 3.1 but not in 2.x?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
rdelong
Posts: 68

Re: {java:net.sf.saxon.Version}getProductVersion() error

Fri Jul 06, 2018 5:33 pm

We've been using OT 1.8.5 for several years now and the WebHelp responsive plugin was an opportunity to finally upgrade the OT. We have an external server that runs our CCMS so setting up the OT and its plugins can be a challenge and takes some time to work properly. I wanted to do this once with the latest version of the OT.

I appreciate you creating the necessary work around to get the plugin to work with 3.1, but I've gone back to 2.5.x. I'm sure that someone else can take advantage of this update.

Thanks
Radu
Posts: 5867

Re: {java:net.sf.saxon.Version}getProductVersion() error

Mon Jul 09, 2018 7:47 am

Hi Rick,

Right, my recommendation for you is indeed for now to stick to using DITA OT 2.5.4.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 2 guests