Modules and System Connectors
XSLT Converter
Saxon 12 is used with INUBIT 9.0.
Java calls from XSLT
The application itself runs on JDK 21. When changing the major version, as in this case from JDK 17 to 21, direct Java calls from XSLT scripts may be affected by discontinuations and changes in the JDK.
|
JDK 21
Failing Java calls in XSLT scripts are due to the JDK major version update. To fix these errors, you need to find the relevant sections in the new JDK and adjust the code calls accordingly. |
Example Thread.sleep
Call: java:thread.sleep(1000)
Problem:
Calling this function directly from an XSLT script fails because the method to be called cannot be identified.
Two matching sleep methods, each with one parameter, are found.
Cause:
With JDK 21, another method, Thread.sleep(Duration), was added to the JDK.
Solution:
The passed parameter must be given an appropriate parameter type:
java:thread.sleep(number(1000))