SecurityManager

14 views
Skip to first unread message

Jeff Bradley

unread,
Jun 29, 2021, 8:20:51 AMJun 29
to Smooks Users
I am debugging an issue related to Smooks throwing errors on startup. The error is below. 

Question: Why is Smooks doing this and how to fix the error?

2021-06-29 08:12:48.807  WARN 31911 --- [  restartedMain] o.a.camel.converter.jaxp.XmlConverter    : DocumentBuilderFactory doesn't support the attribute http://apache.org/xml/properties/security-manager, due to class org.apache.xerces.util.SecurityManager cannot be cast to class org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.SecurityManager (org.apache.xerces.util.SecurityManager and org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.SecurityManager are in unnamed module of loader 'app').

java.lang.IllegalArgumentException: class org.apache.xerces.util.SecurityManager cannot be cast to class org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.SecurityManager (org.apache.xerces.util.SecurityManager and org.smooks.engine.delivery.sax.ng.org.apache.xerces.util.SecurityManager are in unnamed module of loader 'app')
at org.smooks.engine.delivery.sax.ng.org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:145) ~[smooks-core-2.0.0-M3.jar:na]
at org.apache.camel.converter.jaxp.XmlConverter.createDocumentBuilderFactory(XmlConverter.java:975) ~[camel-xml-jaxp-3.10.0.jar:3.10.0]
at org.apache.camel.converter.jaxp.XmlConverter.getDocumentBuilderFactory(XmlConverter.java:880) ~[camel-xml-jaxp-3.10.0.jar:3.10.0]
at org.apache.camel.converter.jaxp.XmlConverter.getDocumentBuilderFactory(XmlConverter.java:938) ~[camel-xml-jaxp-3.10.0.jar:3.10.0]
at org.apache.camel.converter.jaxp.XmlConverter.toDOMDocument(XmlConverter.java:674) ~[camel-xml-jaxp-3.10.0.jar:3.10.0]
at org.apache.camel.xml.jaxb.JaxbHelper.loadRouteTemplatesDefinition(JaxbHelper.java:233) ~[camel-xml-jaxb-3.10.0.jar:3.10.0]
at org.apache.camel.dsl.xml.jaxb.JaxbXmlRoutesBuilderLoader$1.configure(JaxbXmlRoutesBuilderLoader.java:52) ~[camel-xml-jaxb-dsl-3.10.0.jar:3.10.0]
at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:541) ~[camel-core-model-3.10.0.jar:3.10.0]
at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:487) ~[camel-core-model-3.10.0.jar:3.10.0]
at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:462) ~[camel-core-model-3.10.0.jar:3.10.0]
at org.apache.camel.impl.engine.AbstractCamelContext.addRoutes(AbstractCamelContext.java:1150) ~[camel-base-engine-3.10.0.jar:3.10.0]
at org.apache.camel.main.RoutesConfigurer.configureRoutes(RoutesConfigurer.java:200) ~[camel-main-3.10.0.jar:3.10.0]
at org.apache.camel.spring.boot.CamelSpringBootApplicationListener.onApplicationEvent(CamelSpringBootApplicationListener.java:106) ~[camel-spring-boot-3.10.0.jar:3.10.0]
at org.apache.camel.spring.boot.CamelSpringBootApplicationListener.onApplicationEvent(CamelSpringBootApplicationListener.java:58) ~[camel-spring-boot-3.10.0.jar:3.10.0]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:938) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586) ~[spring-context-5.3.8.jar:5.3.8]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:771) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:763) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:438) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) ~[spring-boot-2.4.7.jar:2.4.7]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1318) ~[spring-boot-2.4.7.jar:2.4.7]
at com.example.integrationdemo.IntegrationDemoApplication.main(IntegrationDemoApplication.java:10) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.4.7.jar:2.4.7]

Jeff Bradley

unread,
Jun 30, 2021, 3:19:54 PMJun 30
to Smooks Users
The error is occurring when the smooks-edi-cartridge is used in a project with the camel-spring-boot-starter dependency. I'll create a ticket.
Reply all
Reply to author
Forward
0 new messages