[ 
https://issues.apache.org/jira/browse/CAMEL-13028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-13028.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.21.4

> camel-undertow - When using SSL with rest-dsl and api-doc then you can get a 
> port already bound exception
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-13028
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13028
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-undertow
>    Affects Versions: 2.23.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 2.21.4, 2.22.3, 3.0.0, 2.24.0, 2.23.1
>
>
> For example this route cannot startup
> {code}
>       public void configure() throws Exception {
>               
> restConfiguration().scheme("https").component("undertow").port(7777).contextPath("/").host("0.0.0.0")
>             .apiContextPath("/swagger.json")
>                               .dataFormatProperty("prettyPrint", "true")
>                               .apiProperty("api.schemes", "https")
>                               .apiProperty("api.title", "Rest swagger")
>                               .apiProperty("api.description", "Camel Rest App 
> with Swagger");
>               rest("/user").get().to("direct:start");
>               from("direct:start").setBody().constant("Hi Camels");
>       }
> {code}
> With a
> {code}
> Caused by: java.net.BindException: Address already in use
>         at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_181]
>         at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_181]
>         at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_181]
>         at 
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
> ~[na:1.8.0_181]
>         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) 
> ~[na:1.8.0_181]
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to