Exception: Could not collect changesets for arbitrary commits

Issue #824 new
Gereon Kremer created an issue

We have a WebHook installed that sometimes fails with the following exception:

ERROR sonia.scm.repository.GitHookChangesetCollector - could not collect changesets java.lang.NullPointerException: null at org.eclipse.jgit.internal.storage.file.ByteArrayWindow.setInput(ByteArrayWindow.java:78) ~[ByteArrayWindow.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.ByteWindow.setInput(ByteWindow.java:128) ~[ByteWindow.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.WindowCursor.inflate(WindowCursor.java:313) ~[WindowCursor.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.PackFile.decompress(PackFile.java:340) ~[PackFile.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.PackFile.load(PackFile.java:734) ~[PackFile.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.PackFile.get(PackFile.java:259) ~[PackFile.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedObject(ObjectDirectory.java:417) ~[ObjectDirectory.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openPackedFromSelfOrAlternate(ObjectDirectory.java:386) ~[ObjectDirectory.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:378) ~[ObjectDirectory.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145) ~[WindowCursor.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:884) ~[RevWalk.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:145) ~[RevCommit.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.PendingGenerator.next(PendingGenerator.java:148) ~[PendingGenerator.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.TopoSortGenerator.<init>(TopoSortGenerator.java:78) ~[TopoSortGenerator.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.StartGenerator.next(StartGenerator.java:168) ~[StartGenerator.class:3.7.1.201504261725-r-scm1] at org.eclipse.jgit.revwalk.RevWalk.next(RevWalk.java:422) ~[RevWalk.class:3.7.1.201504261725-r-scm1] at sonia.scm.repository.GitHookChangesetCollector.collectChangesets(GitHookChangesetCollector.java:201) ~[GitHookChangesetCollector.class:na] at sonia.scm.repository.GitHookChangesetCollector.collectChangesets(GitHookChangesetCollector.java:131) ~[GitHookChangesetCollector.class:na] at sonia.scm.repository.spi.GitHookChangesetProvider.handleRequest(GitHookChangesetProvider.java:85) [GitHookChangesetProvider.class:na] at sonia.scm.repository.api.HookChangesetBuilder.getChangesets(HookChangesetBuilder.java:118) [HookChangesetBuilder.class:na]
at sonia.scm.repository.api.HookChangesetBuilder.getChangesetList(HookChangesetBuilder.java:107) [HookChangesetBuilder.class:na] at sonia.scm.repository.ExtendedRepositoryHookEvent.getChangesets(ExtendedRepositoryHookEvent.java:79) [ExtendedRepositoryHookEvent.class:na] at sonia.scm.notify.NotifyRepositoryHook.handleEvent(NotifyRepositoryHook.java:124) [scm-notify-plugin-1.5.jar:na] at sonia.scm.notify.NotifyRepositoryHook.onEvent(NotifyRepositoryHook.java:103) [scm-notify-plugin-1.5.jar:na] at sonia.scm.repository.RepositoryHookTask.run(RepositoryHookTask.java:84) [RepositoryHookTask.class:na] at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [SubjectRunnable.class:1.2.3] at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [SubjectRunnable.class:1.2.3] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_95] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_95]

Consequently, we get the following error afterwards: ERROR sonia.scm.notify.NotifyRepositoryHook - received hook without changesets

This was for example noticed on a project available at https://github.com/smtrat/carl/commits/master

Commits that worked: d2ceb4c b20093e b94d6ec Commits that crashed: 579850e 6948768

Comments (1)

  1. Log in to comment