Actions
Bug #6000
closednet.sf.saxon.trans.LicenseException: Failed to read license file /usr/lib/saxon-license.lic
Start date:
2023-04-27
Due date:
% Done:
100%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
12.1
Fixed in version:
12.4
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
Given the follow python script:
proc = PySaxonProcessor(license=True)
proc.set_configuration_property("http://saxon.sf.net/feature/licenseFileLocation", "/usr/lib/saxon-license.lic")
xsltproc = proc.new_xslt30_processor()
If the license file is not fould using the @set_configuration property@ it will crash as follows:
net.sf.saxon.trans.LicenseException: Failed to read license file /usr/lib/saxon-license.lic
at com.saxonica.config.Verifier.loadLicense(Verifier.java:130)
at com.saxonica.config.ProfessionalConfiguration.setConfigurationProperty(ProfessionalConfiguration.java:230)
at net.sf.saxon.s9api.Processor.setConfigurationProperty(Processor.java:402)
at net.sf.saxon.option.cpp.SaxonCAPI.applyToConfiguration(SaxonCAPI.java:569)
The problem is the @applyToConfiguration@ method in the class SaxonCAPI does not have graalvm exception handling annotation. We also need to add code in the C++ API to thrown the exception as a @SaxonApiException@
Updated by O'Neil Delpratt 5 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- Fixed in version set to 12.4
This is no longer a problem. Fixed in a release after 12.1.
Please register to edit this issue
Actions