Gerrit 2.8.1 Replication plugin Broken --- at least for me

622 views
Skip to first unread message

Miguel Zuñiga

unread,
Feb 3, 2014, 6:05:34 PM2/3/14
to repo-d...@googlegroups.com
Hi everyone

I hope you could give me a few insights, advice or some help. I just setup a gerrit 2.8.1... downloaded the war file, no problems there, added some basic plugins, still no problems there, but when i came across replication plugin well its basically beating me to the ground every single time.

So first decided to use the stable-2.8 branch of the gerrit plugin, but while building it buck comes back with.... 

 |=> //plugins/replication:replication__plugin__compile...  0.3s (running javac[0.3s])

Log:

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:238: error: cannot find symbol

              && GitRepositoryManager.REF_CONFIG.equals(head.getLeaf().getName())) {

                                     ^

  symbol:   variable REF_CONFIG

  location: interface com.google.gerrit.server.git.GitRepositoryManager

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:436: error: cannot find symbol

    if (!replicatePermissions && GitRepositoryManager.REF_CONFIG.equals(ref)) {

                                                     ^

  symbol:   variable REF_CONFIG

  location: interface com.google.gerrit.server.git.GitRepositoryManager

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java:477: error: cannot find symbol

    return !(noPerms && GitRepositoryManager.REF_CONFIG.equals(ref)) &&

                                            ^

  symbol:   variable REF_CONFIG

  location: interface com.google.gerrit.server.git.GitRepositoryManager

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java:478: error: cannot find symbol

        !ref.startsWith(GitRepositoryManager.REFS_CACHE_AUTOMERGE);

                                            ^

  symbol:   variable REFS_CACHE_AUTOMERGE

  location: interface com.google.gerrit.server.git.GitRepositoryManager

Errors: 4. Warnings: 0.


So I decided to take a look at the other GitRepositoryManagers under the gerrit-server ...longpath...server/git/GitRepositoryManager.java 

I've checked both the 2.8 and 2.7 versions 


and found that the difference between 2.7 and 2.8 is 


  /** Note tree listing commits we refuse {@code refs/meta/reject-commits} */

  public static final String REF_REJECT_COMMITS = "refs/meta/reject-commits";


  /** Configuration settings for a project {@code refs/meta/config} */

  public static final String REF_CONFIG = "refs/meta/config";


  /** Configurations of project-specific dashboards (canned search queries). */

  public static String REFS_DASHBOARDS = "refs/meta/dashboards/";


  /**

   * Prefix applied to merge commit base nodes.

   * <p>

   * References in this directory should take the form

   * {@code refs/cache-automerge/xx/yyyy...} where xx is

   * the first two digits of the merge commit's object

   * name, and yyyyy... is the remaining 38. The reference

   * should point to a treeish that is the automatic merge

   * result of the merge commit's parents.

   */

  public static final String REFS_CACHE_AUTOMERGE = "refs/cache-automerge/";



So... I decided to add it to my stable-2.8 branch and the plugin built properly but at the time of installing it I'm getting:


com.google.gerrit.server.plugins.PluginInstallException: Guice provision errors:


1) Error injecting constructor, java.lang.IllegalArgumentException: Invalid wildcards +refs/heads/*

  at com.googlesource.gerrit.plugins.replication.ReplicationQueue.<init>(ReplicationQueue.java:99)

  at com.googlesource.gerrit.plugins.replication.ReplicationModule.configure(ReplicationModule.java:34)

  while locating com.googlesource.gerrit.plugins.replication.ReplicationQueue

    for parameter 2 at com.googlesource.gerrit.plugins.replication.OnStartStop.<init>(OnStartStop.java:36)

  at com.googlesource.gerrit.plugins.replication.ReplicationModule.configure(ReplicationModule.java:45)

  while locating com.googlesource.gerrit.plugins.replication.OnStartStop

  while locating com.google.gerrit.extensions.events.LifecycleListener annotated with @com.google.inject.internal.UniqueAnnotations$Internal(value=111)


1 error

at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:412)

at com.google.gerrit.server.plugins.PluginLoader.installPluginFromStream(PluginLoader.java:167)

at com.google.gerrit.sshd.commands.PluginInstallCommand.run(PluginInstallCommand.java:92)

at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)

at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:442)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)

at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:360)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)

Caused by: com.google.inject.ProvisionException: Guice provision errors:


1) Error injecting constructor, java.lang.IllegalArgumentException: Invalid wildcards +refs/heads/*

  at com.googlesource.gerrit.plugins.replication.ReplicationQueue.<init>(ReplicationQueue.java:99)

  at com.googlesource.gerrit.plugins.replication.ReplicationModule.configure(ReplicationModule.java:34)

  while locating com.googlesource.gerrit.plugins.replication.ReplicationQueue

    for parameter 2 at com.googlesource.gerrit.plugins.replication.OnStartStop.<init>(OnStartStop.java:36)

  at com.googlesource.gerrit.plugins.replication.ReplicationModule.configure(ReplicationModule.java:45)

  while locating com.googlesource.gerrit.plugins.replication.OnStartStop

  while locating com.google.gerrit.extensions.events.LifecycleListener annotated with @com.google.inject.internal.UniqueAnnotations$Internal(value=111)


1 error

at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1014)

at com.google.gerrit.lifecycle.LifecycleManager.start(LifecycleManager.java:72)

at com.google.gerrit.server.plugins.JarPlugin.startPlugin(JarPlugin.java:181)

at com.google.gerrit.server.plugins.JarPlugin.start(JarPlugin.java:123)

at com.google.gerrit.server.plugins.PluginLoader.runPlugin(PluginLoader.java:395)

... 12 more

Caused by: java.lang.IllegalArgumentException: Invalid wildcards +refs/heads/*

at org.eclipse.jgit.transport.RefSpec.<init>(RefSpec.java:152)

at org.eclipse.jgit.transport.RemoteConfig.<init>(RemoteConfig.java:191)

at com.googlesource.gerrit.plugins.replication.ReplicationQueue.allRemotes(ReplicationQueue.java:239)

at com.googlesource.gerrit.plugins.replication.ReplicationQueue.allDestinations(ReplicationQueue.java:196)

at com.googlesource.gerrit.plugins.replication.ReplicationQueue.<init>(ReplicationQueue.java:107)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFactory.java:86)

at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)

at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)

at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

at com.google.inject.Scopes$1$1.get(Scopes.java:65)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)

at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)

at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:107)

at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)

at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)

at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)

at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)

at com.google.inject.Scopes$1$1.get(Scopes.java:65)

at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)

at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56)

at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)

at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)

at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)

... 16 more

fatal: plugin failed to install



So I'm no java expert, I do know my way around code but not to the point of reading all the code from gerrit and figure this one out. I saw the Invalid wildcards error in there but I'm not sure if its because I setup the wrong ones in the GitRepositoryManager.java???? Is it a problem with Guice??? or if they need to be different???? or which is the secret sauce for this to make it work.

Any help will be really appreciate it 

Thanks again 

Miguel Z

David Pursehouse

unread,
Feb 4, 2014, 3:04:55 AM2/4/14
to Miguel Zuñiga, repo-d...@googlegroups.com
Instead of building the replication plugin yourself have you tried it
with the replication.jar that is bundled in the gerrit 2.8.1 war file?

> Invalid wildcards +refs/heads/*
>

Where do you have this pattern in the config?
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Selberg, Sven

unread,
Feb 4, 2014, 7:46:56 AM2/4/14
to Miguel Zuñiga, repo-d...@googlegroups.com

If I had to guess you’re probably trying to build replication plugin v2.8.1, stable-2.8.1 on top of gerrit master.

The ref constants where moved from GitRepositoryManager.java to

gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/RefNames.java in

 

https://gerrit-review.googlesource.com/#/c/52909

 

/Sven

--

Miguel Zuñiga

unread,
Feb 4, 2014, 4:13:08 PM2/4/14
to repo-d...@googlegroups.com, Miguel Zuñiga
That was one of the first things that I did, but it gives me the same Invalid wildcards refs error, and then I started the search of building it my self.

:(

Miguel Zuñiga

unread,
Feb 4, 2014, 6:37:27 PM2/4/14
to repo-d...@googlegroups.com, Miguel Zuñiga
So I tried today to build it against the gerrit src stable-2.8 branch instead of master and i got more errors, I couldn't even build it to be honest it got like 100 errors starting with

[-] PARSING BUILD FILES...FINISHED 1.9s

[+] BUILDING...32.6s

 |=> //plugins/replication:replication__plugin__compile...  0.5s (running javac[0.5s])

Log:

warning: [options] bootstrap class path not set in conjunction with -source 1.6

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:17: error: package com.google.common.base does not exist

import com.google.common.base.Objects;

                             ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:18: error: package com.google.common.base does not exist

import com.google.common.base.Throwables;

                             ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:19: error: package com.google.common.collect does not exist

import com.google.common.collect.ImmutableSet;

                                ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:20: error: package com.google.common.collect does not exist

import com.google.common.collect.Lists;

                                ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:21: error: package com.google.gerrit.common.data does not exist

import com.google.gerrit.common.data.AccessSection;

                                    ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:22: error: package com.google.gerrit.common.data does not exist

import com.google.gerrit.common.data.GroupReference;

                                    ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:23: error: package com.google.gerrit.reviewdb.client does not exist

import com.google.gerrit.reviewdb.client.AccountGroup;

                                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:24: error: package com.google.gerrit.reviewdb.client does not exist

import com.google.gerrit.reviewdb.client.Project;

                                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:25: error: package com.google.gerrit.reviewdb.server does not exist

import com.google.gerrit.reviewdb.server.ReviewDb;

                                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:40: error: package com.google.gwtorm.server does not exist

import com.google.gwtorm.server.SchemaFactory;

                               ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:41: error: package com.google.inject does not exist

import com.google.inject.Injector;

                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:42: error: package com.google.inject does not exist

import com.google.inject.Provider;

                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:43: error: package com.google.inject does not exist

import com.google.inject.Provides;

                        ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:44: error: package com.google.inject.assistedinject does not exist

import com.google.inject.assistedinject.FactoryModuleBuilder;

                                       ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:45: error: package com.google.inject.servlet does not exist

import com.google.inject.servlet.RequestScoped;

                                ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:48: error: package org.eclipse.jgit.lib does not exist

import org.eclipse.jgit.lib.Config;

                           ^


version 2.8 is buck enabled right?

Sven Selberg

unread,
Feb 5, 2014, 3:13:37 AM2/5/14
to repo-d...@googlegroups.com, Miguel Zuñiga
Hi!
 
You check out the 2.8.1 release
you make sure the submodules (i.e the core plugins) are in sync with the release.
Then let buck do its magic
 
Try this:
git clone ssh://<your favourite gerrit rep>/gerrit/gerrit
cd gerrit
git checkout v2.8.1
git submodule init
git submodule update
buck build plugins/replication
 
/Sven

Miguel Zuñiga

unread,
Feb 5, 2014, 11:49:05 AM2/5/14
to Sven Selberg, repo-d...@googlegroups.com
Thanks Sven

I followed up your instructions and ran against v2.8.1 instead of the stable-2.8 but it came up with the same set of errors (100 errors + 7 warnings) as when I was running against the stable-2.8

rm -rf ~/gerrit

git clone https://gerrit.googlesource.com/gerrit

cd ~/gerrit/

git checkout v2.8.1

git submodule init

git submodule update

buck build plugins/replication



buck build plugins/replication

[-] PARSING BUILD FILES...FINISHED 2.0s

[+] BUILDING...36.6s

 |=> //plugins/replication:replication__plugin__compile...  0.2s (running javac[0.2s])

Log:

warning: [options] bootstrap class path not set in conjunction with -source 1.6

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:17: error: package com.google.common.base does not exist

import com.google.common.base.Objects;

                             ^

/root/gerrit/plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java:18: error: package com.google.common.base does not exist

import com.google.common.base.Throwables;

                             ^


So to summarize this is what i've tried already

* Use the version that comes with gerrit.war  -> Result in the Invalid wildcards refs error
* Added the REFS changes back into GitRepositoryManager and compile master replication branch with the master replication from gerrit  -> Result in the invalid wild cards res error again
* Tried to compile stable-2.8 gerrit and stable-2.8 replication branch -> Gave me the 100 Errors
* Tried to compile replication from the v2.8.1 gerrit branch -> Gave me the 100 Errors

Any other suggestions?




You received this message because you are subscribed to a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/NEgxb7CTbf0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Miguel Angel Zuniga

David Pursehouse

unread,
Feb 5, 2014, 7:03:57 PM2/5/14
to Miguel Zuñiga, Selberg, Sven, repo-d...@googlegroups.com
On 02/06/2014 01:49 AM, Miguel Zuñiga wrote:
> Thanks Sven
>
> I followed up your instructions and ran against v2.8.1 instead of the
> stable-2.8 but it came up with the same set of errors (100 errors + 7
> warnings) as when I was running against the stable-2.8
>
I've just tried the steps mentioned below in a clean workspace and it
works OK for me.


> rm -rf ~/gerrit
>
> git clone https://gerrit.googlesource.com/gerrit
>
> cd ~/gerrit/
>
> git checkout v2.8.1
>
> git submodule init
>
> git submodule update
>

Can you try "buck build gerrit" here to make sure that Gerrit can be
built in your workspace?
> //plugins/replication:__replication__plugin__compile..__. 0.3s
> > (running javac[0.3s])
> >
> > Log:
> >
> >
> /root/gerrit/plugins/__replication/src/main/java/com/__googlesource/gerrit/plugins/__replication/Destination.java:__238:
>
> > error: cannot find symbol
> >
> > &&
> >
> GitRepositoryManager.REF___CONFIG.equals(head.getLeaf().__getName()))
> {
> >
> > ^
> >
> > symbol: variable REF_CONFIG
> >
> > location: interface
> com.google.gerrit.server.git.__GitRepositoryManager
> >
> >
> /root/gerrit/plugins/__replication/src/main/java/com/__googlesource/gerrit/plugins/__replication/Destination.java:__436:
>
> > error: cannot find symbol
> >
> > if (!replicatePermissions &&
> > GitRepositoryManager.REF___CONFIG.equals(ref)) {
> >
> > ^
> >
> > symbol: variable REF_CONFIG
> >
> > location: interface
> com.google.gerrit.server.git.__GitRepositoryManager
> >
> >
> /root/gerrit/plugins/__replication/src/main/java/com/__googlesource/gerrit/plugins/__replication/PushOne.java:477:
>
> > error: cannot find symbol
> >
> > return !(noPerms &&
> GitRepositoryManager.REF___CONFIG.equals(ref)) &&
> >
> > ^
> >
> > symbol: variable REF_CONFIG
> >
> > location: interface
> com.google.gerrit.server.git.__GitRepositoryManager
> >
> >
> /root/gerrit/plugins/__replication/src/main/java/com/__googlesource/gerrit/plugins/__replication/PushOne.java:478:
>
> > error: cannot find symbol
> >
> >
> !ref.startsWith(__GitRepositoryManager.REFS___CACHE_AUTOMERGE);
> >
> > ^
> >
> > symbol: variable REFS_CACHE_AUTOMERGE
> >
> > location: interface
> com.google.gerrit.server.git.__GitRepositoryManager
> >
> > Errors: 4. Warnings: 0.
> >
> >
> > So I decided to take a look at the other
> GitRepositoryManagers under the
> > gerrit-server
> ...longpath...server/git/__GitRepositoryManager.java
> >
> > I've checked both the 2.8 and 2.7 versions
> >
> >
> > and found that the difference between 2.7 and 2.8 is
> >
> >
> > /** Note tree listing commits we refuse {@code
> refs/meta/reject-commits} */
> >
> > public static final String REF_REJECT_COMMITS =
> "refs/meta/reject-commits";
> >
> >
> > /** Configuration settings for a project {@code
> refs/meta/config} */
> >
> > public static final String REF_CONFIG = "refs/meta/config";
> >
> >
> > /** Configurations of project-specific dashboards (canned
> search queries).*/
> >
> > public static String REFS_DASHBOARDS =
> "refs/meta/dashboards/";
> >
> >
> > /**
> >
> > * Prefix applied to merge commit base nodes.
> >
> > * <p>
> >
> > * References in this directory should take the form
> >
> > * {@code refs/cache-automerge/xx/yyyy..__.} where xx is
> >
> > * the first two digits of the merge commit's object
> >
> > * name, and yyyyy... is the remaining 38. The reference
> >
> > * should point to a treeish that is the automatic merge
> >
> > * result of the merge commit's parents.
> >
> > */
> >
> > public static final String REFS_CACHE_AUTOMERGE =
> "refs/cache-automerge/";
> >
> >
> >
> > So... I decided to add it to my stable-2.8 branch and the
> plugin built
> > properly but at the time of installing it I'm getting:
> >
> >
> >
> com.google.gerrit.server.__plugins.__PluginInstallException:
> Guice provision
> > errors:
> >
> >
> > 1) Error injecting constructor,
> java.lang.__IllegalArgumentException:
> > Invalid wildcards +refs/heads/*
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue.<init>(__ReplicationQueue.java:99)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationModule.configure(__ReplicationModule.java:34)
>
> >
> > while locating
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue
>
> >
> > for parameter 2 at
> >
> com.googlesource.gerrit.__plugins.replication.__OnStartStop.<init>(__OnStartStop.java:36)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationModule.configure(__ReplicationModule.java:45)
>
> >
> > while locating
> com.googlesource.gerrit.__plugins.replication.__OnStartStop
> >
> > while locating
> com.google.gerrit.extensions.__events.LifecycleListener
> > annotated with
> >
> @com.google.inject.internal.__UniqueAnnotations$Internal(__value=111)
>
> >
> >
> > 1 error
> >
> > at
> >
> com.google.gerrit.server.__plugins.PluginLoader.__runPlugin(PluginLoader.java:__412)
>
> >
> > at
> >
> com.google.gerrit.server.__plugins.PluginLoader.__installPluginFromStream(__PluginLoader.java:167)
>
> >
> > at
> >
> com.google.gerrit.sshd.__commands.PluginInstallCommand.__run(PluginInstallCommand.java:__92)
>
> >
> > at
> com.google.gerrit.sshd.__SshCommand$1.run(SshCommand.__java:35)
> >
> > at
> com.google.gerrit.sshd.__BaseCommand$TaskThunk.run(__BaseCommand.java:442)
>
> >
> > at
> java.util.concurrent.__Executors$RunnableAdapter.__call(Executors.java:471)
>
> >
> > at
> java.util.concurrent.__FutureTask.run(FutureTask.__java:262)
> >
> > at
> >
> java.util.concurrent.__ScheduledThreadPoolExecutor$__ScheduledFutureTask.access$__201(__ScheduledThreadPoolExecutor.__java:178)
>
> >
> > at
> >
> java.util.concurrent.__ScheduledThreadPoolExecutor$__ScheduledFutureTask.run(__ScheduledThreadPoolExecutor.__java:292)
>
> >
> > at
> com.google.gerrit.server.git.__WorkQueue$Task.run(WorkQueue.__java:360)
>
> >
> > at
> >
> java.util.concurrent.__ThreadPoolExecutor.runWorker(__ThreadPoolExecutor.java:1145)
>
> >
> > at
> >
> java.util.concurrent.__ThreadPoolExecutor$Worker.run(__ThreadPoolExecutor.java:615)
>
> >
> > at java.lang.Thread.run(Thread.__java:744)
> >
> > Caused by: com.google.inject.__ProvisionException: Guice
> provision errors:
> >
> >
> > 1) Error injecting constructor,
> java.lang.__IllegalArgumentException:
> > Invalid wildcards +refs/heads/*
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue.<init>(__ReplicationQueue.java:99)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationModule.configure(__ReplicationModule.java:34)
>
> >
> > while locating
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue
>
> >
> > for parameter 2 at
> >
> com.googlesource.gerrit.__plugins.replication.__OnStartStop.<init>(__OnStartStop.java:36)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationModule.configure(__ReplicationModule.java:45)
>
> >
> > while locating
> com.googlesource.gerrit.__plugins.replication.__OnStartStop
> >
> > while locating
> com.google.gerrit.extensions.__events.LifecycleListener
> > annotated with
> >
> @com.google.inject.internal.__UniqueAnnotations$Internal(__value=111)
>
> >
> >
> > 1 error
> >
> > at
> com.google.inject.internal.__InjectorImpl$3.get(__InjectorImpl.java:1014)
>
> >
> > at
> >
> com.google.gerrit.lifecycle.__LifecycleManager.start(__LifecycleManager.java:72)
>
> >
> > at
> >
> com.google.gerrit.server.__plugins.JarPlugin.startPlugin(__JarPlugin.java:181)
>
> >
> > at
> com.google.gerrit.server.__plugins.JarPlugin.start(__JarPlugin.java:123)
>
> >
> > at
> >
> com.google.gerrit.server.__plugins.PluginLoader.__runPlugin(PluginLoader.java:__395)
>
> >
> > ... 12 more
> >
> > Caused by: java.lang.__IllegalArgumentException: Invalid
> wildcards
> > +refs/heads/*
> >
> > at
> org.eclipse.jgit.transport.__RefSpec.<init>(RefSpec.java:__152)
> >
> > at
> org.eclipse.jgit.transport.__RemoteConfig.<init>(__RemoteConfig.java:191)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue.allRemotes(__ReplicationQueue.java:239)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue.__allDestinations(__ReplicationQueue.java:196)
>
> >
> > at
> >
> com.googlesource.gerrit.__plugins.replication.__ReplicationQueue.<init>(__ReplicationQueue.java:107)
>
> >
> > at
> sun.reflect.__NativeConstructorAccessorImpl.__newInstance0(Native
> Method)
> >
> > at
> >
> sun.reflect.__NativeConstructorAccessorImpl.__newInstance(__NativeConstructorAccessorImpl.__java:57)
>
> >
> > at
> >
> sun.reflect.__DelegatingConstructorAccessorI__mpl.newInstance(__DelegatingConstructorAccessorI__mpl.java:45)
>
> >
> > at
> java.lang.reflect.Constructor.__newInstance(Constructor.java:__526)
>
> >
> > at
> >
> com.google.inject.internal.__DefaultConstructionProxyFactor__y$2.newInstance(__DefaultConstructionProxyFactor__y.java:86)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorInjector.provision(__ConstructorInjector.java:108)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorInjector.construct(__ConstructorInjector.java:88)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorBindingImpl$__Factory.get(__ConstructorBindingImpl.java:__269)
>
> >
> > at
> >
> com.google.inject.internal.__ProviderToInternalFactoryAdapt__er$1.call(__ProviderToInternalFactoryAdapt__er.java:46)
>
> >
> > at
> >
> com.google.inject.internal.__InjectorImpl.callInContext(__InjectorImpl.java:1058)
>
> >
> > at
> >
> com.google.inject.internal.__ProviderToInternalFactoryAdapt__er.get(__ProviderToInternalFactoryAdapt__er.java:40)
>
> >
> > at com.google.inject.Scopes$1$1.__get(Scopes.java:65)
> >
> > at
> >
> com.google.inject.internal.__InternalFactoryToProviderAdapt__er.get(__InternalFactoryToProviderAdapt__er.java:41)
>
> >
> > at
> >
> com.google.inject.internal.__SingleParameterInjector.__inject(__SingleParameterInjector.java:__38)
>
> >
> > at
> >
> com.google.inject.internal.__SingleParameterInjector.__getAll(__SingleParameterInjector.java:__62)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorInjector.provision(__ConstructorInjector.java:107)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorInjector.construct(__ConstructorInjector.java:88)
>
> >
> > at
> >
> com.google.inject.internal.__ConstructorBindingImpl$__Factory.get(__ConstructorBindingImpl.java:__269)
>
> >
> > at
> >
> com.google.inject.internal.__ProviderToInternalFactoryAdapt__er$1.call(__ProviderToInternalFactoryAdapt__er.java:46)
>
> >
> > at
> >
> com.google.inject.internal.__InjectorImpl.callInContext(__InjectorImpl.java:1058)
>
> >
> > at
> >
> com.google.inject.internal.__ProviderToInternalFactoryAdapt__er.get(__ProviderToInternalFactoryAdapt__er.java:40)
>
> >
> > at com.google.inject.Scopes$1$1.__get(Scopes.java:65)
> >
> > at
> >
> com.google.inject.internal.__InternalFactoryToProviderAdapt__er.get(__InternalFactoryToProviderAdapt__er.java:41)
>
> >
> > at
> com.google.inject.internal.__FactoryProxy.get(FactoryProxy.__java:56)
>
> >
> > at
> com.google.inject.internal.__InjectorImpl$3$1.call(__InjectorImpl.java:1005)
>
> >
> > at
> >
> com.google.inject.internal.__InjectorImpl.callInContext(__InjectorImpl.java:1051)
>
> >
> > at
> com.google.inject.internal.__InjectorImpl$3.get(__InjectorImpl.java:1001)
>
> >
> > ... 16 more
> >
> > fatal: plugin failed to install
> >
> >
> >
> > So I'm no java expert, I do know my way around code but
> not to the point
> > of reading all the code from gerrit and figure this one
> out. I saw the
> > Invalid wildcards error in there but I'm not sure if its
> because I setup
> > the wrong ones in the GitRepositoryManager.java???? Is it
> a problem with
> > Guice??? or if they need to be different???? or which is
> the secret
> > sauce for this to make it work.
> >
> > Any help will be really appreciate it
> >
> > Thanks again
> >
> > Miguel Z
> >
> > --
> > --
> > To unsubscribe, email repo-discuss...@googlegroups.__com
> > More info at
> http://groups.google.com/__group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>
> >
> > ---
> > You received this message because you are subscribed to
> the Google
> > Groups "Repo and Gerrit Discussion" group.
> > To unsubscribe from this group and stop receiving emails
> from it, send
> > an email to repo-discuss...@googlegroups.__com.
> > For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>
>
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to a topic in
> the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/repo-discuss/NEgxb7CTbf0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> repo-discuss...@googlegroups.com
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> Miguel Angel Zuniga
>
Reply all
Reply to author
Forward
0 new messages