I am using camel netty4-http and getting the following exception because the
query string my server is receiving ends with '&'. Since I cannot control
the URLs my server receives, I need to get around this issue. As far as I
know most sites simply ignore the trailing & at the end of query string.


23769 [Camel (camel-1) thread #0 - NettyEventExecutorGroup] WARN  - Closing
channel as an exception was thrown from Netty
java.net.URISyntaxException: Invalid uri syntax: Trailing & marker found.
Check the uri and remove the trailing & marker.:
version=765&responseencoding=JSON&appid=xxxxxxx&siteid=0&callname=xxxx&ItemID=131334609454&IncludeSelector=Details&
        at org.apache.camel.util.URISupport.parseQuery(URISupport.java:153)
~[camel-core-2.15.1.jar:2.15.1]
        at org.apache.camel.util.URISupport.parseQuery(URISupport.java:133)
~[camel-core-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.http.DefaultNettyHttpBinding.populateCamelHeaders(DefaultNettyHttpBinding.java:182)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.http.RestNettyHttpBinding.populateCamelHeaders(RestNettyHttpBinding.java:50)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.http.DefaultNettyHttpBinding.toCamelMessage(DefaultNettyHttpBinding.java:89)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.http.NettyHttpEndpoint.createExchange(NettyHttpEndpoint.java:103)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.handlers.ServerChannelHandler.channelRead0(ServerChannelHandler.java:87)
~[camel-netty4-2.15.1.jar:2.15.1]
        at
org.apache.camel.component.netty4.http.handlers.HttpServerChannelHandler.channelRead0(HttpServerChannelHandler.java:202)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
~[netty-transport-4.0.26.Final.jar:4.0.26.Final]
        at
org.apache.camel.component.netty4.http.handlers.HttpServerMultiplexChannelHandler.channelRead0(HttpServerMultiplexChannelHandler.java:119)
~[camel-netty4-http-2.15.1.jar:2.15.1]
        at
io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
~[netty-transport-4.0.26.Final.jar:4.0.26.Final]
        at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
[netty-transport-4.0.26.Final.jar:4.0.26.Final]
        at
io.netty.channel.AbstractChannelHandlerContext.access$600(AbstractChannelHandlerContext.java:32)
[netty-transport-4.0.26.Final.jar:4.0.26.Final]
        at
io.netty.channel.AbstractChannelHandlerContext$7.run(AbstractChannelHandlerContext.java:329)
[netty-transport-4.0.26.Final.jar:4.0.26.Final]
        at
io.netty.util.concurrent.DefaultEventExecutor.run(DefaultEventExecutor.java:36)
[netty-common-4.0.26.Final.jar:4.0.26.Final]
        at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
[netty-common-4.0.26.Final.jar:4.0.26.Final]
        at java.lang.Thread.run(Thread.java:744) [na:1.7.0-45]



--
View this message in context: 
http://camel.465427.n5.nabble.com/URISyntaxException-Invalid-uri-syntax-Trailing-marker-found-tp5766256.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to