java.lang.Throwable: (Stack trace at transaction depth 0 start)

Atlassian JIRA | Caterina Curti [Atlassian] | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary When using a DCVS repository, in case the user uploads a patch based on a subsequent local change (any change after the first commit not being pushed to the "central repository"), the patch does not anchor. h3. Environment * DCVS repository, including: ** Mercurial ** Git h3. Steps to Reproduce The steps below refer to a Mercurial repository, but they can be applied to a Git repository as well. # Provided that you have a Mercurial repository with a file in it # Make sure all changes to the repository have been pushed to the central repository so that the {{hg diff}} command returns no differences # Change a file in the repository local clone (let's call this change1) # Commit the change (change1) without pushing it to the central repository through the {{hg commit}} command # Create a second change in the repository local clone (let's call this change2) # Create a patch file by using the {{hg diff}} command # Upload the patch file as a pre-commit in order to create a review h3. Expected Results The patch anchors successfully to the repository. h3. Actual Results The patch does not anchor and the following appears in the +debug level+ {{atlassian-fisheye-YYYY-DD-MM.log}} file: {noformat} 2015-12-11 16:33:05,843 DEBUG [qtp98826337-221 ] fisheye HgCache-resolveRevisionsForPatch - Unknown commit hash: 8ba4e47be4c7 2015-12-11 16:33:05,847 DEBUG [qtp98826337-221 ] fisheye TxHelperStylePlatformTransactionManager-rollback - Rolled back transaction started from: java.lang.Throwable: (Stack trace at transaction depth 0 start) at com.cenqua.crucible.hibernate.SessionState.pushTxBeginStacktrace(SessionState.java:71) [fisheye.jar:?] at com.cenqua.crucible.hibernate.SessionState.beginTx(SessionState.java:61) [fisheye.jar:?] at com.cenqua.crucible.hibernate.HibernateUtil.beginTransaction(HibernateUtil.java:324) [fisheye.jar:?] {noformat} Where this is the result of the {{hg info}} on the file in the local repository (note the +commit hash matching the one in the stacktrace above+): {noformat} changeset: 5:8ba4e47be4c7 tag: tip user: test_user date: Fri Dec 11 16:30:55 2015 +11 summary: change1 {noformat} The FishEye user interface shows the following message (where patch3 is the patch name): {noformat} No repository found to anchor patch to Crucible tried to anchor your patch to 'patch3', but did not find any matching revisions. You will not be able to do iterative reviews on this patch. {noformat} !Patch_not_anchoring.png|thumbnail! h3. Notes The SVN related use case is described in the [CRUC-6939|https://jira.atlassian.com/browse/CRUC-6939] ticket. h3.Workaround # Retrieve the commit hash of the last pushed revision by performing the {{hg log}} command # When generating the patch, specify the retrieved commit hash: {noformat} hg diff -r c9ef90b58252 > patch1_and_patch2.txt {noformat} # Upload the patch_1_and_patch2.txt

    Atlassian JIRA | 1 year ago | Caterina Curti [Atlassian]
    java.lang.Throwable: (Stack trace at transaction depth 0 start)
  2. 0

    h3. Summary When using a DCVS repository, in case the user uploads a patch based on a subsequent local change (any change after the first commit not being pushed to the "central repository"), the patch does not anchor. h3. Environment * DCVS repository, including: ** Mercurial ** Git h3. Steps to Reproduce The steps below refer to a Mercurial repository, but they can be applied to a Git repository as well. # Provided that you have a Mercurial repository with a file in it # Make sure all changes to the repository have been pushed to the central repository so that the {{hg diff}} command returns no differences # Change a file in the repository local clone (let's call this change1) # Commit the change (change1) without pushing it to the central repository through the {{hg commit}} command # Create a second change in the repository local clone (let's call this change2) # Create a patch file by using the {{hg diff}} command # Upload the patch file as a pre-commit in order to create a review h3. Expected Results The patch anchors successfully to the repository. h3. Actual Results The patch does not anchor and the following appears in the +debug level+ {{atlassian-fisheye-YYYY-DD-MM.log}} file: {noformat} 2015-12-11 16:33:05,843 DEBUG [qtp98826337-221 ] fisheye HgCache-resolveRevisionsForPatch - Unknown commit hash: 8ba4e47be4c7 2015-12-11 16:33:05,847 DEBUG [qtp98826337-221 ] fisheye TxHelperStylePlatformTransactionManager-rollback - Rolled back transaction started from: java.lang.Throwable: (Stack trace at transaction depth 0 start) at com.cenqua.crucible.hibernate.SessionState.pushTxBeginStacktrace(SessionState.java:71) [fisheye.jar:?] at com.cenqua.crucible.hibernate.SessionState.beginTx(SessionState.java:61) [fisheye.jar:?] at com.cenqua.crucible.hibernate.HibernateUtil.beginTransaction(HibernateUtil.java:324) [fisheye.jar:?] {noformat} Where this is the result of the {{hg info}} on the file in the local repository (note the +commit hash matching the one in the stacktrace above+): {noformat} changeset: 5:8ba4e47be4c7 tag: tip user: test_user date: Fri Dec 11 16:30:55 2015 +11 summary: change1 {noformat} The FishEye user interface shows the following message (where patch3 is the patch name): {noformat} No repository found to anchor patch to Crucible tried to anchor your patch to 'patch3', but did not find any matching revisions. You will not be able to do iterative reviews on this patch. {noformat} !Patch_not_anchoring.png|thumbnail! h3. Notes The SVN related use case is described in the [CRUC-6939|https://jira.atlassian.com/browse/CRUC-6939] ticket. h3.Workaround # Retrieve the commit hash of the last pushed revision by performing the {{hg log}} command # When generating the patch, specify the retrieved commit hash: {noformat} hg diff -r c9ef90b58252 > patch1_and_patch2.txt {noformat} # Upload the patch_1_and_patch2.txt

    Atlassian JIRA | 1 year ago | Caterina Curti [Atlassian]
    java.lang.Throwable: (Stack trace at transaction depth 0 start)

    Root Cause Analysis

    1. java.lang.Throwable

      (Stack trace at transaction depth 0 start)

      at com.cenqua.crucible.hibernate.SessionState.pushTxBeginStacktrace()
    2. com.cenqua.crucible
      HibernateUtil.beginTransaction
      1. com.cenqua.crucible.hibernate.SessionState.pushTxBeginStacktrace(SessionState.java:71)[fisheye.jar:?]
      2. com.cenqua.crucible.hibernate.SessionState.beginTx(SessionState.java:61)[fisheye.jar:?]
      3. com.cenqua.crucible.hibernate.HibernateUtil.beginTransaction(HibernateUtil.java:324)[fisheye.jar:?]
      3 frames