Bug #6649
closed

Exception thrown from expired license file should give better information
100%
Description
Reported here: https://saxonica.plan.io/boards/4/topics/9857
The exception thrown from expired license file is not clear on the specific problem.
See error message from exception: SaxonAPIException: Processor is not licensed for schema processing!
It would be good if we knew if the license file isn't being found/read, or it isn't valid with this maintenance release.
Updated by O'Neil Delpratt 16 days ago
The underling issue here is that we are not catching exception on the method setConfigurationProperty
("http://saxon.sf.net/feature/licenseFileLocation", "/path/saxon-license.lic")`. This method is on the SaxonProcessor class.
Updated by O'Neil Delpratt 16 days ago
Another observation is we create a map of all configuration properties then call applyConfigurationProperties()
when we instantiate a XPath, XSLT, XQuery or Schema processor. This is incorrect because if we are setting the license file location we should now if it fails at that point and no later.
Updated by O'Neil Delpratt 15 days ago
- Status changed from New to Resolved
- Priority changed from Low to Normal
- % Done changed from 0 to 100
- Fix Committed on Branch 12, trunk added
- SaxonC Languages All added
Bug fixed and committed to the repository.
Please register to edit this issue