netty4-http: IllegalArgumentException: port out of range:-1

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

netty4-http: IllegalArgumentException: port out of range:-1

kuro
camel 2.17.0

  @Override
    public void configure() throws Exception {
        from("direct:in")
                .setHeader(Exchange.HTTP_METHOD, constant("GET"))
                .to("netty4-http:http://camel.apache.org/")
                .to("log:test");

    }


java.lang.IllegalArgumentException: port out of range:-1

        at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
        at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
        at org.apache.camel.component.netty4.NettyProducer.openConnection(NettyProducer.java:412)
        at org.apache.camel.component.netty4.NettyProducer$NettyProducerPoolableObjectFactory.makeObject(NettyProducer.java:542)
        at org.apache.camel.component.netty4.NettyProducer$NettyProducerPoolableObjectFactory.makeObject(NettyProducer.java:538)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
        at org.apache.camel.component.netty4.NettyProducer.process(NettyProducer.java:206)
        at org.apache.camel.component.netty4.http.NettyHttpProducer.process(NettyHttpProducer.java:52)
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
        at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:68)
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:412)
        at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:380)
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:270)
        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:380)
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:205)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:119)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:105)



Reply | Threaded
Open this post in threaded view
|

Re: netty4-http: IllegalArgumentException: port out of range:-1

kuro
Reply | Threaded
Open this post in threaded view
|

Re: netty4-http: IllegalArgumentException: port out of range:-1

Claus Ibsen-2
In reply to this post by kuro
Hi

Thanks for reporting. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-9779

On Wed, Mar 30, 2016 at 1:37 AM, kuro <[hidden email]> wrote:

> camel 2.17.0
>
>   @Override
>     public void configure() throws Exception {
>         from("direct:in")
>                 .setHeader(Exchange.HTTP_METHOD, constant("GET"))
>                 .to("netty4-http:http://camel.apache.org/")
>                 .to("log:test");
>
>     }
>
>
> java.lang.IllegalArgumentException: port out of range:-1
>
>         at java.net.InetSocketAddress.checkPort(InetSocketAddress.java:143)
>         at java.net.InetSocketAddress.<init>(InetSocketAddress.java:224)
>         at
> org.apache.camel.component.netty4.NettyProducer.openConnection(NettyProducer.java:412)
>         at
> org.apache.camel.component.netty4.NettyProducer$NettyProducerPoolableObjectFactory.makeObject(NettyProducer.java:542)
>         at
> org.apache.camel.component.netty4.NettyProducer$NettyProducerPoolableObjectFactory.makeObject(NettyProducer.java:538)
>         at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
>         at
> org.apache.camel.component.netty4.NettyProducer.process(NettyProducer.java:206)
>         at
> org.apache.camel.component.netty4.http.NettyHttpProducer.process(NettyHttpProducer.java:52)
>         at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145)
>         at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
>         at
> org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:62)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)
>         at
> org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:68)
>         at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:412)
>         at
> org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:380)
>         at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:270)
>         at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:380)
>         at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:205)
>         at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:119)
>         at
> org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:105)
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/netty4-http-IllegalArgumentException-port-out-of-range-1-tp5779995.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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