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

Atlassian JIRA | Dave Lahn [Atlassian] | 1 year 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 | 1 year 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 | 1 year ago | Dave Lahn [Atlassian]
    java.lang.IllegalStateException: Both branchInCache and branchInScm not specified in onBranchHeadUpdated
  3. 0

    RE: XPath string and xpath node are both null

    ode-user | 4 years ago | randa hammami
    java.lang.IllegalStateException: XPath string and xpath node are both null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: XPath string and xpath node are both null

    ode-user | 4 years ago | Tammo van Lessen
    java.lang.IllegalStateException: XPath string and xpath node are both null
  6. 0

    XPath string and xpath node are both null

    ode-user | 4 years ago | randa hammami
    java.lang.IllegalStateException: XPath string and xpath node are both null

    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