org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression

MuleSoft JIRA | Damian Sima | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When trying to uses a expression filter inside a choice, although is possible to do it fails when you already have a when expression. The configuration looks like: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"> <flow name="ztestFlow1" doc:name="ztestFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> <logger level="INFO" doc:name="Logger"/> <set-payload value="#[true]" doc:name="Set Payload"/> <choice doc:name="Choice"> <when expression="#[payload==true]"> <expression-filter expression="#[payload == false]" doc:name="Expression"/> <logger level="INFO" doc:name="Logger"/> </when> <otherwise> <logger level="INFO" doc:name="Logger"/> </otherwise> </choice> </flow> </mule> As it turns out it seems that the expression filter is being took as part of the when. This is the error I'm getting: log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@3bad086a. log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@3bad086a class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@3bad086a. log4j: Using URL [jar:file:/Users/damiansima/Documents/MuleStudios/MuleStudio%203.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/tooling/tooling-support-3.4.0.jar!/log4j.properties] for automatic log4j configuration. log4j: Reading configuration from URL jar:file:/Users/damiansima/Documents/MuleStudios/MuleStudio%203.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/tooling/tooling-support-3.4.0.jar!/log4j.properties log4j: Parsing for [root] with value=[INFO, console]. log4j: Level token is [INFO]. log4j: Category root set to INFO log4j: Parsing appender named "console". log4j: Parsing layout options for "console". log4j: Setting property [conversionPattern] to [%-5p %d [%t] %c: %m%n]. log4j: End of parsing for "console". log4j: Parsed "console" options. log4j: Parsing for [com.mycompany] with value=[DEBUG]. log4j: Level token is [DEBUG]. log4j: Category com.mycompany set to DEBUG log4j: Handling log4j.additivity.com.mycompany=[null] log4j: Parsing for [org.springframework.beans.factory] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.springframework.beans.factory set to WARN log4j: Handling log4j.additivity.org.springframework.beans.factory=[null] log4j: Parsing for [org.apache] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.apache set to WARN log4j: Handling log4j.additivity.org.apache=[null] log4j: Parsing for [Tracking] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category Tracking set to WARN log4j: Handling log4j.additivity.Tracking=[null] log4j: Parsing for [org.jetel] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.jetel set to WARN log4j: Handling log4j.additivity.org.jetel=[null] log4j: Parsing for [org.mule] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.mule set to INFO log4j: Handling log4j.additivity.org.mule=[null] log4j: Parsing for [com.mulesoft] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category com.mulesoft set to INFO log4j: Handling log4j.additivity.com.mulesoft=[null] log4j: Parsing for [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] with value=[ERROR]. log4j: Level token is [ERROR]. log4j: Category org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog set to ERROR log4j: Handling log4j.additivity.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog=[null] log4j: Finished configuring. Deploying application: ztest Reading plugins from: /Users/damiansima/Documents/MuleStudios/MuleStudio 3.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/plugins INFO 2014-02-25 12:07:19,517 [main] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: anypoint-plugin-119GA INFO 2014-02-25 12:07:19,529 [main] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: mule-plugin-debugger-3.4.0 INFO 2014-02-25 12:07:19,593 [main] com.mulesoft.habitat.agent.AnypointAgentUtils: Anypoint Service Registry Agent is DISABLED. Property anypoint.agent.token is missing or empty. INFO 2014-02-25 12:07:19,601 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'ztest' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-02-25 12:07:19,604 [main] org.mule.module.launcher.MuleApplicationClassLoader: [ztest] Loading the following jars: ============================= file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/bcprov-jdk14-139.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/ftplet-api-1.0.2.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/ftpserver-core-1.0.2.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jaxb-impl-2.1.5.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jaxb-xjc-2.1.13.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jcl-over-slf4j-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jdom-1.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mina-core-2.0.0-M6.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mockito-all-1.9.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mockobjects-core-0.09.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/slf4j-api-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/slf4j-log4j12-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/spring-tx-3.0.6.RELEASE.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/spring-web-3.0.6.RELEASE.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/sshd-core-0.6.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/stax2-api-3.0.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/wss4j-1.6.4.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/xmlsec-1.4.6.jar ============================= INFO 2014-02-25 12:07:19,606 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Initializing app 'ztest' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-02-25 12:07:19,771 [main] org.mule.lifecycle.AbstractLifecycleManager: Initialising RegistryBroker INFO 2014-02-25 12:07:19,893 [main] org.mule.config.spring.MuleApplicationContext: Refreshing org.mule.config.spring.MuleApplicationContext@643cb075: startup date [Tue Feb 25 12:07:19 GMT-03:00 2014]; root of context hierarchy ERROR 2014-02-25 12:07:20,702 [main] org.mule.module.launcher.application.DefaultMuleApplication: null org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement(CheckExclusiveAttributesAndChildren.java:130) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildNode(CheckExclusiveAttributesAndChildren.java:114) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.ensureNoForbiddenChildren(CheckExclusiveAttributesAndChildren.java:106) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.preProcess(CheckExclusiveAttributesAndChildren.java:95) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.preProcess(AbstractMuleBeanDefinitionParser.java:241) at org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser.preProcess(AbstractHierarchicalDefinitionParser.java:104) at org.mule.config.spring.parsers.generic.ChildDefinitionParser.preProcess(ChildDefinitionParser.java:92) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:261) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:88) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:190) at org.mule.config.spring.MuleBeanDefinitionDocumentReader.parseBeanDefinitions(MuleBeanDefinitionDocumentReader.java:55) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119) at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101) at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84) at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) at org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:127) INFO 2014-02-25 12:07:20,704 [main] org.mule.module.launcher.application.DefaultMuleApplication: App 'ztest' never started, nothing to dispose of Exception in thread "main" org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributesAndChildren.CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:219) at org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:127) Caused by: org.mule.api.config.ConfigurationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression (org.mule.api.lifecycle.InitialisationException) (org.mule.api.config.ConfigurationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84) at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) ... 3 more Caused by: org.mule.api.config.ConfigurationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression (org.mule.api.lifecycle.InitialisationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101) at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) ... 6 more Caused by: org.mule.api.lifecycle.InitialisationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:117) at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119) at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) ... 10 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 13 more Caused by: org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement(CheckExclusiveAttributesAndChildren.java:130) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildNode(CheckExclusiveAttributesAndChildren.java:114) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.ensureNoForbiddenChildren(CheckExclusiveAttributesAndChildren.java:106) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.preProcess(CheckExclusiveAttributesAndChildren.java:95) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.preProcess(AbstractMuleBeanDefinitionParser.java:241) at org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser.preProcess(AbstractHierarchicalDefinitionParser.java:104) at org.mule.config.spring.parsers.generic.ChildDefinitionParser.preProcess(ChildDefinitionParser.java:92) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:261) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:88) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:190) at org.mule.config.spring.MuleBeanDefinitionDocumentReader.parseBeanDefinitions(MuleBeanDefinitionDocumentReader.java:55) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) ... 22 more

    MuleSoft JIRA | 3 years ago | Damian Sima
    org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression
  2. 0

    When trying to uses a expression filter inside a choice, although is possible to do it fails when you already have a when expression. The configuration looks like: <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"> <flow name="ztestFlow1" doc:name="ztestFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" doc:name="HTTP"/> <logger level="INFO" doc:name="Logger"/> <set-payload value="#[true]" doc:name="Set Payload"/> <choice doc:name="Choice"> <when expression="#[payload==true]"> <expression-filter expression="#[payload == false]" doc:name="Expression"/> <logger level="INFO" doc:name="Logger"/> </when> <otherwise> <logger level="INFO" doc:name="Logger"/> </otherwise> </choice> </flow> </mule> As it turns out it seems that the expression filter is being took as part of the when. This is the error I'm getting: log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@3bad086a. log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@3bad086a class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@3bad086a. log4j: Using URL [jar:file:/Users/damiansima/Documents/MuleStudios/MuleStudio%203.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/tooling/tooling-support-3.4.0.jar!/log4j.properties] for automatic log4j configuration. log4j: Reading configuration from URL jar:file:/Users/damiansima/Documents/MuleStudios/MuleStudio%203.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/tooling/tooling-support-3.4.0.jar!/log4j.properties log4j: Parsing for [root] with value=[INFO, console]. log4j: Level token is [INFO]. log4j: Category root set to INFO log4j: Parsing appender named "console". log4j: Parsing layout options for "console". log4j: Setting property [conversionPattern] to [%-5p %d [%t] %c: %m%n]. log4j: End of parsing for "console". log4j: Parsed "console" options. log4j: Parsing for [com.mycompany] with value=[DEBUG]. log4j: Level token is [DEBUG]. log4j: Category com.mycompany set to DEBUG log4j: Handling log4j.additivity.com.mycompany=[null] log4j: Parsing for [org.springframework.beans.factory] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.springframework.beans.factory set to WARN log4j: Handling log4j.additivity.org.springframework.beans.factory=[null] log4j: Parsing for [org.apache] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.apache set to WARN log4j: Handling log4j.additivity.org.apache=[null] log4j: Parsing for [Tracking] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category Tracking set to WARN log4j: Handling log4j.additivity.Tracking=[null] log4j: Parsing for [org.jetel] with value=[WARN]. log4j: Level token is [WARN]. log4j: Category org.jetel set to WARN log4j: Handling log4j.additivity.org.jetel=[null] log4j: Parsing for [org.mule] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.mule set to INFO log4j: Handling log4j.additivity.org.mule=[null] log4j: Parsing for [com.mulesoft] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category com.mulesoft set to INFO log4j: Handling log4j.additivity.com.mulesoft=[null] log4j: Parsing for [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] with value=[ERROR]. log4j: Level token is [ERROR]. log4j: Category org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog set to ERROR log4j: Handling log4j.additivity.org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog=[null] log4j: Finished configuring. Deploying application: ztest Reading plugins from: /Users/damiansima/Documents/MuleStudios/MuleStudio 3.4.0-201305141336-ga-patch/plugins/org.mule.tooling.server.3.4.0.ee_3.4.0.201401021511/mule/plugins INFO 2014-02-25 12:07:19,517 [main] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: anypoint-plugin-119GA INFO 2014-02-25 12:07:19,529 [main] com.mulesoft.mule.plugin.manager.MulePluginManager: Registering plugin: mule-plugin-debugger-3.4.0 INFO 2014-02-25 12:07:19,593 [main] com.mulesoft.habitat.agent.AnypointAgentUtils: Anypoint Service Registry Agent is DISABLED. Property anypoint.agent.token is missing or empty. INFO 2014-02-25 12:07:19,601 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + New app 'ztest' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-02-25 12:07:19,604 [main] org.mule.module.launcher.MuleApplicationClassLoader: [ztest] Loading the following jars: ============================= file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/bcprov-jdk14-139.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/ftplet-api-1.0.2.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/ftpserver-core-1.0.2.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jaxb-impl-2.1.5.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jaxb-xjc-2.1.13.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jcl-over-slf4j-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/jdom-1.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mina-core-2.0.0-M6.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mockito-all-1.9.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/mockobjects-core-0.09.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/slf4j-api-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/slf4j-log4j12-1.6.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/spring-tx-3.0.6.RELEASE.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/spring-web-3.0.6.RELEASE.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/sshd-core-0.6.0.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/stax2-api-3.0.1.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/wss4j-1.6.4.jar file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/lib/xmlsec-1.4.6.jar ============================= INFO 2014-02-25 12:07:19,606 [main] org.mule.module.launcher.application.DefaultMuleApplication: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Initializing app 'ztest' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ INFO 2014-02-25 12:07:19,771 [main] org.mule.lifecycle.AbstractLifecycleManager: Initialising RegistryBroker INFO 2014-02-25 12:07:19,893 [main] org.mule.config.spring.MuleApplicationContext: Refreshing org.mule.config.spring.MuleApplicationContext@643cb075: startup date [Tue Feb 25 12:07:19 GMT-03:00 2014]; root of context hierarchy ERROR 2014-02-25 12:07:20,702 [main] org.mule.module.launcher.application.DefaultMuleApplication: null org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement(CheckExclusiveAttributesAndChildren.java:130) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildNode(CheckExclusiveAttributesAndChildren.java:114) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.ensureNoForbiddenChildren(CheckExclusiveAttributesAndChildren.java:106) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.preProcess(CheckExclusiveAttributesAndChildren.java:95) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.preProcess(AbstractMuleBeanDefinitionParser.java:241) at org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser.preProcess(AbstractHierarchicalDefinitionParser.java:104) at org.mule.config.spring.parsers.generic.ChildDefinitionParser.preProcess(ChildDefinitionParser.java:92) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:261) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:88) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:190) at org.mule.config.spring.MuleBeanDefinitionDocumentReader.parseBeanDefinitions(MuleBeanDefinitionDocumentReader.java:55) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119) at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101) at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84) at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) at org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:127) INFO 2014-02-25 12:07:20,704 [main] org.mule.module.launcher.application.DefaultMuleApplication: App 'ztest' never started, nothing to dispose of Exception in thread "main" org.mule.module.launcher.DeploymentInitException: CheckExclusiveAttributesAndChildren.CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:219) at org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64) at org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47) at org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:127) Caused by: org.mule.api.config.ConfigurationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression (org.mule.api.lifecycle.InitialisationException) (org.mule.api.config.ConfigurationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84) at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) ... 3 more Caused by: org.mule.api.config.ConfigurationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression (org.mule.api.lifecycle.InitialisationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52) at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78) at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101) at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) ... 6 more Caused by: org.mule.api.lifecycle.InitialisationException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:117) at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119) at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46) ... 10 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/Users/damiansima/Documents/mulestudioworkspace/.mule/apps/ztest/ztest.xml]; nested exception is org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451) at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89) at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109) ... 13 more Caused by: org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement(CheckExclusiveAttributesAndChildren.java:130) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildNode(CheckExclusiveAttributesAndChildren.java:114) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.ensureNoForbiddenChildren(CheckExclusiveAttributesAndChildren.java:106) at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.preProcess(CheckExclusiveAttributesAndChildren.java:95) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.preProcess(AbstractMuleBeanDefinitionParser.java:241) at org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser.preProcess(AbstractHierarchicalDefinitionParser.java:104) at org.mule.config.spring.parsers.generic.ChildDefinitionParser.preProcess(ChildDefinitionParser.java:92) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:261) at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59) at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:88) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:190) at org.mule.config.spring.MuleBeanDefinitionDocumentReader.parseBeanDefinitions(MuleBeanDefinitionDocumentReader.java:55) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) ... 22 more

    MuleSoft JIRA | 3 years ago | Damian Sima
    org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException: Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression

    Root Cause Analysis

    1. org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren$CheckExclusiveAttributesAndChildrenException

      Element when{expression=#[payload==true]} can't contain child of type {http://www.mulesoft.org/schema/mule/core}abstractFilterType because it defines attribute expression

      at org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement()
    2. Spring Config
      AbstractMuleBeanDefinitionParser.parseInternal
      1. org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildElement(CheckExclusiveAttributesAndChildren.java:130)
      2. org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.checkChildNode(CheckExclusiveAttributesAndChildren.java:114)
      3. org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.ensureNoForbiddenChildren(CheckExclusiveAttributesAndChildren.java:106)
      4. org.mule.config.spring.parsers.processors.CheckExclusiveAttributesAndChildren.preProcess(CheckExclusiveAttributesAndChildren.java:95)
      5. org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.preProcess(AbstractMuleBeanDefinitionParser.java:241)
      6. org.mule.config.spring.parsers.AbstractHierarchicalDefinitionParser.preProcess(AbstractHierarchicalDefinitionParser.java:104)
      7. org.mule.config.spring.parsers.generic.ChildDefinitionParser.preProcess(ChildDefinitionParser.java:92)
      8. org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:261)
      8 frames
    3. Spring Beans
      NamespaceHandlerSupport.parse
      1. org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)
      2. org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
      2 frames
    4. Spring Config
      MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement
      1. org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:88)
      2. org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130)
      3. org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130)
      4. org.mule.config.spring.MuleHierarchicalBeanDefinitionParserDelegate.parseCustomElement(MuleHierarchicalBeanDefinitionParserDelegate.java:130)
      4 frames
    5. Spring Beans
      DefaultBeanDefinitionDocumentReader.parseBeanDefinitions
      1. org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1428)
      2. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:190)
      2 frames
    6. Spring Config
      MuleBeanDefinitionDocumentReader.parseBeanDefinitions
      1. org.mule.config.spring.MuleBeanDefinitionDocumentReader.parseBeanDefinitions(MuleBeanDefinitionDocumentReader.java:55)
      1 frame
    7. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
      2. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
      3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
      4. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
      5. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
      6. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
      7. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
      7 frames
    8. Spring Config
      MuleApplicationContext.loadBeanDefinitions
      1. org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:113)
      1 frame
    9. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
      2. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
      3 frames
    10. Spring Config
      SpringRegistry.doInitialise
      1. org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:89)
      1 frame
    11. Mule Core
      AbstractRegistry.initialise
      1. org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:109)
      1 frame
    12. Spring Config
      SpringXmlConfigurationBuilder.doConfigure
      1. org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:119)
      2. org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:73)
      2 frames
    13. Mule Core
      DefaultMuleContextFactory.createMuleContext
      1. org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
      2. org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
      3. org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:101)
      4. org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:57)
      5. org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:46)
      6. org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
      7. org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:84)
      7 frames
    14. Mule 3 Launcher
      DefaultMuleDeployer.deploy
      1. org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207)
      2. org.mule.module.launcher.application.ApplicationWrapper.init(ApplicationWrapper.java:64)
      3. org.mule.module.launcher.DefaultMuleDeployer.deploy(DefaultMuleDeployer.java:47)
      3 frames
    15. org.mule.tooling
      ApplicationDeployer.main
      1. org.mule.tooling.server.application.ApplicationDeployer.main(ApplicationDeployer.java:127)
      1 frame