What version of Camel do you use. And what is the real stacktrace printed

And what is the *actual* url you call. As that plain string should be parsable.



On Thu, Mar 24, 2016 at 10:39 AM, Martin Lichtin
<[email protected]> wrote:
> When using a producer template to send messages to a JMS queue, such as
>
>
>         producerTemplate.sendBodyAndHeaders("jms:queue:myQ", body, headers);
>
> we see how this internally always creates an exception:
>
>
> java.lang.Throwable.<init>(String) line: 267
>  java.lang.Exception.<init>(String) line: 52
>        java.net.URISyntaxException.<init>(String, String, int) line: 62
>            java.net.URI$Parser.fail(String, int) line: 2848
>                java.net.URI$Parser.checkChars(int, int, long, long, String) 
> line: 3021
>                    java.net.URI$Parser.parseServer(int, int) line: 3245
>                        java.net.URI$Parser.parseAuthority(int, int) line: 3155
>                            java.net.URI$Parser.parseHierarchical(int, int) 
> line: 3097
>                                java.net.URI$Parser.parse(boolean) line: 3053
>          java.net.URI.<init>(String) line: 588
>                                        
> org.apache.camel.util.URISupport.normalizeUri(String) line: 534
>                                            
> org.apache.camel.impl.DefaultCamelContext.normalizeEndpointUri(String) line: 
> 649
>                                                
> org.apache.camel.impl.EndpointKey.<init>(String) line: 30
>                                                    
> org.apache.camel.impl.DefaultCamelContext.getEndpointKey(String) line: 663
>                                                        
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(String) line: 539
>                                                            
> org.apache.camel.impl.DefaultProducerTemplate.resolveMandatoryEndpoint(String)
>  line: 453
>                                                                
> org.apache.camel.impl.DefaultProducerTemplate.sendBodyAndHeaders(String, 
> Object, Map) line: 229
>
> Could the producer template be used differently to avoid this?



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to