Project

Profile

Help

SAxonC 12.5.0 does not recognize license file

Added by Paul Greve 6 days ago

Hi,

We use SaxonC to validate xml instance documents. In upgrading from SaxonC 12.2 to SaxonC 12.5.0, SaxonC 12.5.0 does not recogize our license file.

We use SaxonProcessor::setConfigurationProperty("http://saxon.sf.net/feature/licenseFileLocation", "license-file-location") to set the license file location. "Expiration=never" is in our license file.

Using the same program and license file (with the same permissions and in the same location), SaxonC 12.2 recognizes the licence file but SaxonC 12.5.0 throws a SaxonAPIException: Processor is not licensed for schema processing!

Does SaxonC 12.5.0 no longer support setting the licence file location via the configuration property? Did the configuration propery name change for SaxonC 12.5 0?

Any incite into this issue would be greatly appreciated.

Thanks,

Paul Greve


Replies (10)

Please register to reply

RE: SAxonC 12.5.0 does not recognize license file - Added by Michael Kay 6 days ago

There are two possibilities: the license file isn't being found/read, or it isn't valid with this maintenance release.

Either way, I would have expected a more explicit error message.

What are the values of the fields

Issued=???
UpgradeDays=???
MaintenanceDays=???

in your license file?

RE: SAxonC 12.5.0 does not recognize license file - Added by Paul Greve 6 days ago

Hi Michael,

Here are the the values in our license file:

Issued=2022-11-22 Evaluation=no Expiration=never UpgradeDays=366 MaintenanceDays=366

Ankita Mohinta from your office just reached out to me regarding our license renewal. I thought we had renewed but as a developer, I'm not really involved in that process. I forwarde Ankita's e-mail to my management.

Paul

RE: SAxonC 12.5.0 does not recognize license file - Added by Michael Kay 6 days ago

Sorry, but that license doesn't cover 12.5 (maintenance on your license expired on 2023-11-23, Saxon 12.5 was issued in July 2024.)

RE: SAxonC 12.5.0 does not recognize license file - Added by Paul Greve 6 days ago

Thanks Michael. I didn't recognize that this was a licensing issue. As I mentioned, I've forwarded Ankita's e-mail regarding our license renewal to my management.

RE: SAxonC 12.5.0 does not recognize license file - Added by O'Neil Delpratt 5 days ago

Michael Kay wrote in RE: SAxonC 12.5.0 does not recognize license file:

There are two possibilities: the license file isn't being found/read, or it isn't valid with this maintenance release.

Either way, I would have expected a more explicit error message.

As Mike mentioned it would be good to get a more explicit message on the error. I have created the following bug issue for this: #6649

RE: SAxonC 12.5.0 does not recognize license file - Added by Paul Greve 5 days ago

Hi Guys,

I apologize again for my misunderstanding on how the licensing works. Ankita helped me get the latest license keys that we had purchased in 2023 which allow me to run with SaxonC 12.5.0. I'm still experiencing an issue with 12.5 0 that I was hoping you could help me with. If I run the attached program with SaxonC 12.2, the call to SchemaValidiator::validate() works but if I run it with SaxonC 12.5.0, it throws an exception "Source document not found". Any incite into what I might be doing wrong would be greatly appreciated.

Paul

RE: SAxonC 12.5.0 does not recognize license file - Added by O'Neil Delpratt 5 days ago

Hi Paul,

Glad you got the license issue sorted and thanks for sending your code snippet.

Looking at it now.

RE: SAxonC 12.5.0 does not recognize license file - Added by Paul Greve 5 days ago

BTW, while our target system is the 64-bit ARM. I'm running that sample program on Linux x86_64 and it's giving me the exception with 12.5.0 but not with 12.2.

RE: SAxonC 12.5.0 does not recognize license file - Added by O'Neil Delpratt 5 days ago

Paul Greve wrote in RE: SAxonC 12.5.0 does not recognize license file:

Hi Guys,

If I run the attached program with SaxonC 12.2, the call to SchemaValidiator::validate() works but if I run it with SaxonC 12.5.0, it throws an exception "Source document not found". Any incite into what I might be doing wrong would be greatly appreciated.

Paul

This is a known bug. Please see the bug issue which we have resolved and will be available in the next maintenance release #6475

For now the workaround is to use the setParameter method to pass the source node to the SchemaValidator:

validator->setParameter("node", input);

RE: SAxonC 12.5.0 does not recognize license file - Added by Paul Greve 5 days ago

The workaround worked for me. Thanks for your help O'Neill.

Paul

    (1-10/10)

    Please register to reply