Issue 442: JGit exception when pushing the first commit into newly created git project
Status:  Released
Owner:
Closed:  Mar 2012
Project Member Reported by ulrik.sj...@gmail.com, Feb 10, 2010
Affected Version: 2.1.1.1-88-g4f1a5f4
Environment:

What steps will reproduce the problem?
1. Create new gerrit site (with H2 (the only one I tested with)
2. Create new project with create-project
3. add-commit-push into that project
4. Try to examine the change in the web interface (page not found)
5. add-commit-push again
6. Examining this change in the web interface works.

What is the expected output? What do you see instead?
the change should come up in the web interface.

Please provide any additional information below.
[2010-02-10 15:23:18,723] ERROR
com.google.gerrit.server.cache.SelfPopulatingCache : Cannot lookup
com.google.gerrit.server.patch.PatchListKey@27c93dfb in "diff"
net.sf.ehcache.CacheException: Could not fetch object for cache entry with
key "com.google.gerrit.server.patch.PatchListKey@27c93dfb".
       at
net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:88)
       at
com.google.gerrit.server.cache.SelfPopulatingCache.get(SelfPopulatingCache.java:107)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.get(PatchListCacheImpl.java:95)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.get(PatchListCacheImpl.java:107)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.get(PatchListCacheImpl.java:99)
       at
com.google.gerrit.httpd.rpc.changedetail.PatchSetDetailFactory.call(PatchSetDetailFactory.java:83)
       at
com.google.gerrit.httpd.rpc.changedetail.ChangeDetailFactory.loadCurrentPatchSet(ChangeDetailFactory.java:188)
       at
com.google.gerrit.httpd.rpc.changedetail.ChangeDetailFactory.call(ChangeDetailFactory.java:108)
       at
com.google.gerrit.httpd.rpc.changedetail.ChangeDetailFactory.call(ChangeDetailFactory.java:53)
       at com.google.gerrit.httpd.rpc.Handler.to(Handler.java:65)
       at
com.google.gerrit.httpd.rpc.changedetail.ChangeDetailServiceImpl.changeDetail(ChangeDetailServiceImpl.java:42)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at
com.google.gwtjsonrpc.server.MethodHandle.invoke(MethodHandle.java:91)
       at
com.google.gwtjsonrpc.server.JsonServlet.doService(JsonServlet.java:382)
       at
com.google.gwtjsonrpc.server.JsonServlet.service(JsonServlet.java:268)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
       at
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)
       at
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)
       at
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
       at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)
       at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)
       at
com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:76)
       at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:129)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)
       at
com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:54)
       at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:129)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)
       at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:134)
       at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:59)
       at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
       at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
       at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
       at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:425)
       at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931)
       at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
       at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
       at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
       at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
       at
org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:50)
       at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
       at org.eclipse.jetty.server.Server.handle(Server.java:334)
       at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
       at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)
       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)
       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)
       at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
       at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
       at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
       at java.lang.Thread.run(Thread.java:619)
Caused by: org.eclipse.jgit.errors.IncorrectObjectTypeException: Object
4b825dc642cb6eb9a060e54bf8d69288fbee4904 is not a commit.
       at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:660)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.readPatchList(PatchListCacheImpl.java:177)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.compute(PatchListCacheImpl.java:114)
       at
com.google.gerrit.server.patch.PatchListCacheImpl.access$000(PatchListCacheImpl.java:60)
       at
com.google.gerrit.server.patch.PatchListCacheImpl$2.createEntry(PatchListCacheImpl.java:89)
       at
com.google.gerrit.server.patch.PatchListCacheImpl$2.createEntry(PatchListCacheImpl.java:86)
       at
com.google.gerrit.server.cache.SelfPopulatingCache$1.createEntry(SelfPopulatingCache.java:60)
       at
net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:72)
       ... 54 more

Feb 10, 2010
#1 sop@google.com
Fixed by change I9302b6e3d6e9117159e32e96119b6563ac8e26c1
Status: Fixed
Cc: -s...@google.com
Labels: -Component-JGit FixedIn-2.1.2
Mar 27, 2012
#2 sop@google.com
(No comment was entered for this change.)
Status: Released