Project

Profile

Help

Bug #6386

closed

net.sf.saxon.Configuration#setFeature(Feature.MESSAGE_EMITTER_CLASS, Object) breaks in 12.4

Added by Marijn Sanderse 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Configuration
Sprint/Milestone:
-
Start date:
2024-04-10
Due date:
% Done:

100%

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

Description

When trying to upgrade my existing Camel 2 apps from Saxon-EE 11.6 to 12.4 the code breaks when it's calling net.sf.saxon.Configuration#setFeature(Feature.MESSAGE_EMITTER_CLASS, Object):

Documentation on version 12 tells me it is still a valid albeit noop feature (see https://www.saxonica.com/html/documentation12/configuration/config-features.html)

Caused by: java.lang.IllegalArgumentException: Unknown configuration property http://saxon.sf.net/feature/messageEmitterClass at net.sf.saxon.Configuration.setFeature(Configuration.java:4922) at com.saxonica.config.ProfessionalConfiguration.setFeature(ProfessionalConfiguration.java:280) at com.saxonica.config.EnterpriseConfiguration.setFeature(EnterpriseConfiguration.java:239) at net.sf.saxon.Configuration.setConfigurationProperty(Configuration.java:4362) at com.saxonica.config.ProfessionalConfiguration.setConfigurationProperty(ProfessionalConfiguration.java:238) at net.sf.saxon.jaxp.SaxonTransformerFactory.setAttribute(SaxonTransformerFactory.java:340) at com.saxonica.config.ProfessionalTransformerFactory.setAttribute(ProfessionalTransformerFactory.java:63) at com.saxonica.config.EnterpriseTransformerFactory.setAttribute(EnterpriseTransformerFactory.java:86) at org.apache.camel.converter.jaxp.XmlConverter.configureSaxonTransformerFactory(XmlConverter.java:1257) at org.apache.camel.converter.jaxp.XmlConverter.createTransformerFactory(XmlConverter.java:1218) at org.apache.camel.converter.jaxp.XmlConverter.getTransformerFactory(XmlConverter.java:1079) at org.apache.camel.converter.jaxp.XmlConverter.createTransformer(XmlConverter.java:1189) at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:135) at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:124) at org.apache.camel.converter.jaxp.XmlConverter.toString(XmlConverter.java:247) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:1401) ... 61 common frames omitted


Files

Outlook-Logo.png (13.7 KB) Outlook-Logo.png Marijn Sanderse, 2024-04-23 13:36
Outlook-Logo-u3xwrr.png (13.7 KB) Outlook-Logo-u3xwrr.png Marijn Sanderse, 2024-04-23 14:38
Actions #1

Updated by Michael Kay 7 months ago

  • Category set to Configuration
  • Status changed from New to Resolved
  • Assignee set to Michael Kay
  • Applies to branch trunk added
  • Fix Committed on Branch 12, trunk added

Sorry for the delay in responding. I have committed a patch that causes this option (like other obsolete options) to be ignored rather than being rejected.

Actions #2

Updated by Marijn Sanderse 7 months ago

Hi Michael,

Thanks for creating the patch. How can I get and use it?

Kind regards,

Marijn Sanderse
Sr Developer

[Logo]

Wassenaarseweg 220, 2596 EC Den Haag
Postbus 93200, 2509 BA Den Haag


Van: Saxonica Developer Community
Verzonden: Dinsdag, 23 April, 2024 12:22
Aan: Marijn Sanderse
Onderwerp: [Saxon - Bug #6386] (Resolved) net.sf.saxon.Configuration#setFeature(Feature.MESSAGE_EMITTER_CLASS, Object) breaks in 12.4

Actions #3

Updated by Michael Kay 7 months ago

The patch will be included in the next maintenance release.

We do also mirror changes to the Saxon-HE (open source) code base to our development repository at https://saxonica.plan.io/projects/saxonmirrorhe/repository, but building the product from that code isn't something to attempt lightly.

Actions #4

Updated by Marijn Sanderse 7 months ago

Thanks for that. When may I expect the next maintenance release?

Met vriendelijke groet,

Marijn Sanderse
Sr Developer

[Logo]

Wassenaarseweg 220, 2596 EC Den Haag
Postbus 93200, 2509 BA Den Haag


Van: Saxonica Developer Community
Verzonden: Dinsdag, 23 April, 2024 14:36
Aan: Marijn Sanderse
Onderwerp: [Saxon - Bug #6386] net.sf.saxon.Configuration#setFeature(Feature.MESSAGE_EMITTER_CLASS, Object) breaks in 12.4

Actions #5

Updated by O'Neil Delpratt 5 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 12.5 added

Bug fix applied in the Saxon 12.5 Maintenance release.

Please register to edit this issue

Also available in: Atom PDF