Project

Profile

Help

Bug #2119

closed

NullPointerException when running Saxon-EE in unlicensed mode

Added by Michael Kay over 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build and release
Sprint/Milestone:
Start date:
2014-08-02
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.5
Fix Committed on Branch:
9.5
Fixed in Maintenance Release:
Platforms:

Description

This is a side-effect of the patch for https://saxonica.plan.io/issues/2064, introduced in Saxon 9.5.1.6.

When running Saxon-EE software and using JAXP interfaces, Saxon by default creates an EnterpriseConfiguration and looks for a license file. If no license file is found, it should fall back to running in unlicensed mode, which makes it behave like Saxon-HE. But the recovery path when no license file is found is failing with a NullPointerException

at com.saxonica.config.Verifier.loadLicense(Verifier.java:141)

It's trying to tidy up by clearing the contents of the "features" list, but the features list has not been initialized.


Related issues

Has duplicate Saxon - Bug #2120: NullPointerException if there's no license keyClosedMichael Kay2014-08-04

Actions
Actions #1

Updated by Michael Kay over 10 years ago

  • Status changed from In Progress to Resolved

Fixed on the 9.5 and 9.6 branches. (For some reason the code that had been added to the 9.5 branch to clear the features list after an error had not been added to 9.6. I have now added it, with the extra checks needed to fix this bug.)

Actions #2

Updated by O'Neil Delpratt about 10 years ago

  • Status changed from Resolved to Closed
  • Fixed in version set to 9.1.5.7

Bug fix applied in the Saxon maintenance release 9.5.1.7

Actions #3

Updated by O'Neil Delpratt almost 9 years ago

  • Sprint/Milestone set to 9.5.1.7
  • % Done changed from 0 to 100
  • Applies to branch 9.5 added
  • Fix Committed on Branch 9.5 added
  • Fixed in Maintenance Release 9.5.1.7 added

Please register to edit this issue

Also available in: Atom PDF