Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FATAL] Git service failed: nested transactions not supported #6

Closed
jpetrush opened this issue Jul 31, 2013 · 3 comments
Closed

[FATAL] Git service failed: nested transactions not supported #6

jpetrush opened this issue Jul 31, 2013 · 3 comments
Assignees

Comments

@jpetrush
Copy link

I am receiving the following results in the GitIntegration Logfile:

2013-07-31 10:39:31 GitIntegration [FATAL] An exception occurred in the Git connector while getting commits:
org.hibernate.TransactionException: nested transactions not supported
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:152)
at org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1426)
at com.versionone.git.storage.DbStorage.persistLastCommit(DbStorage.java:60)
at com.versionone.git.GitConnector.getCommits(GitConnector.java:188)
at com.versionone.git.GitConnector.traverseChanges(GitConnector.java:99)
at com.versionone.git.GitConnector.getChangeSets(GitConnector.java:85)
at com.versionone.git.GitService.onInterval(GitService.java:31)
at com.versionone.git.GitPollTask.processRepository(GitPollTask.java:63)
at com.versionone.git.GitPollTask.run(GitPollTask.java:56)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
2013-07-31 10:39:31 GitIntegration [FATAL] Git service failed: nested transactions not supported

It should be noted there are 37 Repositories in the configuration.xml. On inintial run, it scanned and worked properly with no issues, after quite a few runs it seems to start showing this message for one particular repo. Upon shutdown and restart the message appears for an additional 4 repositories in the logfiles. I removed the repository cache and restarted, same results apply.

System:
Centos 64bit linux Based with OpenJDK 1.6.0
os.name=Linux
os.arch=amd64
os.version=2.6.32-279.22.1.el6.x86_64
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11.90) (rhel-1.62.1.11.11.90.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
VersionOneIntegrationPlugin: 10.0.0.124

@jpetrush
Copy link
Author

This is Repeatable. Start the Service, it scans fine. Stop the Service, Make a commit to the git repo. Restart the Service, and immediately you have these errors. Additionally I have been getting these as well, but are cleared by deleting the local cacheed repo:

2013-07-31 12:29:58 GitIntegration [FATAL] An exception occurred in the Git connector while getting commits:
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.versionone.git.storage.LastProcessedItem#com.versionone.git.storage.LastProcessedItem@468034b6]
at org.hibernate.engine.internal.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:697)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:296)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:241)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:109)
at org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
at org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:735)
at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:727)
at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:723)
at com.versionone.git.storage.DbStorage.persistLastCommit(DbStorage.java:61)
at com.versionone.git.GitConnector.getCommits(GitConnector.java:188)
at com.versionone.git.GitConnector.traverseChanges(GitConnector.java:99)
at com.versionone.git.GitConnector.getChangeSets(GitConnector.java:85)
at com.versionone.git.GitService.onInterval(GitService.java:31)
at com.versionone.git.GitPollTask.processRepository(GitPollTask.java:63)
at com.versionone.git.GitPollTask.run(GitPollTask.java:56)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)

@ghost ghost assigned ibuchanan Aug 1, 2013
ibuchanan pushed a commit that referenced this issue Aug 1, 2013
ibuchanan pushed a commit that referenced this issue Aug 2, 2013
@jpetrush
Copy link
Author

jpetrush commented Aug 2, 2013

This change has corrected the issue. I now consider my bug report resolved and closed. (I recompiled with your patch changes and attempted same actions as before. It no longer dumps on me)

@jpetrush jpetrush closed this as completed Aug 2, 2013
@ibuchanan
Copy link
Contributor

Glad to know. It took a little longer to write a test to confirm the bug and fix. I've now posted new binaries on the app catalog for all to enjoy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants