branchwp plugin not working, giving back "unknown error" from scm-hook

Issue #922 open
Dirk Heinrichs
created an issue

Setup: scm-manager 1.53 installed from Debian package on Ubuntu Server 16.04 LTS, connected to AD via LDAP plugin.

Having two different groups in AD (say g1 and g2), I want only members of g1 to be able to push to "default" branch of a Mercurial repo. So I've set up general permissions as (g1, is_group, WRITE) and (g2, is_group, WRITE) to allow general write access for members of both groups. So far everything works fine.

Now, when I enable branchwp and add (default, g1, is_group) and (default, g2, is_group, deny), and try to push as member of either group, I get this:

% hg push
pushing to http://user@server/scm/hg/playground
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: ERROR: scm-hook failed with an unknown error
remote: transaction abort!
remote: rollback completed
remote: pretxnchangegroup.scm hook failed
abort: push failed on remote

Comments (14)

  1. Dirk Heinrichs reporter

    Seems the hook throws an NPE:

    2017-05-26 12:21:43.530 [qtp385242642-28] DEBUG com.aragost.javahg.internals.BlockInputStream - read o63: 'capabilities: getencoding runcommand
    encoding: UTF-8
    pid: 49779'
    2017-05-26 12:21:43.530 [qtp385242642-28] INFO  com.aragost.javahg.internals.Server - Command server started: /srv/scm/repositories/hg/playground
    2017-05-26 12:21:43.539 [qtp385242642-28] DEBUG com.aragost.javahg.internals.BlockInputStream - read e68: 'abort: unknown revision '077cc3307a4bab75566bc902890091dfc82d1ada'!
    '
    2017-05-26 12:21:43.539 [qtp385242642-28] DEBUG com.aragost.javahg.internals.OutputChannelInputStream - Command 'log' gave return code: 255
    2017-05-26 12:21:43.539 [qtp385242642-28] INFO  com.aragost.javahg.internals.Server - runcommand(9ms) log --debug -r 077cc3307a4bab75566bc902890091dfc82d1ada:tip --style /home/scm/.javahg/t
    mp/1495792096743-0/sonia/scm/styles/changesets-eager.style
    2017-05-26 12:21:43.540 [qtp385242642-28] ERROR sonia.scm.repository.spi.HgHookChangesetProvider - could not retrieve changesets
    com.aragost.javahg.commands.ExecutionException: unknown revision '077cc3307a4bab75566bc902890091dfc82d1ada'!
            at com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:386)
            at com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:179)
            at com.aragost.javahg.internals.OutputChannelInputStream.<init>(OutputChannelInputStream.java:78)
            at com.aragost.javahg.internals.Server.runCommand(Server.java:419)
            at com.aragost.javahg.internals.AbstractCommand.launchStream(AbstractCommand.java:176)
            at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.execute(HgLogChangesetCommand.java:111)
            at sonia.scm.repository.spi.HgHookChangesetProvider.handleRequest(HgHookChangesetProvider.java:111)
            at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:122)
            at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:132)
            at sonia.scm.repository.api.HgHookBranchProvider.getCreatedOrModified(HgHookBranchProvider.java:85)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkBranchProvider(BranchWPPreReceiveRepositoryHook.java:177)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkWithHookContext(BranchWPPreReceiveRepositoryHook.java:227)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.handleBranchWP(BranchWPPreReceiveRepositoryHook.java:264)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.onEvent(BranchWPPreReceiveRepositoryHook.java:110)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
            at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
            at com.google.common.eventbus.ThrowingEventBus.dispatch(ThrowingEventBus.java:77)
            at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
            at com.google.common.eventbus.EventBus.post(EventBus.java:267)
            at sonia.scm.event.GuavaScmEventBus.post(GuavaScmEventBus.java:100)
            at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:184)
            at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:190)
            at sonia.scm.web.HgHookCallbackServlet.fireHook(HgHookCallbackServlet.java:300)
            at sonia.scm.web.HgHookCallbackServlet.hookCallback(HgHookCallbackServlet.java:356)
            at sonia.scm.web.HgHookCallbackServlet.doPost(HgHookCallbackServlet.java:207)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
            at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
            at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.filter.MDCFilter.doFilter(MDCFilter.java:110)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.web.filter.AutoLoginFilter.doFilter(AutoLoginFilter.java:85)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
            at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
            at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
            at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
            at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
            at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
            at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
            at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
            at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:119)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)
            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
            at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
            at org.eclipse.jetty.server.Server.handle(Server.java:369)
            at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:464)
            at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:924)
            at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:985)
            at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
            at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
            at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
            at java.lang.Thread.run(Thread.java:748)
    2017-05-26 12:21:43.545 [qtp385242642-28] INFO  com.aragost.javahg.internals.Server - Command server stopped: /srv/scm/repositories/hg/playground
    2017-05-26 12:21:43.545 [qtp385242642-28] WARN  sonia.scm.web.HgHookCallbackServlet - hook ended with exception
    java.lang.NullPointerException: null
            at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:122)
            at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:132)
            at sonia.scm.repository.api.HgHookBranchProvider.getCreatedOrModified(HgHookBranchProvider.java:85)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkBranchProvider(BranchWPPreReceiveRepositoryHook.java:177)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkWithHookContext(BranchWPPreReceiveRepositoryHook.java:227)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.handleBranchWP(BranchWPPreReceiveRepositoryHook.java:264)
            at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.onEvent(BranchWPPreReceiveRepositoryHook.java:110)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
            at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
            at com.google.common.eventbus.ThrowingEventBus.dispatch(ThrowingEventBus.java:77)
            at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
            at com.google.common.eventbus.EventBus.post(EventBus.java:267)
            at sonia.scm.event.GuavaScmEventBus.post(GuavaScmEventBus.java:100)
            at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:184)
            at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:190)
            at sonia.scm.web.HgHookCallbackServlet.fireHook(HgHookCallbackServlet.java:300)
            at sonia.scm.web.HgHookCallbackServlet.hookCallback(HgHookCallbackServlet.java:356)
            at sonia.scm.web.HgHookCallbackServlet.doPost(HgHookCallbackServlet.java:207)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
            at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
            at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.filter.MDCFilter.doFilter(MDCFilter.java:110)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.web.filter.AutoLoginFilter.doFilter(AutoLoginFilter.java:85)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117)
            at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
            at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
            at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
            at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
            at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
            at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
            at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
            at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
            at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
            at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
            at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
            at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:119)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)
            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
            at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
            at org.eclipse.jetty.server.Server.handle(Server.java:369)
            at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:464)
            at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:924)
            at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:985)
            at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
            at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
            at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
            at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
            at java.lang.Thread.run(Thread.java:748)
    

    The "unknown revision" it's complaining about is the one that's about to be pushed.

  2. Sebastian Sdorra repo owner
    • changed status to open

    I don't thinks that this problem is related to the branchwp-plugin. It looks there is a general problem with mercurial hooks in your installation. Are you able to push with disabled branchwp-plugin?

  3. Onurcan Dönmez

    Hi again, thanks for reply. You can see belong our trace log of push request and server log.

    Push request trace a log

    http authorization required for http://10.0.1.127:8080/scm/hg/testproject
    realm: SONIA :: SCM Manager
    user: onur
    password: 
    http auth: user onur, password *******
    query 1; heads
    sending batch command
    searching for changes
    all remote heads known locally
    preparing listkeys for "phases"
    sending listkeys command
    received listkey for "phases": 15 bytes
    checking for updated bookmarks
    preparing listkeys for "bookmarks"
    sending listkeys command
    received listkey for "bookmarks": 0 bytes
    sending branchmap command
    sending branchmap command
    preparing listkeys for "bookmarks"
    sending listkeys command
    received listkey for "bookmarks": 0 bytes
    1 changesets found
    list of changesets:
    9a7dc0707718438afb519de1245349d7a8a41774
    bundle2-output-bundle: "HG20", 4 parts total
    bundle2-output-part: "replycaps" 168 bytes payload
    bundle2-output-part: "check:heads" streamed payload
    bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
    bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
    sending unbundle command
    sending 951 bytes
    bundle2-input-bundle: no-transaction
    bundle2-input-part: "output" (advisory) (params: 0 advisory) supported
    bundle2-input-part: total payload size 156
    remote: adding changesets
    remote: adding manifests
    remote: adding file changes
    remote: added 1 changesets with 1 changes to 1 files (+1 heads)
    remote: ERROR: scm-hook failed with an unknown error
    bundle2-input-part: "output" (advisory) supported
    bundle2-input-part: total payload size 38
    remote: transaction abort!
    remote: rollback completed
    bundle2-input-part: "error:abort" (params: 1 mandatory) supported
    bundle2-input-bundle: 2 parts total
    remote: pretxnchangegroup.scm hook failed
    abort: push failed on remote
    

    Server side log is:

    2019-02-19 13:55:13.249 [qtp1509514333-33] ERROR sonia.scm.repository.spi.HgHookChangesetProvider - could not retrieve changesets
    com.aragost.javahg.commands.ExecutionException: unknown revision '9a7dc0707718438afb519de1245349d7a8a41774'!
        at com.aragost.javahg.internals.AbstractCommand.handleReturnCode(AbstractCommand.java:387)
        at com.aragost.javahg.internals.OutputChannelInputStream.findNextOutputChannelBlock(OutputChannelInputStream.java:173)
        at com.aragost.javahg.internals.OutputChannelInputStream.<init>(OutputChannelInputStream.java:74)
        at com.aragost.javahg.internals.Server.runCommand(Server.java:408)
        at com.aragost.javahg.internals.AbstractCommand.launchStream(AbstractCommand.java:180)
        at sonia.scm.repository.spi.javahg.HgLogChangesetCommand.execute(HgLogChangesetCommand.java:111)
        at sonia.scm.repository.spi.HgHookChangesetProvider.handleRequest(HgHookChangesetProvider.java:112)
        at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:122)
        at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:132)
        at sonia.scm.repository.api.HgHookBranchProvider.getCreatedOrModified(HgHookBranchProvider.java:85)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkBranchProvider(BranchWPPreReceiveRepositoryHook.java:177)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkWithHookContext(BranchWPPreReceiveRepositoryHook.java:227)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.handleBranchWP(BranchWPPreReceiveRepositoryHook.java:264)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.onEvent(BranchWPPreReceiveRepositoryHook.java:110)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
        at com.google.common.eventbus.ThrowingEventBus.dispatch(ThrowingEventBus.java:77)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
        at sonia.scm.event.GuavaScmEventBus.post(GuavaScmEventBus.java:100)
        at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:184)
        at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:190)
        at sonia.scm.web.HgHookCallbackServlet.fireHook(HgHookCallbackServlet.java:301)
        at sonia.scm.web.HgHookCallbackServlet.hookCallback(HgHookCallbackServlet.java:356)
        at sonia.scm.web.HgHookCallbackServlet.doPost(HgHookCallbackServlet.java:207)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
        at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
        at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.filter.MDCFilter.doFilter(MDCFilter.java:110)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.web.filter.AutoLoginFilter.doFilter(AutoLoginFilter.java:85)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
        at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:119)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:369)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:464)
        at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:924)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:985)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:748)
    2019-02-19 13:55:13.262 [qtp1509514333-33] WARN  sonia.scm.web.HgHookCallbackServlet - hook ended with exception
    java.lang.NullPointerException: null
        at sonia.scm.repository.api.HgHookBranchProvider.changesets(HgHookBranchProvider.java:122)
        at sonia.scm.repository.api.HgHookBranchProvider.collect(HgHookBranchProvider.java:132)
        at sonia.scm.repository.api.HgHookBranchProvider.getCreatedOrModified(HgHookBranchProvider.java:85)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkBranchProvider(BranchWPPreReceiveRepositoryHook.java:177)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.checkWithHookContext(BranchWPPreReceiveRepositoryHook.java:227)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.handleBranchWP(BranchWPPreReceiveRepositoryHook.java:264)
        at sonia.scm.branchwp.BranchWPPreReceiveRepositoryHook.onEvent(BranchWPPreReceiveRepositoryHook.java:110)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
        at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47)
        at com.google.common.eventbus.ThrowingEventBus.dispatch(ThrowingEventBus.java:77)
        at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
        at com.google.common.eventbus.EventBus.post(EventBus.java:267)
        at sonia.scm.event.GuavaScmEventBus.post(GuavaScmEventBus.java:100)
        at sonia.scm.repository.AbstractRepositoryManager.fireHookEvent(AbstractRepositoryManager.java:184)
        at sonia.scm.repository.spi.HookEventFacade$HookEventHandler.fireHookEvent(HookEventFacade.java:190)
        at sonia.scm.web.HgHookCallbackServlet.fireHook(HgHookCallbackServlet.java:301)
        at sonia.scm.web.HgHookCallbackServlet.hookCallback(HgHookCallbackServlet.java:356)
        at sonia.scm.web.HgHookCallbackServlet.doPost(HgHookCallbackServlet.java:207)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
        at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
        at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.filter.MDCFilter.doFilter(MDCFilter.java:110)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.web.filter.AutoLoginFilter.doFilter(AutoLoginFilter.java:85)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at sonia.scm.filter.BaseUrlFilter.doFilter(BaseUrlFilter.java:117)
        at sonia.scm.web.filter.HttpFilter.doFilter(HttpFilter.java:102)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
        at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
        at sonia.scm.boot.BootstrapFilter.doFilter(BootstrapFilter.java:119)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:556)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:369)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:464)
        at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:924)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:985)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:236)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:748)
    
  4. Sebastian Sdorra repo owner

    Ok, i think we have found the issue during 2.x development. The problem occurs only with never versions of mercurial. Those newer versions are provide pending changeset for external changesets, if python hooks are used. However we found a workaround 2259481. I will try to backport it to 1.x.

  5. Log in to comment