Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5179

Maven proxy behavior broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Fabric8 v1
    • None
    • % %
    • Sprint 5 - towards ER2

      Recent upgrade to Jetty 9 might have broken our Maven Proxy based on Async servlet specification.

      The download of resources from local Maven proxy works fine for small archives, that possibly don't require a chunked transfer, but fails for large files, like fabri8-karaf artifact:

      You can see the following command succeed:

      wget http://172.17.0.2:8181/maven/download/io/fabric8/support/support-karaf/1.2.0.redhat-630033/support-karaf-1.2.0.redhat-630033.jar
      

      while this one fails:

      wget http://172.17.0.2:8181/maven/download/io/fabric8/fabric8-karaf/1.2.0.redhat-630033/fabric8-karaf-1.2.0.redhat-630033.zip
      

      with the following exception:

      2016-03-22 12:35:26,093 | WARN  | tp1419579772-407 | HttpChannel                      | 96 - org.eclipse.jetty.util - 9.2.14.v20151106 | /maven/download/io/fabric8/fabric8-karaf/1.2.0.redhat-630033/fabric8-karaf-1.2.0.redhat-630033.zip
      java.lang.IllegalStateException: Committed
      	at org.eclipse.jetty.server.Response.resetBuffer(Response.java:1243)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.Response.sendError(Response.java:567)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.Response.sendError(Response.java:544)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.servlet.ServletHandler$Default404Servlet.doGet(ServletHandler.java:1805)[94:org.eclipse.jetty.servlet:9.2.14.v20151106]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[81:javax.servlet-api:3.1.0]
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[81:javax.servlet-api:3.1.0]
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[94:org.eclipse.jetty.servlet:9.2.14.v20151106]
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[94:org.eclipse.jetty.servlet:9.2.14.v20151106]
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[117:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[92:org.eclipse.jetty.security:9.2.14.v20151106]
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[117:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[94:org.eclipse.jetty.servlet:9.2.14.v20151106]
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:99)[117:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.Server.handleAsync(Server.java:549)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:262)[93:org.eclipse.jetty.server:9.2.14.v20151106]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[96:org.eclipse.jetty.util:9.2.14.v20151106]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[96:org.eclipse.jetty.util:9.2.14.v20151106]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_95]
      
      

              ggrzybek Grzegorz Grzybek
              pantinor@redhat.com Paolo Antinori
              Emil Cervenan Emil Cervenan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: