Project

Profile

Help

Bug #2120

closed

NullPointerException if there's no license key

Added by Gerben Abbink over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Build and release
Sprint/Milestone:
Start date:
2014-08-04
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

I run a small XSLT 3.0 stylesheet using SaxonEE9-5-1-6J.

If I install my license key everything is working just fine. But, if NO license key is installed i get the following error:

java.lang.NullPointerException

stack:

com.saxonica.config.ProfessionalConfiguration.loadLicense(ProfessionalConfiguration.java:391)

com.saxonica.config.ProfessionalConfiguration.isLicensedFeature(ProfessionalConfiguration.java:367)

com.saxonica.config.ProfessionalConfiguration.makeStyleNodeFactory(ProfessionalConfiguration.java:504)

net.sf.saxon.PreparedStylesheet.(PreparedStylesheet.java:87)

net.sf.saxon.PreparedStylesheet.compile(PreparedStylesheet.java:113)

net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:330)

Any ideas why I get a NullPointerException instead of a 'normal' execption? Is this a bug in Saxon?

Here's my Java code:

Configuration configuration = new com.saxonica.config.ProfessionalConfiguration();

Processor processor = new Processor(configuration);

XsltCompiler compiler = processor.newXsltCompiler();

XsltExecutable executable = compiler.compile(...);

Thank you.


Related issues

Is duplicate of Saxon - Bug #2119: NullPointerException when running Saxon-EE in unlicensed modeClosedMichael Kay2014-08-02

Actions

Please register to edit this issue

Also available in: Atom PDF