Project

Profile

Help

Bug #6649

closed

Exception thrown from expired license file should give better information

Added by O'Neil Delpratt 22 days ago. Updated 15 days ago.

Status:
Resolved
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2025-01-15
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
All
SaxonC Platforms:
All
SaxonC Architecture:

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.

Actions #1

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.

Actions #2

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.

Actions #3

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

Also available in: Atom PDF