You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by xiangqiuzhao <xi...@gmail.com> on 2011/09/22 04:03:29 UTC
endpoint URI can't parsed failed use utf-8?
[java] Caused by: org.apache.camel.ResolveEndpointFailedException:
Failed to resolve endpoint: sunlink:/
0.0.0.0:5090?backLog=100&fileDir=runtime%2Ffiles&localNode=999&logDir=runtime%2Flogs&poolQueueDepth=10&poolSi
e=20&remoteNode=000&version=2 due to: Invalid byte 1 of 1-byte UTF-8
sequence.
[java] at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:450)
[java] at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
[java] at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:180)
[java] at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
[java] at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
[java] at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
[java] at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
[java] at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:793)
[java] at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
[java] ... 15 more
my URI is java.lang.String and have not chinese chars, why byte invalid ?
--
View this message in context: http://camel.465427.n5.nabble.com/endpoint-URI-can-t-parsed-failed-use-utf-8-tp4828633p4828633.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: endpoint URI can't parsed failed use utf-8?
Posted by Ioannis Canellos <io...@gmail.com>.
>
> my URI is java.lang.String and have not chinese chars, why byte invalid ?
Some times the invalid chars are not printable/visible. It's rare but maybe
you could rewrite (not copy&paste) the entire uri and see if that gets you
anywhere.
--
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>
**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/> Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
*
Re: endpoint URI can't parsed failed use utf-8?
Posted by Willem Jiang <wi...@gmail.com>.
Which version of Camel are you using ?
There are some changes on the URI encoding of the endpoint in the Camel
2.9-SNAPSHOT.
On 9/22/11 10:03 AM, xiangqiuzhao wrote:
> [java] Caused by: org.apache.camel.ResolveEndpointFailedException:
> Failed to resolve endpoint: sunlink:/
> 0.0.0.0:5090?backLog=100&fileDir=runtime%2Ffiles&localNode=999&logDir=runtime%2Flogs&poolQueueDepth=10&poolSi
> e=20&remoteNode=000&version=2 due to: Invalid byte 1 of 1-byte UTF-8
> sequence.
> [java] at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:450)
> [java] at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:47)
> [java] at
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:180)
> [java] at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
> [java] at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
> [java] at
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
> [java] at
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
> [java] at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:793)
> [java] at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
> [java] ... 15 more
>
> my URI is java.lang.String and have not chinese chars, why byte invalid ?
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/endpoint-URI-can-t-parsed-failed-use-utf-8-tp4828633p4828633.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang