Project

Profile

Help

Bug #2745

closed

org.apache.xerces.jaxp.SAXParserFactoryImpl not found in .NET

Added by O'Neil Delpratt over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
Start date:
2016-05-12
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7, trunk
Fix Committed on Branch:
9.6, 9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

The following error happens when setting the catalog in the Saxon-EE/PE product when Processor is set to false:

Message: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl, 
saxon9he, Version=9.7.0.5, Culture=neutral, 
PublicKeyToken=e1fdd002d5083fe6 not found

The construction of the the dll property name string is wrongly set in the setDefaultSAXParserFactory method of the DotNetform class. The reason is it is based on the method getEditionCode in the configuration. For PE and EE products the edition code is defaulted to "HE" when the Processor object is created with the license flag set to false. This has the side effect of looking for the class javax.xml.parsers.SAXParserFactory in a HE DLL which is not the intent given that a PE or EE product has been installed.

Fix applied in the setDefaultSAXParserFactory method by using preprocessing directives to properly select the correct product built.

This problem is related to the fix to the bug issue: https://saxonica.plan.io/issues/2486


Related issues

Related to Saxon - Bug #2486: Using -catalog with .NET command lineClosedO'Neil Delpratt2015-10-25

Actions

Please register to edit this issue

Also available in: Atom PDF