on ‎2020 Mar 04 7:13 PM
Hi,
I have 1905 hybris version in my local - CXCOMM190500P_7-70004140.
I have created a coupon based promotion and unable to publish promotion. See below the stack trace.
INFO [00000NX5::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000NX5) [AbstractRuleEngineJob] ************************************* INFO [00000NX5::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000NX5) [AbstractRuleEngineJob] Starting RuleEngineCompilePublishJob INFO [00000NX5::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000NX5) [AbstractRuleEngineJob] ************************************* INFO [00000NX5::de.hybris.platform.ruleengineservices.jalo.RuleEngineJob] (00000NX5) [DefaultPlatformRuleEngineService] Publishing event that Kie Container swap started for module [promotions-module] and release ID [1.0.0.6] Listening for transport dt_socket at address: 8000 ERROR [RulePublisher-Thread-304] [DefaultRulePublishingSpliterator] ERROR kmodule.xml found, but unable to read XSD validation failed against the new schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.) and against the old schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.). kmodule.xml ERROR [RulePublisher-Thread-304] [DefaultRulePublishingSpliterator] ERROR kmodule.xml found, but unable to read XSD validation failed against the new schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.) and against the old schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.). kmodule.xml ERROR [RuleEngine-module-swapping-0] [DefaultRuleEngineKieModuleSwapper] DroolsInitializationException occurred {} de.hybris.platform.ruleengine.exception.DroolsInitializationException: Initialization of rule engine failed during the deployment phase: kmodule.xml found, but unable to read XSD validation failed against the new schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.) and against the old schema (DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.). at de.hybris.platform.ruleengine.init.impl.DefaultRuleEngineKieModuleSwapper.deployRules(DefaultRuleEngineKieModuleSwapper.java:803) ~[ruleengineserver.jar:?] at de.hybris.platform.ruleengine.init.impl.DefaultRuleEngineKieModuleSwapper.lambda$18(DefaultRuleEngineKieModuleSwapper.java:365) ~[ruleengineserver.jar:?] at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ~[?:?]
I have this DTDDVFactoryImpl present in JRE 8 from embedded server extension and from JRE11.
I replaced the JRE 8 with JRE11 for the embeddedserver wondering if this was causing an issue, it did not help.
It is also present in the xercesImpl-2.12.0.jar present in backoffice & samlsinglesignonaddon.
Wondering if there is a conflict because of the multiple versions of this class.
Could please let me know which version of the class is the ruleengine supposed to use and probably what could be causing this. There are other developers also having this issue in their locals.
Request clarification before answering.
Yes, The problem appears to be due to some sort of classpath or version mismatch of the xercesImpl-2.12.0.jar in CXCOMM190500P_7-70004140. We had to replace that jar with xercesImpl-2.11.0.SP5-redhat-1.jar, present in 1905.0.
We did this only for local & not for other environments.
Before
./hybris/bin/modules/platform/samlsinglesignon/lib/xercesImpl-2.12.0.jar
./hybris/bin/modules/backoffice-framework/backoffice/web/webroot/WEB-INF/lib/xercesImpl-2.12.0.jar
After
./hybris/bin/modules/platform/samlsinglesignon/lib/xercesImpl-2.11.0.SP5-redhat-1.jar
./hybris/bin/modules/backoffice-framework/backoffice/web/webroot/WEB-INF/lib/xercesImpl-2.11.0.SP5-redhat-1.jar
In some cases, we had to run an update after replacing these jars to get it to work.
Recently we started seeing this issue in production as well for one of the cluster nodes, which is intermittent, trying to work with SAP to find a solution for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.