[mule-user] reply-to async problem

3 views
Skip to first unread message

Emil Hedenberg

unread,
Nov 5, 2010, 8:54:33 AM11/5/10
to us...@mule.codehaus.org
Hi,

Im trying to test how to split a WS calls to multiple WSes with a multicasting-router and returning the merged XML from both those calls. This examle should be fixed with transformers to make sense in the real world, I know. But I end up being unable to deploy it.

CONF:
<?xml version="1.1" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:http="http://www.mulesource.org/schema/mule/http/2.2"
xmlns:https="http://www.mulesource.org/schema/mule/https/2.2"
xmlns:mule-xml="http://www.mulesource.org/schema/mule/xml/2.2"
xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.2" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
http://www.mulesource.org/schema/mule/http/2.2 http://www.mulesource.org/schema/mule/http/2.2/mule-http.xsd
http://www.mulesource.org/schema/mule/https/2.2 http://www.mulesource.org/schema/mule/https/2.2/mule-https.xsd
http://www.mulesource.org/schema/mule/xml/2.2 http://www.mulesource.org/schema/mule/xml/2.2/mule-xml.xsd
http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

<model name="TEST">

<service name="TESTING">
<inbound>
<inbound-endpoint address="http://localhost:63089/testing"
synchronous="true">
<transformers>
<mule-xml:xml-to-dom-transformer
name="t1" />
<mule-xml:dom-to-output-handler-transformer
name="t2" />
</transformers>
<response-transformers>
<mule-xml:xml-to-dom-transformer
name="t3" />
<mule-xml:dom-to-output-handler-transformer
name="t4" />
</response-transformers>
</inbound-endpoint>
</inbound>

<outbound>
<multicasting-router>
<outbound-endpoint
address="http://172.16.192.71:8080/WIA/Login"
synchronous="false">
<response-transformers>
<byte-array-to-string-transformer />
</response-transformers>
</outbound-endpoint>
<outbound-endpoint
address="http://172.16.192.71:8080/WIA/Login"
synchronous="false">
<response-transformers>
<byte-array-to-string-transformer />
</response-transformers>
</outbound-endpoint>
     <payload-type-filter expectedType="java.lang.String"/>
     <reply-to address="vm://responses"/>
   </multicasting-router>
</outbound>
<async-reply failOnTimeout="false" timeout="5000">
<vm:inbound-endpoint path="responses"/>
<collection-async-reply-router/>
</async-reply>
</service>
</model>

</mule>

LOG:
INFO 2010-11-05 13:21:29,382 [main] org.mule.MuleServer: Mule Server initializing...
INFO 2010-11-05 13:21:29,982 [main] org.mule.config.spring.MuleApplicationContext: Refreshing org.mule.config.spring.MuleApplicationContext@736921fd: display name [org.mule.config.spring.MuleApplicationContext@736921fd]; startup date [Fri Nov 05 13:21:29 CET 2010]; root of context hierarchy
ERROR 2010-11-05 13:21:34,401 [main] org.mule.config.spring.SpringXmlConfigurationBuilder: Configuration with "org.mule.config.spring.SpringXmlConfigurationBuilder" failed.
org.mule.api.lifecycle.InitialisationException: Initialisation Failure: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:76)
at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:98)
at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:69)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:112)
at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:58)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:177)
at org.mule.MuleServer.initialize(MuleServer.java:351)
at org.mule.MuleServer.run(MuleServer.java:257)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:104)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:68)
... 13 more
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.scanStartElement(XML11NSDocumentScannerImpl.java:351)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.next(XML11NSDocumentScannerImpl.java:852)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 22 more
ERROR 2010-11-05 13:21:34,404 [main] org.mule.config.builders.AutoConfigurationBuilder: Configuration with "org.mule.config.builders.AutoConfigurationBuilder" failed.
org.mule.api.config.ConfigurationException: Initialisation Failure: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected. (org.mule.api.lifecycle.InitialisationException)
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:112)
at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:58)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:177)
at org.mule.MuleServer.initialize(MuleServer.java:351)
at org.mule.MuleServer.run(MuleServer.java:257)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)
Caused by: org.mule.api.lifecycle.InitialisationException: Initialisation Failure: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:76)
at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:98)
at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:69)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
... 10 more
Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:104)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:68)
... 13 more
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.scanStartElement(XML11NSDocumentScannerImpl.java:351)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.next(XML11NSDocumentScannerImpl.java:852)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
... 22 more
ERROR 2010-11-05 13:21:34,450 [main] org.mule.MuleServer:
********************************************************************************
Message : Initialisation Failure: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
Type : org.mule.api.lifecycle.InitialisationException
Code : MULE_ERROR-72085
JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/InitialisationException.html
Object : org.mule.config.spring.SpringRegistry@3e0d1329
********************************************************************************
Exception stack is:
1. cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected. (org.xml.sax.SAXParseException)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper:195 (null)
2. Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected. (org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader:404 (null)
3. Initialisation Failure: Line 55 in XML document from URL [file:/Users/Hedenberg/JavaProjects/WIA/WIM/conf/test.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected. (org.mule.api.lifecycle.InitialisationException)
org.mule.registry.AbstractRegistry:76 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/lifecycle/InitialisationException.html)
********************************************************************************
Root Exception stack trace:
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'reply-to'. One of '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1777)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.scanStartElement(XML11NSDocumentScannerImpl.java:351)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XML11NSDocumentScannerImpl.next(XML11NSDocumentScannerImpl.java:852)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.mule.config.spring.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:104)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:68)
at org.mule.config.spring.SpringXmlConfigurationBuilder.createSpringRegistry(SpringXmlConfigurationBuilder.java:98)
at org.mule.config.spring.SpringXmlConfigurationBuilder.doConfigure(SpringXmlConfigurationBuilder.java:69)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.config.builders.AutoConfigurationBuilder.autoConfigure(AutoConfigurationBuilder.java:112)
at org.mule.config.builders.AutoConfigurationBuilder.doConfigure(AutoConfigurationBuilder.java:58)
at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:39)
at org.mule.config.builders.AbstractResourceConfigurationBuilder.configure(AbstractResourceConfigurationBuilder.java:78)
at org.mule.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:177)
at org.mule.MuleServer.initialize(MuleServer.java:351)
at org.mule.MuleServer.run(MuleServer.java:257)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)

********************************************************************************

ERROR 2010-11-05 13:21:34,490 [main] org.mule.MuleServer:
********************************************************************************
* A Fatal error has occurred while the server was running: *
* cvc-complex-type.2.4.a: Invalid content was found starting with element *
* 'reply-to'. One of *
* '{"http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer}' *
* is expected. (org.xml.sax.SAXParseException) *
* *
* The error is fatal, the system must shutdown *
* Server started: 1970-01-01 01:00 *
* Server shutdown: 2010-11-05 13:21 *
********************************************************************************
INFO 2010-11-05 13:21:34,491 [main] org.mule.config.spring.MuleApplicationContext: Closing org.mule.config.spring.MuleApplicationContext@736921fd: display name [org.mule.config.spring.MuleApplicationContext@736921fd]; startup date [Fri Nov 05 13:21:29 CET 2010]; root of context hierarchy
ERROR 2010-11-05 13:21:34,492 [main] org.mule.config.spring.MuleApplicationContext: Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.mule.config.spring.MuleApplicationContext@736921fd: display name [org.mule.config.spring.MuleApplicationContext@736921fd]; startup date [Fri Nov 05 13:21:29 CET 2010]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:287)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:819)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)
at org.mule.config.spring.SpringRegistry.doDispose(SpringRegistry.java:96)
at org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:47)
at org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:39)
at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:226)
at org.mule.MuleServer.shutdown(MuleServer.java:390)
at org.mule.MuleServer.run(MuleServer.java:263)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)
ERROR 2010-11-05 13:21:34,492 [main] org.mule.config.spring.SpringRegistry: Failed to cleanly dispose: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:153)
at org.springframework.context.support.AbstractApplicationContext.getLifecycleBeans(AbstractApplicationContext.java:1061)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:825)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:794)
at org.mule.config.spring.SpringRegistry.doDispose(SpringRegistry.java:96)
at org.mule.registry.AbstractRegistry.dispose(AbstractRegistry.java:47)
at org.mule.registry.AbstractRegistryBroker.dispose(AbstractRegistryBroker.java:39)
at org.mule.DefaultMuleContext.dispose(DefaultMuleContext.java:226)
at org.mule.MuleServer.shutdown(MuleServer.java:390)
at org.mule.MuleServer.run(MuleServer.java:263)
at org.mule.MuleServer.start(MuleServer.java:244)
at org.mule.MuleServer.main(MuleServer.java:121)
INFO 2010-11-05 13:21:34,508 [Thread-1] org.mule.MuleServer: Mule server shutting down due to normal shutdown request
INFO 2010-11-05 13:21:34,509 [Thread-1] org.mule.MuleServer:
**************************************************************************************
* The server is shutting down due to normal shutdown request *
* Server started: 1970-01-01 01:00 *
* Server shutdown: 2010-11-05 13:21 *

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Andrew Perepelytsya

unread,
Nov 5, 2010, 8:59:05 AM11/5/10
to us...@mule.codehaus.org
Are you using a real xml editor? Just move the reply-to element above the payload filter.

HTH,
Andrew

Emil Hedenberg

unread,
Nov 5, 2010, 9:52:12 AM11/5/10
to us...@mule.codehaus.org
Thank you.
No, Im using eclipse :)

New problem. The below works, but doesn't return a reply.
The log just says:
WARN 2010-11-05 14:47:45,018 [connector.http.0.receiver.2] org.mule.routing.outbound.DefaultOutboundRouterCollection: Message did not match any routers on: TESTING and there is no catch all strategy configured on this router. Disposing message org.mule.transport.DefaultMessageAdapter/org.mule.transport.DefaultMessageAdapter@7f1e1bbf{id=4487e0a8-e8e3-11df-bc00-4335f2238cd4, payload=org.mule.module.xml.transformer.XmlToOutputHandler$1, properties=Properties{invocation:{}, inbound:{http.request=/testing, http.version=HTTP/1.1, Host=localhost:63089, Content-Length=257, http.method=POST, SOAPAction="", Accept-Encoding=gzip,deflate, User-Agent=Jakarta Commons-HttpClient/3.1, Content-Type=text/xml;charset=UTF-8}, outbound:{http.context.path=/testing, MULE_ENCODING=UTF-8, MULE_REMOTE_CLIENT_ADDRESS=/127.0.0.1:54863, MULE_REMOTE_SYNC=true, http.request.path=/testing, MULE_ORIGINATING_ENDPOINT=endpoint.http.localhost.63089.testing}, session:{}, }, correlationId=null, correlationGroup=-1, correlationSeq=-1, encoding=UTF-8, exceptionPayload=null}

I expected a response with two XMLs in it. (For later transformation into a single one).
Is this even possible? Or must I uses some sort of aggregator to create this behavior?

<?xml version="1.0" encoding="UTF-8"?>

</inbound-endpoint>
</inbound>
<outbound>
<multicasting-router>
<outbound-endpoint
address="http://172.16.192.71:8080/WIA/Login"
synchronous="false">
<response-transformers>
<byte-array-to-string-transformer />
</response-transformers>
</outbound-endpoint>
<outbound-endpoint
address="http://172.16.192.71:8080/WIA/Login"
synchronous="false">
<response-transformers>
<byte-array-to-string-transformer />
</response-transformers>
</outbound-endpoint>

<reply-to address="vm://responses"/>

<payload-type-filter expectedType="java.lang.String"/>


</multicasting-router>
</outbound>
<async-reply failOnTimeout="false" timeout="5000">
<vm:inbound-endpoint path="responses"/>
<collection-async-reply-router/>
</async-reply>
</service>
</model>
</mule>

---------------------------------------------------------------------

Emil Hedenberg

unread,
Nov 5, 2010, 10:17:14 AM11/5/10
to us...@mule.codehaus.org
The real problem seems to be that none of my outbound-endpoints are being called. Must I set something to match them?

Emil Hedenberg

unread,
Nov 7, 2010, 12:26:17 PM11/7/10
to us...@mule.codehaus.org
Can anyone please try to help me understand what im doing wrong here?
I want both outbound endpoints to be called and the result from both merged into one response back from the webservice. Instead, none gets called.
Reply all
Reply to author
Forward
0 new messages