com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths.

Atlassian JIRA | Kah Loun Foong [Atlassian] | 3 years ago
  1. 0

    h3.Steps to reproduce: # Open a Project # Add a new file (example, test.sh) anywhere within the project # Create a pre-commit review with Mercurial (our chosen version control system) by selecting the file -> Mercurial -> Commit -> Crucible Pre-Commit-Review. # Add a comment and commit to the default project in Mercurial. This fails with the following error in IntelliJ: {noformat} com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths. at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:639) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:458) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternal(AbstractHttpSession.java:373) {noformat} FishEye log: {noformat} 2013-08-26 15:49:26,334 DEBUG [btpool0-12 ] fisheye ProfilingServletFilter-logRequest - end request POST /rest-service/auth-v1/login?userName=admin&password=XXXX sessionid=4c6nkowhlnx3dse9jesa1tqi 2013-08-26 15:49:26,341 DEBUG [btpool0-12 ] fisheye ProfilingServletFilter-logRequest - start request POST /rest-service/reviews-v1 sessionid=4c6nkowhlnx3dse9jesa1tqi 2013-08-26 15:49:26,806 DEBUG [btpool0-12 ] fisheye RepositoryHandle-acquire - acquire engine on BiitMercurial, count=1 2013-08-26 15:49:26,807 WARN [btpool0-12 ] fisheye TxHelper-rollbackTxIfNotCommitted - Rolled back transaction started from: -> com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:122) -> com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:114) -> sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) -> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) -> java.lang.reflect.Method.invoke(Method.java:597) 2013-08-26 15:49:26,808 ERROR [btpool0-12 ] com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper ThrowableExceptionMapper-toResponse - Uncaught exception thrown by REST service com.atlassian.crucible.spi.services.PatchAnchorFailedException: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths. at com.atlassian.crucible.spi.impl.DefaultReviewService.doSearchAndSetAnchor(DefaultReviewService.java:300) at com.atlassian.crucible.spi.impl.DefaultReviewService.tryAnchorPatch(DefaultReviewService.java:279) at com.atlassian.crucible.spi.impl.DefaultReviewService.access$400(DefaultReviewService.java:142) at com.atlassian.crucible.spi.impl.DefaultReviewService$7.doInTransaction(DefaultReviewService.java:675) at com.atlassian.crucible.spi.impl.DefaultReviewService$7.doInTransaction(DefaultReviewService.java:661) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:126) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:114) at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) {noformat} Tested uploading the patch file manually to the same review in the UI able to anchor to the repository BiitMercurial. Tested REST API to add the patch file but unable to reproduce the same error in the log. The patch is able to anchor to the repository but not added in the list of file in the review.

    Atlassian JIRA | 3 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths.
  2. 0

    h3.Steps to reproduce: # Open a Project # Add a new file (example, test.sh) anywhere within the project # Create a pre-commit review with Mercurial (our chosen version control system) by selecting the file -> Mercurial -> Commit -> Crucible Pre-Commit-Review. # Add a comment and commit to the default project in Mercurial. This fails with the following error in IntelliJ: {noformat} com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths. at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:639) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:458) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternal(AbstractHttpSession.java:373) {noformat} FishEye log: {noformat} 2013-08-26 15:49:26,334 DEBUG [btpool0-12 ] fisheye ProfilingServletFilter-logRequest - end request POST /rest-service/auth-v1/login?userName=admin&password=XXXX sessionid=4c6nkowhlnx3dse9jesa1tqi 2013-08-26 15:49:26,341 DEBUG [btpool0-12 ] fisheye ProfilingServletFilter-logRequest - start request POST /rest-service/reviews-v1 sessionid=4c6nkowhlnx3dse9jesa1tqi 2013-08-26 15:49:26,806 DEBUG [btpool0-12 ] fisheye RepositoryHandle-acquire - acquire engine on BiitMercurial, count=1 2013-08-26 15:49:26,807 WARN [btpool0-12 ] fisheye TxHelper-rollbackTxIfNotCommitted - Rolled back transaction started from: -> com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:122) -> com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:114) -> sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) -> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) -> java.lang.reflect.Method.invoke(Method.java:597) 2013-08-26 15:49:26,808 ERROR [btpool0-12 ] com.atlassian.plugins.rest.common.error.jersey.ThrowableExceptionMapper ThrowableExceptionMapper-toResponse - Uncaught exception thrown by REST service com.atlassian.crucible.spi.services.PatchAnchorFailedException: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths. at com.atlassian.crucible.spi.impl.DefaultReviewService.doSearchAndSetAnchor(DefaultReviewService.java:300) at com.atlassian.crucible.spi.impl.DefaultReviewService.tryAnchorPatch(DefaultReviewService.java:279) at com.atlassian.crucible.spi.impl.DefaultReviewService.access$400(DefaultReviewService.java:142) at com.atlassian.crucible.spi.impl.DefaultReviewService$7.doInTransaction(DefaultReviewService.java:675) at com.atlassian.crucible.spi.impl.DefaultReviewService$7.doInTransaction(DefaultReviewService.java:661) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:126) at com.atlassian.fisheye.spi.impl.DefaultTxTemplate.execute(DefaultTxTemplate.java:114) at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) {noformat} Tested uploading the patch file manually to the same review in the UI able to anchor to the repository BiitMercurial. Tested REST API to add the patch file but unable to reproduce the same error in the log. The patch is able to anchor to the repository but not added in the list of file in the review.

    Atlassian JIRA | 3 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths.
  3. 0

    I was trying to create precommit review but without success. Before revision exists in FE but after is empty? Is it a problem for Crucible that after revision is empty? Creating precommit review without anchor works. IDE Connector sends request (see attachement) and HTTP 500 is generated: com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [GT-15-patch-0.txt] to repository [PreCommit]: Crucible tried to anchor your patch to 'PreCommit', but did not find any matching revisions. at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:625) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:444) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternal(AbstractHttpSession.java:359) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:350) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:345) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:338) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.createReviewFromPatch(CrucibleSessionImpl.java:1302) at com.atlassian.theplugin.commons.crucible.CrucibleServerFacadeImpl.createReviewFromPatch(CrucibleServerFacadeImpl.java:381) at com.atlassian.connector.intellij.crucible.IntelliJCrucibleServerFacade.createReviewFromPatch(IntelliJCrucibleServerFacade.java:241) at com.atlassian.theplugin.idea.crucible.AbstractCrucibleCreatePreCommitReviewForm.createReviewImpl(AbstractCrucibleCreatePreCommitReviewForm.java:63) at com.atlassian.theplugin.idea.crucible.CrucibleCreatePreCommitUploadReviewForm.createReview(CrucibleCreatePreCommitUploadReviewForm.java:76) at com.atlassian.theplugin.idea.crucible.CrucibleReviewCreateForm$8.run(CrucibleReviewCreateForm.java:805) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:181) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:209) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:172) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:340) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:375) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:130)

    Atlassian JIRA | 5 years ago | Piotr Maruszak
    com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [GT-15-patch-0.txt] to repository [PreCommit]: Crucible tried to anchor your patch to 'PreCommit', but did not find any matching revisions.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I was trying to create precommit review but without success. Before revision exists in FE but after is empty? Is it a problem for Crucible that after revision is empty? Creating precommit review without anchor works. IDE Connector sends request (see attachement) and HTTP 500 is generated: com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [GT-15-patch-0.txt] to repository [PreCommit]: Crucible tried to anchor your patch to 'PreCommit', but did not find any matching revisions. at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:625) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:444) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternal(AbstractHttpSession.java:359) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:350) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:345) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:338) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.createReviewFromPatch(CrucibleSessionImpl.java:1302) at com.atlassian.theplugin.commons.crucible.CrucibleServerFacadeImpl.createReviewFromPatch(CrucibleServerFacadeImpl.java:381) at com.atlassian.connector.intellij.crucible.IntelliJCrucibleServerFacade.createReviewFromPatch(IntelliJCrucibleServerFacade.java:241) at com.atlassian.theplugin.idea.crucible.AbstractCrucibleCreatePreCommitReviewForm.createReviewImpl(AbstractCrucibleCreatePreCommitReviewForm.java:63) at com.atlassian.theplugin.idea.crucible.CrucibleCreatePreCommitUploadReviewForm.createReview(CrucibleCreatePreCommitUploadReviewForm.java:76) at com.atlassian.theplugin.idea.crucible.CrucibleReviewCreateForm$8.run(CrucibleReviewCreateForm.java:805) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:181) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:209) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:172) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:340) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:375) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:130)

    Atlassian JIRA | 5 years ago | Piotr Maruszak
    com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [GT-15-patch-0.txt] to repository [PreCommit]: Crucible tried to anchor your patch to 'PreCommit', but did not find any matching revisions.
  6. 0

    In the IntelliJ IDEA Atlassian connector, submitting a pre-commit code review triggers a stacktrace: com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 403 (Forbidden) Reason: NotPermitted Message: You do not have permission to Edit Review Details the review CR-TEST-123: com.cenqua.crucible.model.Review@27d at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:487) at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponse(AbstractHttpSession.java:430) at com.atlassian.theplugin.commons.crucible.api.rest.CrucibleSessionImpl.createReviewFromUpload(CrucibleSessionImpl.java:1253) at com.atlassian.theplugin.commons.crucible.CrucibleServerFacadeImpl.createReviewFromUpload(CrucibleServerFacadeImpl.java:143) at com.atlassian.connector.intellij.crucible.IntelliJCrucibleServerFacade.createReviewFromUpload(IntelliJCrucibleServerFacade.java:130) at com.atlassian.theplugin.idea.crucible.AbstractCrucibleCreatePreCommitReviewForm.createReviewImpl(AbstractCrucibleCreatePreCommitReviewForm.java:56) at com.atlassian.theplugin.idea.crucible.CrucibleCreatePreCommitUploadReviewForm.createReview(CrucibleCreatePreCommitUploadReviewForm.java:60) at com.atlassian.theplugin.idea.crucible.CrucibleReviewCreateForm$8.run(CrucibleReviewCreateForm.java:811) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:3) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:101) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:16) at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:8) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:5)

    Atlassian JIRA | 7 years ago | Jeff Turner
    com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 403 (Forbidden) Reason: NotPermitted Message: You do not have permission to Edit Review Details the review CR-TEST-123: com.cenqua.crucible.model.Review@27d

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.theplugin.commons.remoteapi.RemoteApiException

      Server returned HTTP 500 (Internal Server Error) Reason: Message: Unable to anchor patch [CR-25-patch-0.txt] to repository [BiitMercurial]: Crucible tried to anchor your patch to 'BiitMercurial', but did not find any matching paths.

      at com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText()
    2. com.atlassian.theplugin
      AbstractHttpSession.retrievePostResponseInternal
      1. com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.buildExceptionText(AbstractHttpSession.java:639)
      2. com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternalImpl(AbstractHttpSession.java:458)
      3. com.atlassian.theplugin.commons.remoteapi.rest.AbstractHttpSession.retrievePostResponseInternal(AbstractHttpSession.java:373)
      3 frames