java.lang.IllegalStateException

After matching the from and to refs, the expected merge could not be resolved for pull request 4:2432@2. The contents of the repository are invalid.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web33364

  • via Atlassian JIRA by Alexey Efimov, 11 months ago
    After matching the from and to refs, the expected merge could not be resolved for pull request 4:2432@2. The contents of the repository are invalid.
  • via Atlassian JIRA by Alexey Efimov, 1 year ago
    After matching the from and to refs, the expected merge could not be resolved for pull request 4:2432@2. The contents of the repository are invalid.
  • via GitHub by hepin1989
    , 3 months ago
    Expected to be healthy after starting. The following services are not running: {FAILED=[IndexerSetupService [FAILED]]}
  • Stack trace

    • java.lang.IllegalStateException: After matching the from and to refs, the expected merge could not be resolved for pull request 4:2432@2. The contents of the repository are invalid. at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$PullRequestEffectiveDiffCallable.resolveMerge(DefaultGitPullRequestCommandFactory.java:720)[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$PullRequestEffectiveDiffCallable.call(DefaultGitPullRequestCommandFactory.java:389)[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$PullRequestEffectiveDiffCallable.call(DefaultGitPullRequestCommandFactory.java:321)[na:na] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[na:1.6.0_30] at java.util.concurrent.FutureTask.run(FutureTask.java:138)[na:1.6.0_30] at com.atlassian.util.concurrent.ConcurrentOperationMapImpl$CallerRunsFuture.get(ConcurrentOperationMapImpl.java:63)[atlassian-util-concurrent-2.4.1.jar:na] at com.atlassian.util.concurrent.ConcurrentOperationMapImpl.runOperation(ConcurrentOperationMapImpl.java:51)[atlassian-util-concurrent-2.4.1.jar:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.resolveEffectiveDiff(DefaultGitPullRequestCommandFactory.java:266)[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory.access$100(DefaultGitPullRequestCommandFactory.java:60)[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$1.call(DefaultGitPullRequestCommandFactory.java:111)[na:na] at com.atlassian.stash.internal.scm.git.DefaultGitPullRequestCommandFactory$1.call(DefaultGitPullRequestCommandFactory.java:99)[na:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.isConflicted(PullRequestServiceImpl.java:1313)[stash-service-impl-2.6.2.jar:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.canMerge(PullRequestServiceImpl.java:1009)[stash-service-impl-2.6.2.jar:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.canMerge(PullRequestServiceImpl.java:283)[stash-service-impl-2.6.2.jar:na] at sun.reflect.GeneratedMethodAccessor665.invoke(Unknown Source)[na:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.