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

Please register to edit this issue

Also available in: Atom PDF