[CONF] Apache Camel: Exception - org.xml.sax.SAXParseException (page edited)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[CONF] Apache Camel: Exception - org.xml.sax.SAXParseException (page edited)

Dhiraj Bokde (Confluence)

Exception - org.xml.sax.SAXParseException has been edited by Gert Vanthienen (May 29, 2008).

(View changes)

Content:

Exception: org.xml.sax.SAXParseException

The reference to entity "..." must end with the ';' delimiter.

In the URIs used for specifying Camel endpoints, the & is used to separate the parameters. However, & also is a reserved character in XML.
Because of this, you have to replace all & in your URIs by & when using the Spring XML syntax to configure Camel routes.

An example: this snippet of code in the DSL...

from("timer://myTimer?fixedRate=true&delay=0&period=2000")

...matches this example in the Spring XML syntax

<from>timer://myTimer?fixedRate=true&amp;delay=0&amp;period=2000</from>