1. Sebastian Sdorra
  2. scm-manager
Issue #399 invalid

Getting "HTTP Error 400: Bad request" on pull/push attempts

Anonymous created an issue

Good day. It appears we encounter the very similar problem to the one described in issue 177. The differences are - our application server is jetty, and increasing request/response header and bufer sizes does not really seem to affect anything. Here is the exception that occures with every pull attempt:

ERROR sonia.scm.util.IOUtil - null
org.eclipse.jetty.io.EofException: null
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:952) ~[na:na]
    at org.eclipse.jetty.server.AbstractHttpConnection.flushResponse(AbstractHttpConnection.java:612) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$Output.close(AbstractHttpConnection.java:1001) ~[na:na]
    at sonia.scm.util.IOUtil.close(IOUtil.java:119) ~[scm-core-1.16.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:410) [classes/:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:186) [classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) [scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.write0(Native Method) ~[na:1.7.0_17]
    at sun.nio.ch.SocketDispatcher.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0_17]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:288) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:355) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:888) ~[na:na]
    ... 80 common frames omitted
11:30:17.329 [qtp2082789522-25693] ERROR sonia.scm.web.HgCGIExceptionHandler - not able to handle mercurial request
org.eclipse.jetty.io.EofException: null
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:952) ~[na:na]
    at org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:518) ~[na:na]
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:159) ~[na:na]
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101) ~[na:na]
    at com.google.common.io.ByteStreams.copy(ByteStreams.java:200) ~[guava-12.0.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:403) ~[classes/:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:186) ~[classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) [scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.write0(Native Method) ~[na:1.7.0_17]
    at sun.nio.ch.SocketDispatcher.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0_17]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:288) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:355) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:888) ~[na:na]
    ... 81 common frames omitted
11:30:17.345 [qtp2082789522-25693] ERROR sonia.scm.web.HgCGIExceptionHandler - not able to handle mercurial request
java.lang.IllegalStateException: STREAM
    at org.eclipse.jetty.server.Response.getWriter(Response.java:673) ~[jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at sonia.scm.web.HgCGIExceptionHandler.sendError(HgCGIExceptionHandler.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIExceptionHandler.handleException(HgCGIExceptionHandler.java:115) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:190) ~[classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) ~[scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
11:30:17.345 [qtp2082789522-25693] WARN  sonia.scm.web.filter.PermissionFilter - wrong request at /scm/hg/poltava send redirect
java.lang.IllegalStateException: STREAM
    at org.eclipse.jetty.server.Response.getWriter(Response.java:673) ~[na:na]
    at sonia.scm.web.HgCGIExceptionHandler.sendError(HgCGIExceptionHandler.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIExceptionHandler.handleException(HgCGIExceptionHandler.java:115) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) ~[scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
11:31:53.033 [qtp2082789522-26118] ERROR sonia.scm.util.IOUtil - null
org.eclipse.jetty.io.EofException: null
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:952) ~[na:na]
    at org.eclipse.jetty.server.AbstractHttpConnection.flushResponse(AbstractHttpConnection.java:612) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$Output.close(AbstractHttpConnection.java:1001) ~[na:na]
    at sonia.scm.util.IOUtil.close(IOUtil.java:119) ~[scm-core-1.16.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:410) [classes/:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:186) [classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) [scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.write0(Native Method) ~[na:1.7.0_17]
    at sun.nio.ch.SocketDispatcher.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0_17]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:288) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:355) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:336) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:330) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:879) ~[na:na]
    ... 80 common frames omitted
11:31:53.048 [qtp2082789522-26118] ERROR sonia.scm.web.HgCGIExceptionHandler - not able to handle mercurial request
org.eclipse.jetty.io.EofException: null
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:952) ~[na:na]
    at org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:518) ~[na:na]
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:182) ~[na:na]
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:101) ~[na:na]
    at com.google.common.io.ByteStreams.copy(ByteStreams.java:200) ~[guava-12.0.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:403) ~[classes/:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:186) ~[classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) [scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) [scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.write0(Native Method) ~[na:1.7.0_17]
    at sun.nio.ch.SocketDispatcher.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.IOUtil.write(Unknown Source) ~[na:1.7.0_17]
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[na:1.7.0_17]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:288) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:355) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:336) ~[na:na]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:330) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:879) ~[na:na]
    ... 81 common frames omitted
11:31:53.048 [qtp2082789522-26118] ERROR sonia.scm.web.HgCGIExceptionHandler - not able to handle mercurial request
java.lang.IllegalStateException: STREAM
    at org.eclipse.jetty.server.Response.getWriter(Response.java:673) ~[jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at sonia.scm.web.HgCGIExceptionHandler.sendError(HgCGIExceptionHandler.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIExceptionHandler.handleException(HgCGIExceptionHandler.java:115) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.cgi.DefaultCGIExecutor.execute(DefaultCGIExecutor.java:190) ~[classes/:na]
    at sonia.scm.web.HgCGIServlet.process(HgCGIServlet.java:300) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.handleRequest(HgCGIServlet.java:217) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:190) ~[scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]
11:31:53.048 [qtp2082789522-26118] WARN  sonia.scm.web.filter.PermissionFilter - wrong request at /scm/hg/poltava send redirect
java.lang.IllegalStateException: STREAM
    at org.eclipse.jetty.server.Response.getWriter(Response.java:673) ~[na:na]
    at sonia.scm.web.HgCGIExceptionHandler.sendError(HgCGIExceptionHandler.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIExceptionHandler.handleException(HgCGIExceptionHandler.java:115) ~[scm-hg-plugin-1.16.jar:na]
    at sonia.scm.web.HgCGIServlet.service(HgCGIServlet.java:194) ~[scm-hg-plugin-1.16.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet-2.5.0.v201103041518.jar:na]
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.PermissionFilter.doFilter(PermissionFilter.java:153) ~[scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.web.filter.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:139) [scm-core-1.16.jar:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:100) [classes/:na]
    at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102) [scm-core-1.16.jar:na]
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) [guice-servlet-3.0.jar:na]
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) [guice-servlet-3.0.jar:na]
    at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:104) [classes/:na]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1332) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524) [jetty-security-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406) [jetty-servlet-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.Server.handle(Server.java:348) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:452) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:884) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:938) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230) [jetty-http-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) [jetty-server-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-7.6.4.v20120524.jar:7.6.4.v20120524]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_17]

Any help would be very appreciated.

Comments (8)

  1. Alexey Trofimov

    Thank you for your response. The situation is a little bit complicated. First, the same error occurs with the clone attempt, though it can be resolved by using --uncompressed option. Second, I've been wrong when I said increasing buffer sizes didn't make any changes - now it became possible to make pull/push of the specified branch, i.e. using --branch option; but generall pull/push still doesn't work. Here is the server-config.xml we use:

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    
        Copyright (c) 2010, Sebastian Sdorra
        All rights reserved.
    
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
    
        1. Redistributions of source code must retain the above copyright notice,
           this list of conditions and the following disclaimer.
        2. Redistributions in binary form must reproduce the above copyright notice,
           this list of conditions and the following disclaimer in the documentation
           and/or other materials provided with the distribution.
        3. Neither the name of SCM-Manager; nor the names of its
           contributors may be used to endorse or promote products derived from this
           software without specific prior written permission.
    
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
        DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
        LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
        ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    
        http://bitbucket.org/sdorra/scm-manager
    
    
    -->
    
    <!--
        Document   : server-config.xml
        Created on : January 20, 2011, 6:05 PM
        Author     : sdorra
        Description:
            Purpose of the document follows.
    -->
    
    <Configure class="org.eclipse.jetty.server.Server">
    
      <Call name="addConnector">
        <Arg>
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="host">
              <SystemProperty name="jetty.host" />
            </Set>
            <Set name="port">
              <SystemProperty name="jetty.port" default="7788" />
            </Set>
    <Set name="requestHeaderSize">65536</Set>
    <Set name="responseHeaderSize">65536</Set>
    <Set name="requestBufferSize">65536</Set>
    <Set name="responseBufferSize">65536</Set>
            <!-- for mod_proxy -->
            <!--
            <Set name="forwarded">true</Set>
            -->
          </New>
        </Arg>
      </Call>
    
      <New id="scm-webapp" class="org.eclipse.jetty.webapp.WebAppContext">
        <Set name="contextPath">/scm</Set>
        <Set name="war"><SystemProperty name="basedir" default="."/>/var/webapp/scm-webapp.war</Set>
      </New>
    
      <New id="docroot" class="org.eclipse.jetty.webapp.WebAppContext">
        <Set name="contextPath">/</Set>
        <Set name="baseResource">
          <New class="org.eclipse.jetty.util.resource.ResourceCollection">
            <Arg>
              <Array type="java.lang.String">
                <Item><SystemProperty name="basedir" default="."/>/var/webapp/docroot</Item>
              </Array>
            </Arg>
          </New>
        </Set>
      </New>
    
      <Set name="handler">
        <New class="org.eclipse.jetty.server.handler.HandlerCollection">
          <Set name="handlers">
            <Array type="org.eclipse.jetty.server.Handler">
              <Item>
                <Ref id="scm-webapp" />
              </Item>
              <Item>
                <Ref id="docroot" />
              </Item>
            </Array>
          </Set>
        </New>
      </Set>
    
      <!-- mod_proxy_ajp or mod_jk -->
      <!--
      <Call name="addConnector">
        <Arg>
           <New class="org.eclipse.jetty.ajp.Ajp13SocketConnector">
             <Set name="port">8009</Set>
           </New>
        </Arg>
      </Call>
      -->
    
      <!-- SSL-Connector -->
      <!--
         Documentation for the SSL-Connector: 
         http://wiki.eclipse.org/Jetty/Reference/SSL_Connectors
      -->
      <!--
      <Call name="addConnector">
        <Arg>
          <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
            <Set name="Port">8181</Set>
            <Set name="maxIdleTime">30000</Set>
    <Set name="requestHeaderSize">65536</Set>
    <Set name="responseHeaderSize">65536</Set>
    <Set name="requestBufferSize">65536</Set>
    <Set name="responseBufferSize">65536</Set>
            <Set name="keystore"><SystemProperty name="basedir" default="." />/conf/keystore.jks</Set>
            <Set name="password">OBF:xxx</Set>
            <Set name="keyPassword">OBF:xxx</Set>
            <Set name="truststore"><SystemProperty name="basedir" default="." />/conf/keystore.jks</Set>
            <Set name="trustPassword">OBF:xxx</Set>
          </New>
        </Arg>
      </Call>
      -->
    
      <!-- JMX support -->
      <!--
      <Call id="MBeanServer" class="java.lang.management.ManagementFactory"
        name="getPlatformMBeanServer" />
    
      <New id="MBeanContainer" class="org.eclipse.jetty.jmx.MBeanContainer">
        <Arg>
          <Ref id="MBeanServer" />
        </Arg>
      </New>
    
      <Get id="Container" name="container">
        <Call name="addEventListener">
          <Arg>
            <Ref id="MBeanContainer" />
          </Arg>
        </Call>
      </Get>
      -->
    
    </Configure>
    
  2. Sebastian Sdorra repo owner

    Please check if the repository has any problems. Go to .scm/repositories/yourrepository and run the following command:

    hg verify
    

    Please make a push/pull with the --debug option and post the output. Which version of scm-manager and mercurial (client and server) do you use?

  3. Alexey Trofimov

    The repository doesn't seem to have any problems. The scm version is 1.16 The mercurial server version is 2.4.2 The mercurial client is one installed together with TortoiseHG 2.8, so it must be 2.6.2 I think. Here is the log of pull/push attempt:

    C:\wu\poltava3>hg --debug --traceback pull
    using http://colocation.it.ru:7788/scm/hg/poltava/
    sending capabilities command
    [HgKeyring] Keyring URL: http://colocation.it.ru:7788/scm/hg/poltava/
    Username not specified in .hg/hgrc. Keyring will not be used.
    http authorization required
    realm: SONIA :: SCM Manager
    user: 
    password:
    [HgKeyring] Manually entered password. Url: http://colocation.it.ru:7788/scm/hg/
    poltava/, user: *******, passwd: *********
    pulling from http://colocation.it.ru:7788/scm/hg/poltava/
    preparing listkeys for "bookmarks"
    sending listkeys command
    [HgKeyring] Keyring URL: http://colocation.it.ru:7788/scm/hg/poltava/
    [HgKeyring] Cached auth data found. Url: http://colocation.it.ru:7788/scm/hg/pol
    tava/, user: ********, passwd: *********
    query 1; heads
    sending batch command
    [HgKeyring] Keyring URL: http://colocation.it.ru:7788/scm/hg/poltava/
    [HgKeyring] Cached auth data found. Url: http://colocation.it.ru:7788/scm/hg/pol
    tava/, user: *******, passwd: *********
    Traceback (most recent call last):
      File "mercurial\dispatch.pyo", line 88, in _runcatch
      File "mercurial\dispatch.pyo", line 771, in _dispatch
      File "mercurial\dispatch.pyo", line 540, in runcommand
      File "mercurial\dispatch.pyo", line 866, in _runcommand
      File "mercurial\dispatch.pyo", line 837, in checkargs
      File "mercurial\dispatch.pyo", line 766, in <lambda>
      File "mercurial\util.pyo", line 506, in check
      File "mercurial\commands.pyo", line 4543, in pull
      File "mercurial\localrepo.pyo", line 1662, in pull
      File "mercurial\discovery.pyo", line 46, in findcommonincoming
      File "mercurial\setdiscovery.pyo", line 105, in findcommonheads
      File "mercurial\wireproto.pyo", line 76, in submit
      File "mercurial\wireproto.pyo", line 78, in _submitreq
      File "mercurial\wireproto.pyo", line 160, in _submitbatch
      File "mercurial\httppeer.pyo", line 171, in _call
      File "mercurial\httppeer.pyo", line 118, in _callstream
      File "urllib2.pyo", line 406, in open
      File "urllib2.pyo", line 519, in http_response
      File "urllib2.pyo", line 438, in error
      File "urllib2.pyo", line 378, in _call_chain
      File "urllib2.pyo", line 890, in http_error_401
      File "mercurial\url.pyo", line 431, in http_error_auth_reqed
      File "hgext\mercurial_keyring.pyo", line 364, in basic_http_error_auth_reqed
      File "urllib2.pyo", line 865, in http_error_auth_reqed
      File "urllib2.pyo", line 878, in retry_http_basic_auth
      File "urllib2.pyo", line 406, in open
      File "urllib2.pyo", line 519, in http_response
      File "urllib2.pyo", line 444, in error
      File "urllib2.pyo", line 378, in _call_chain
      File "urllib2.pyo", line 527, in http_error_default
    HTTPError: HTTP Error 400: Bad Request
    abort: HTTP Error 400: Bad Request
    
    C:\wu\poltava3>hg --debug --traceback push
    pushing to http://colocation.it.ru:7788/scm/hg/poltava/
    using http://colocation.it.ru:7788/scm/hg/poltava/
    sending capabilities command
    [HgKeyring] Keyring URL: http://colocation.it.ru:7788/scm/hg/poltava/
    Username not specified in .hg/hgrc. Keyring will not be used.
    http authorization required
    realm: SONIA :: SCM Manager
    user: 
    password:
    [HgKeyring] Manually entered password. Url: http://colocation.it.ru:7788/scm/hg/
    poltava/, user: *******, passwd: *********
    query 1; heads
    sending batch command
    [HgKeyring] Keyring URL: http://colocation.it.ru:7788/scm/hg/poltava/
    [HgKeyring] Cached auth data found. Url: http://colocation.it.ru:7788/scm/hg/pol
    tava/, user: *******, passwd: *********
    Traceback (most recent call last):
      File "mercurial\dispatch.pyo", line 88, in _runcatch
      File "mercurial\dispatch.pyo", line 771, in _dispatch
      File "mercurial\dispatch.pyo", line 540, in runcommand
      File "mercurial\dispatch.pyo", line 866, in _runcommand
      File "mercurial\dispatch.pyo", line 837, in checkargs
      File "mercurial\dispatch.pyo", line 766, in <lambda>
      File "mercurial\util.pyo", line 506, in check
      File "mercurial\commands.pyo", line 4639, in push
      File "mercurial\localrepo.pyo", line 1799, in push
      File "mercurial\discovery.pyo", line 46, in findcommonincoming
      File "mercurial\setdiscovery.pyo", line 105, in findcommonheads
      File "mercurial\wireproto.pyo", line 76, in submit
      File "mercurial\wireproto.pyo", line 78, in _submitreq
      File "mercurial\wireproto.pyo", line 160, in _submitbatch
      File "mercurial\httppeer.pyo", line 171, in _call
      File "mercurial\httppeer.pyo", line 118, in _callstream
      File "urllib2.pyo", line 406, in open
      File "urllib2.pyo", line 519, in http_response
      File "urllib2.pyo", line 438, in error
      File "urllib2.pyo", line 378, in _call_chain
      File "urllib2.pyo", line 890, in http_error_401
      File "mercurial\url.pyo", line 431, in http_error_auth_reqed
      File "hgext\mercurial_keyring.pyo", line 364, in basic_http_error_auth_reqed
      File "urllib2.pyo", line 865, in http_error_auth_reqed
      File "urllib2.pyo", line 878, in retry_http_basic_auth
      File "urllib2.pyo", line 406, in open
      File "urllib2.pyo", line 519, in http_response
      File "urllib2.pyo", line 444, in error
      File "urllib2.pyo", line 378, in _call_chain
      File "urllib2.pyo", line 527, in http_error_default
    HTTPError: HTTP Error 400: Bad Request
    abort: HTTP Error 400: Bad Request
    
  4. Sebastian Sdorra repo owner

    Version 1.16 is over an year old and there ware a lot of fixes for mercurial. Could you please test the behaviour with version 1.31 and the same repository? Just start the new version on the same server, but on a different port and with a different home. After you have started the new version create the repository and try the push.

  5. Log in to comment