Camel
  1. Camel
  2. CAMEL-5227

Camel 2.9.2 jetty component no longer works with Jetty 7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: 2.9.3, 2.10.0
    • Component/s: camel-jetty
    • Labels:
      None
    • Estimated Complexity:
      Novice
    • Regression:
      Regression

      Description

      When attempting to create a camel-jetty endpoint in Camel 2.9.2, the following exception is thrown:

      java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletContextHandler.addFilter(Lorg/eclipse/jetty/servlet/FilterHolder;Ljava/lang/String;Ljava/util/EnumSet;)V
      at org.apache.camel.component.jetty.JettyHttpComponent.enableMultipartFilter(JettyHttpComponent.java:407)
          at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:325)
          at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:148)
          at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56)
          at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
          at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1707)
          at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1979)
          at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1934)
          at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1862)
          at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1646)
          at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1533)
          at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420)
          at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
          at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
          at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
      .
      .
      .
      

      This appears to be a regression of a caused by the this merge from trunk, which I suspect requires Jetty 8 to be used.

      Creating the endpoint under 2.9.1 works fine.

        Issue Links

          Activity

          Scott Parkerson created issue -
          Scott Parkerson made changes -
          Field Original Value New Value
          Description When attempting to create a camel-jetty endpoint in Camel 2.9.2, the following exception is thrown:
          {noformat}
          java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletContextHandler.addFilter(Lorg/eclipse/jetty/servlet/FilterHolder;Ljava/lang/String;Ljava/util/EnumSet;)V at org.apache.camel.component.jetty.JettyHttpComponent.enableMultipartFilter(JettyHttpComponent.java:407)
              at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:325)
              at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:148)
              at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1707) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1979)
              at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1934) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1862) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1646)
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1533) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
              at org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:410)
              at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:277)
              at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:204)
          .
          .
          .
          {noformat}

          This appears to be a regression of a caused by the [https://fisheye6.atlassian.com/changelog/camel?cs=1307901|this merge from trunk], which I suspect requires Jetty 8 to be used.

          Creating the endpoint under 2.9.1 works fine.

          When attempting to create a camel-jetty endpoint in Camel 2.9.2, the following exception is thrown:
          {noformat}
          java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletContextHandler.addFilter(Lorg/eclipse/jetty/servlet/FilterHolder;Ljava/lang/String;Ljava/util/EnumSet;)V at org.apache.camel.component.jetty.JettyHttpComponent.enableMultipartFilter(JettyHttpComponent.java:407)
              at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:325)
              at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:148)
              at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1707) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1979)
              at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1934) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1862) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1646)
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1533) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
              at org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:410)
              at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:277)
              at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:204)
          .
          .
          .
          {noformat}

          This appears to be a regression of a caused by the [this merge from trunk|https://fisheye6.atlassian.com/changelog/camel?cs=1307901], which I suspect requires Jetty 8 to be used.

          Creating the endpoint under 2.9.1 works fine.

          Scott Parkerson made changes -
          Description When attempting to create a camel-jetty endpoint in Camel 2.9.2, the following exception is thrown:
          {noformat}
          java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletContextHandler.addFilter(Lorg/eclipse/jetty/servlet/FilterHolder;Ljava/lang/String;Ljava/util/EnumSet;)V at org.apache.camel.component.jetty.JettyHttpComponent.enableMultipartFilter(JettyHttpComponent.java:407)
              at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:325)
              at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:148)
              at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1707) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1979)
              at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1934) at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1862) at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1646)
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1533) at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420) at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
              at org.apache.camel.test.junit4.CamelTestSupport.startCamelContext(CamelTestSupport.java:410)
              at org.apache.camel.test.junit4.CamelTestSupport.doSetUp(CamelTestSupport.java:277)
              at org.apache.camel.test.junit4.CamelTestSupport.setUp(CamelTestSupport.java:204)
          .
          .
          .
          {noformat}

          This appears to be a regression of a caused by the [this merge from trunk|https://fisheye6.atlassian.com/changelog/camel?cs=1307901], which I suspect requires Jetty 8 to be used.

          Creating the endpoint under 2.9.1 works fine.

          When attempting to create a camel-jetty endpoint in Camel 2.9.2, the following exception is thrown:
          {noformat}
          java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletContextHandler.addFilter(Lorg/eclipse/jetty/servlet/FilterHolder;Ljava/lang/String;Ljava/util/EnumSet;)V
          at org.apache.camel.component.jetty.JettyHttpComponent.enableMultipartFilter(JettyHttpComponent.java:407)
              at org.apache.camel.component.jetty.JettyHttpComponent.connect(JettyHttpComponent.java:325)
              at org.apache.camel.component.http.HttpEndpoint.connect(HttpEndpoint.java:148)
              at org.apache.camel.component.http.HttpConsumer.doStart(HttpConsumer.java:56)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
              at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1707)
              at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1979)
              at org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1934)
              at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1862)
              at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1646)
              at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1533)
              at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1420)
              at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)
              at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
              at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1388)
          .
          .
          .
          {noformat}

          This appears to be a regression of a caused by the [this merge from trunk|https://fisheye6.atlassian.com/changelog/camel?cs=1307901], which I suspect requires Jetty 8 to be used.

          Creating the endpoint under 2.9.1 works fine.

          Claus Ibsen made changes -
          Fix Version/s 2.9.3 [ 12320750 ]
          Fix Version/s 2.10.0 [ 12317612 ]
          Claus Ibsen made changes -
          Link This issue is broken by CAMEL-5016 [ CAMEL-5016 ]
          Claus Ibsen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Claus Ibsen [ davsclaus ]
          Resolution Fixed [ 1 ]
          Scott Parkerson made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Claus Ibsen
              Reporter:
              Scott Parkerson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development