camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: MINA component startup error
Date Thu, 28 Oct 2010 06:00:42 GMT
Hi there,

you must replace "&" with "&amp;" in xml's .

So something like:

<route>
    <from uri="mina:tcp://localhost:5555?decoderMaxLineLength=8192&amp;textline=true&amp;sync=false"/>
    <process ref="blah" />
    <to uri="seda:junk" />
</route>

Bye,
Norman


2010/10/27 Mark Webb <elihusmails@gmail.com>:
> I have the following route defined in an XML file:
>
>        <route>
>                <from uri="mina:tcp://localhost:5555?decoderMaxLineLength=8192&textline=true&sync=false"/>
>                <process ref="blah" />
>                <to uri="seda:junk" />
>        </route>
>
> I am getting the following error on ActiveMQ startup.  I assume the
> string is not properly escaped or something weird like that, but not
> sure.
>
>
>
> ERROR: java.lang.RuntimeException: Failed to execute start task.
> Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
> java.lang.RuntimeException: Failed to execute start task. Reason:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
>        at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:98)
>        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:143)
>        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
>        at org.apache.activemq.console.Main.main(Main.java:107)
> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>        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:143)
>        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.importBeanDefinitionResource(XBeanBeanDefinitionDocumentReader.java:120)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement(XBeanBeanDefinitionDocumentReader.java:95)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:81)
>        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
>        at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>        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.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
>        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
>        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
>        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>        at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
>        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
>        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
>        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
>        at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
>        at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
>        ... 10 more
> Caused by: org.xml.sax.SAXParseException: The reference to entity
> "textline" must end with the ';' delimiter.
>        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
>        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
> Source)
>        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>        at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
>        ... 37 more
> ERROR: java.lang.Exception:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
> java.lang.Exception:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
>        at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99)
>        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:143)
>        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
>        at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:85)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at org.apache.activemq.console.Main.runTaskClass(Main.java:251)
>        at org.apache.activemq.console.Main.main(Main.java:107)
> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 40 in XML document from URL [file:////home/someguy/dev/camel.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException: The
> reference to entity "textline" must end with the ';' delimiter.
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
>        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:143)
>        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.importBeanDefinitionResource(XBeanBeanDefinitionDocumentReader.java:120)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement(XBeanBeanDefinitionDocumentReader.java:95)
>        at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:81)
>        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
>        at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>        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.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
>        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
>        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
>        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>        at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>        at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
>        at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
>        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
>        at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
>        at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
>        at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
>        ... 10 more
> Caused by: org.xml.sax.SAXParseException: The reference to entity
> "textline" must end with the ';' delimiter.
>        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)
>        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
> Source)
>        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>        at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
>        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
>        ... 37 more
>

Mime
View raw message