camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Weather component uri problem in case using it in spring/blueprint
Date Thu, 10 Apr 2014 06:49:21 GMT
Hi

Is it because & must be escaped as &amp; in XML ? eg &amp;mode=xml

On Thu, Apr 10, 2014 at 8:42 AM, XiLai Dai <xldai@talend.com> wrote:
> Hi,
>
> With this blueprint configuration:
>
> <camelContext id="sample-context" xmlns="http://camel.apache.org/schema/blueprint">
> <route id="sample-route">
>     <from uri="weather:foo?location=London&mode=xml" />
>     .......
> </route>
> </camelContext>
>
> Will get build error:
> [ERROR] Bundle org.talend.ipaas:camel-example-simple:bundle:0.0.1-SNAPSHOT : Unexpected
exception in processing spring r
> esources(OSGI-INF/blueprint/blueprint.xml): javax.xml.transform.TransformerException:
javax.xml.transform.TransformerExc
> eption: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: the reference
to "mode" must end with ";"
>
> but the same uri will work in java code without spring/blueprint.
>
> Is it an known issue or I'm missing something? Thanks
>
> Xilai Dai
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message