CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

Getting error in gerrit 2.11.1 about jgit #3427

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1. Download gerrit 2.11.1 war file
2. Download gitblit plugin.
3. Install it on windows 10.
4. Then run deamon.

What is the expected output? What do you see instead?

Gerrit should start working on windows.

And instead I start it and then few secs later it stops and bring up this error 
in the error log.

[2015-06-13 12:58:03,289] ERROR com.google.gerrit.pgm.Daemon : Unable to start 
daemon
java.lang.NoSuchMethodError: org.eclipse.jgit.treewalk.TreeWalk.release()V
    at com.gitblit.utils.JGitUtils.getByteContent(JGitUtils.java:777)
    at com.gitblit.utils.JGitUtils.getSparkleshareId(JGitUtils.java:2239)
    at com.gitblit.manager.RepositoryManager.loadRepositoryModel(RepositoryManager.java:956)
    at com.gitblit.manager.RepositoryManager.getRepositoryModel(RepositoryManager.java:719)
    at com.gitblit.manager.RepositoryManager.configureCommitCache(RepositoryManager.java:1949)
    at com.gitblit.manager.RepositoryManager.start(RepositoryManager.java:169)
    at com.gitblit.manager.RepositoryManager.start(RepositoryManager.java:104)
    at com.gitblit.servlet.GitblitContext.startManager(GitblitContext.java:268)
    at com.googlesource.gerrit.plugins.gitblit.GerritGitBlitContext.init(GerritGitBlitContext.java:71)
    at com.googlesource.gerrit.plugins.gitblit.GerritWicketFilter.init(GerritWicketFilter.java:85)
    at com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:112)
    at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:99)
    at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:220)
    at com.google.gerrit.httpd.plugins.HttpPluginServlet.load(HttpPluginServlet.java:187)
    at com.google.gerrit.httpd.plugins.HttpPluginServlet.install(HttpPluginServlet.java:161)
    at com.google.gerrit.httpd.plugins.HttpPluginServlet.init(HttpPluginServlet.java:141)
    at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:119)
    at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82)
    at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:103)
    at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:220)
    at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:138)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:852)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.server.Server.start(Server.java:387)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:354)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at com.google.gerrit.pgm.http.jetty.JettyServer$Lifecycle.start(JettyServer.java:124)
    at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:74)
    at com.google.gerrit.pgm.Daemon.start(Daemon.java:292)
    at com.google.gerrit.pgm.Daemon.run(Daemon.java:204)
    at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:166)
    at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:93)
    at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:50)
    at Main.main(Main.java:25)

Please provide any additional information below.

Original issue reported on code.google.com by thomasmu...@btinternet.com on 13 Jun 2015 at 12:12

GoogleCodeExporter commented 9 years ago
Known problem. Temporary work-around: remove the gitblit plugin until it is 
fixed.

JGit was upgraded from 3.7.0 to 4.0.0 in Gerrit 2.11.1, and GitBlit currently 
is incompatible with that. See

https://groups.google.com/forum/?hl=en#!topic/repo-discuss/HvsppnIzg8A

and also

https://github.com/tomaswolf/gerrit-gitblit-plugin/issues/5#issuecomment-1116281
65

and following comments there.

Original comment by tw201...@gmail.com on 13 Jun 2015 at 1:57

GoogleCodeExporter commented 9 years ago
Hi I use the plugin that is generated by jenkings. Not jenkings plugin but it 
is tested through there and generates a jar file of all plugin ecept from few.

Original comment by thomasmu...@btinternet.com on 13 Jun 2015 at 2:13

GoogleCodeExporter commented 9 years ago
The plugin at https://ci.gerritforge.com/job/Plugin_gitblit_stable-2.11/ is not 
_tested_ with Jenkins; it's only built.

As far as I can see, this is not yet fixed in 
https://gerrit.googlesource.com/plugins/gitblit/ . Thus remove the gitblit 
plugin from your Gerrit, and it should start fine again. Then wait until the 
official plugin is fixed.

Original comment by tw201...@gmail.com on 13 Jun 2015 at 3:21