You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by XiLai Dai <xl...@talend.com> on 2014/04/10 08:42:40 UTC
Weather component uri problem in case using it in spring/blueprint
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
RE: Weather component uri problem in case using it in
spring/blueprint
Posted by XiLai Dai <xl...@talend.com>.
It's my fault, I forgot to escape the xml letters in case using it in spring/blueprint!
Thanks Claus!
-----Original Message-----
From: Claus Ibsen [mailto:claus.ibsen@gmail.com]
Sent: Thursday, April 10, 2014 2:49 PM
To: users@camel.apache.org
Subject: Re: Weather component uri problem in case using it in spring/blueprint
Hi
Is it because & must be escaped as & in XML ? eg &mode=xml
On Thu, Apr 10, 2014 at 8:42 AM, XiLai Dai <xl...@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/
Re: Weather component uri problem in case using it in spring/blueprint
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Is it because & must be escaped as & in XML ? eg &mode=xml
On Thu, Apr 10, 2014 at 8:42 AM, XiLai Dai <xl...@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/