Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5766

Configuring jetty component with a different name dont work with jetty consumer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0, 2.10.0
    • 2.9.5, 2.10.3, 2.11.0
    • camel-jetty
    • None
    • Unknown

    Description

      For example if you do

      		<route>
      			<from uri="jetty2:http://localhost:9090/myapp"/>
      			<transform>
      				<simple>Hello ${body}</simple>
      			</transform>
      		</route>
      

      Then it fails with

      java.net.SocketException: Unresolved address
      	at sun.nio.ch.Net.translateToSocketException(Net.java:58)
      	at sun.nio.ch.Net.translateException(Net.java:84)
      	at sun.nio.ch.Net.translateException(Net.java:90)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:61)
      	at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
      	at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
      	at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:286)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
      	at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:315)
      	at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:149)
      	at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56)
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
      ...
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: