java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated

Atlassian JIRA | Dave Lahn [Atlassian] | 2 years ago
  1. 0

    If SCM (in this case - mercurial) produces output in different locale than english we are not able to parse it and logging INFO message like this {noformat} INFO [30278:StdOutHandler XXX ] fisheye BaseLineOutputHandler-reportNonMatchingLine - Non-matching line 'XXXXXXXX 12146:228460ff45fe (geschlossen)' context '[--config, ui.verbose=false, branches, -c]' {noformat} As a result of this "error" the exception might be thrown {noformat} java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated at com.atlassian.fisheye.hg.HgScanner.prepareBranchToBeStored(HgScanner.java:860) at com.atlassian.fisheye.dvcs.DvcsScanner.updateBranchHead(DvcsScanner.java:220) at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:296) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.slurpRepository(LifecycleRepositoryScanner.java:82) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.doSlurpTransaction(LifecycleRepositoryScanner.java:49) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:73) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:217) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:59) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:173) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} h3. Workaround Change locale of your fisheye user to english by putting the following line in .bashrc of Fisheye user. {code} export LANGUAGE=en_US {code} rerun .bashrc {code} . ~/.bashrc {code} and restart FishEye/Crucible instance

    Atlassian JIRA | 2 years ago | Dave Lahn [Atlassian]
    java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated
  2. 0

    If SCM (in this case - mercurial) produces output in different locale than english we are not able to parse it and logging INFO message like this {noformat} INFO [30278:StdOutHandler XXX ] fisheye BaseLineOutputHandler-reportNonMatchingLine - Non-matching line 'XXXXXXXX 12146:228460ff45fe (geschlossen)' context '[--config, ui.verbose=false, branches, -c]' {noformat} As a result of this "error" the exception might be thrown {noformat} java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated at com.atlassian.fisheye.hg.HgScanner.prepareBranchToBeStored(HgScanner.java:860) at com.atlassian.fisheye.dvcs.DvcsScanner.updateBranchHead(DvcsScanner.java:220) at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:296) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.slurpRepository(LifecycleRepositoryScanner.java:82) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.doSlurpTransaction(LifecycleRepositoryScanner.java:49) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:73) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:217) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:59) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:173) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} h3. Workaround Change locale of your fisheye user to english by putting the following line in .bashrc of Fisheye user. {code} export LANGUAGE=en_US {code} rerun .bashrc {code} . ~/.bashrc {code} and restart FishEye/Crucible instance

    Atlassian JIRA | 2 years ago | Dave Lahn [Atlassian]
    java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated
  3. 0
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    JHipster only supports java 7 and 8.
    via GitHub by atomfrede
  6. 0
    Upgrade sbt-dependency-graph to 0.8.2 or later.

    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. java.lang.IllegalStateException

      Both branchInCache and branchInScm not specified in onBranchHeadUpdated

      at com.atlassian.fisheye.hg.HgScanner.prepareBranchToBeStored()
    2. com.atlassian.fisheye
      DvcsScanner.processRevisions
      1. com.atlassian.fisheye.hg.HgScanner.prepareBranchToBeStored(HgScanner.java:860)
      2. com.atlassian.fisheye.dvcs.DvcsScanner.updateBranchHead(DvcsScanner.java:220)
      3. com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:296)
      3 frames
    3. com.cenqua.fisheye
      RepositoryHandle$2.run
      1. com.cenqua.fisheye.rep.LifecycleRepositoryScanner.slurpRepository(LifecycleRepositoryScanner.java:82)
      2. com.cenqua.fisheye.rep.LifecycleRepositoryScanner.doSlurpTransaction(LifecycleRepositoryScanner.java:49)
      3. com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:73)
      4. com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86)
      5. com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414)
      6. com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27)
      7. com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30)
      8. com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55)
      9. com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27)
      10. com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52)
      11. com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:217)
      12. com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:59)
      13. com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:173)
      13 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:724)
      3 frames