---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
<outbound>
<pass-through-router>
<file:outbound-endpoint
path="/#[mule:context.serviceName]#[mule:context.serviceName]"
outputPattern="Mule4Ever.txt"/>
</pass-through-router>
</outbound>
(obviously a toy example)
If i only use one expression in the path i'm golden
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23340564.html
That also doesn't work because path is used to build a URI. The issue is
the multiple # in the URI. My hacky solution is to ignore path completely
and simply set the whole path on outputPattern.
Stack trace is:
java.net.URISyntaxException: Illegal character in fragment at index 17:
file:///#[string:#[mule:context.serviceName]#[mule:context.serviceName]]
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3028)
at java.net.URI.<init>(URI.java:578)
at org.mule.endpoint.MuleEndpointURI.<init>(MuleEndpointURI.java:146)
at org.mule.endpoint.URIBuilder.getEndpoint(URIBuilder.java:173)
at
org.mule.endpoint.AbstractEndpointBuilder.getProperties(AbstractEndpointBuilder.java:265)
at
org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:164)
at
org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:93)
at
org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:86)
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23340708.html
Your stacktrace assumes you haven't called expressionManager.parse(). Is it really the case?
Andrew
P.S. nice to see you back on the lists :)
On May 1, 2009 6:24 PM, "Ross Paul" <ross...@mlb.com> wrote:
you mean like:
path="/#[string:#[mule:context.serviceName]#[mule:context.serviceName]]"
That also doesn't work because path is used to build a URI. The issue is
the multiple # in the URI. My hacky solution is to ignore path completely
and simply set the whole path on outputPattern.
Stack trace is:
java.net.URISyntaxException: Illegal character in fragment at index 17:
file:///#[string:#[mule:context.serviceName]#[mule:context.serviceName]]
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3028)
at java.net.URI.<init>(URI.java:578)
at org.mule.endpoint.MuleEndpointURI.<init>(MuleEndpointURI.java:146)
at org.mule.endpoint.URIBuilder.getEndpoint(URIBuilder.java:173)
at
org.mule.endpoint.AbstractEndpointBuilder.getProperties(AbstractEndpointBuilder.java:265)
at
org.mule.endpoint.AbstractEndpointBuilder.doBuildOutboundEndpoint(AbstractEndpointBuilder.java:164)
at
org.mule.endpoint.AbstractEndpointBuilder.buildOutboundEndpoint(AbstractEndpointBuilder.java:93)
at
org.mule.endpoint.DefaultEndpointFactory.getOutboundEndpoint(DefaultEndpointFactory.java:86)
Andrew Perepelytsya wrote: > > Have you tried nesting them in a #[string:] evaluator? This is ...
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23340708.html
Sent from the Mule - User mailing list archive at Nabble.com. ------------------------------------...
And i'm glad to be posting again (instead of just lurking!). Mule 2 has
been a delight to use
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23341240.html
Sent from the Mule - User mailing list archive at Nabble.com.
While i'm not in love with the syntax, it allows me to use multiple
expressions in a URI and preserves backwards computability with the current
syntax. Basically this allows:
address="file:///$@header:URI_SAFE$/$@header:URI_SAFE$"
or
address="file:///#[header:NOT_URI_SAFE_I_CAN_ONLY_USE_ONE_EXPRESSION]
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23371947.html
path="#[string:/#[mule:context.serviceName]#[mule:context.serviceName]]"
Alan Cassar, Software
Engineer | Tel: +356 21334457 | Fax: +356 21 334156
ricston Ltd., Northfields Suite 4, Independence Avenue,
Mosta MST9026 - MALTA
email: alan....@ricston.com | web:http://www.ricston.com
----------
Disclaimer - This email and any files transmitted with it
are confidential and contain privileged or copyright information. You
must not present this message to another party without first gaining
permission from the sender. If you are not the intended recipient you
must not copy, distribute or use this email or the information
contained in it for any purpose other than to notify us. If you have
received this message in error, please notify the sender immediately
and delete this email from your system. We do not guarantee that this
material is free from viruses or any other defects although due care
has been taken to minimise the risk. Any views stated in this
communication are those of the actual sender and not necessarily those
of Ricston Ltd. or its
subsidiaries.
Ross
Alan Cassar-2 wrote:
>
> try
>
> path="#[string:/#[mule:context.serviceName]#[mule:context.serviceName]]"
>
> Alan Cassar, Software Engineer | Tel: +356 21334457 | Fax: +356 21 334156
> ricston Ltd., Northfields Suite 4, Independence Avenue, Mosta MST9026 -
> MALTA
>
> email: alan....@ricston.com <mailto:alan....@ricston.com> |
> web:http://www.ricston.com <http://www.ricston.com/>
>
>
> ----------
> *Disclaimer* - This email and any files transmitted with it are
--
View this message in context: http://www.nabble.com/mule-expressions-and-URIs....---misery-tp23340332p23390949.html