Quantcast

[sonar-dev] Guice provision errors

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sonar-dev] Guice provision errors

Lars K.W. Gohlke
Hallo community,

I try to execute MavenMojo from within a sonar-plugin.

Doing this I get the following error, I do not complete understand

Error injecting: org.apache.maven.settings.crypto.DefaultSettingsDecrypter
com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting: private
org.sonatype.plexus.components.sec.dispatcher.SecDispatcher
org.apache.maven.settings.crypto.DefaultSettingsDecrypter.securityDispatcher
   while locating org.apache.maven.settings.crypto.DefaultSettingsDecrypter
1 error
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
        at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at
org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:217)
        at
org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at
org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at
com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at
com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at
com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at
com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at
org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:217)
        at
org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at
org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at
com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at
com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at
com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at
com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at
org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at
com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at
com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at
org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at
org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239)
        at hudson.maven.MavenEmbedder.lookup(MavenEmbedder.java:557)
        at
hudson.maven.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:155)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:122)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:107)
        at
de.lgohlke.sonar.maven.MavenSonarEmbedder$MavenSonarEmbedderBuilder.build(MavenSonarEmbedder.java:172)
        at
de.lgohlke.sonar.maven.plugin.DefaultMavenGoalExecutorImpl.execute(DefaultMavenGoalExecutorImpl.java:82)
        at
de.lgohlke.sonar.maven.plugin.versions.MavenVersionSensor.analyse(MavenVersionSensor.java:77)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
        at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
        at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:111)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:73)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:60)
        at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:142)
        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.IllegalArgumentException: Can not set
org.sonatype.plexus.components.sec.dispatcher.SecDispatcher field
org.apache.maven.settings.crypto.DefaultSettingsDecrypter.securityDispatcher
to
org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher$__plexus4
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
        at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
        at
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
        at java.lang.reflect.Field.set(Field.java:680)
        at
org.sonatype.guice.bean.reflect.BeanPropertyField.set(BeanPropertyField.java:73)
        at
org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at
org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at
com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at
com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at
com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at
com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at
com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at
com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        ... 137 more

it continues with some more errors in the same field.

The tests alone are running.

What is wrong, please give me some hints!


------------------------
Mit freundlichen Grüßen
Diplom-Inform. (FH) Lars K.W. Gohlke, M.Sc.
mailto:[hidden email]
-------------------------
Visit http://www.lgohlke.de

07.07.2012 21:54


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

lkwg82.vcf (194 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] Guice provision errors

Simon Brandhof
Hi,

You can't directly execute a maven plugin in the same process. You have to use the extension points org.sonar.api.batch.maven.DependsUponMavenPlugin and MavenPluginHandler. See examples in the cobertura plugin :
https://github.com/SonarSource/sonar/blob/master/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaMavenPluginHandler.java
https://github.com/SonarSource/sonar/blob/master/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaMavenInitializer.java

Regards

On 7 July 2012 21:58, Lars K.W. Gohlke <[hidden email]> wrote:
Hallo community,

I try to execute MavenMojo from within a sonar-plugin.

Doing this I get the following error, I do not complete understand

Error injecting: org.apache.maven.settings.crypto.DefaultSettingsDecrypter
com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting: private org.sonatype.plexus.components.sec.dispatcher.SecDispatcher org.apache.maven.settings.crypto.DefaultSettingsDecrypter.securityDispatcher
  while locating org.apache.maven.settings.crypto.DefaultSettingsDecrypter
1 error
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:974)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:217)
        at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at org.sonatype.guice.plexus.binders.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:217)
        at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
        at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:59)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
        at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:239)
        at hudson.maven.MavenEmbedder.lookup(MavenEmbedder.java:557)
        at hudson.maven.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:155)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:122)
        at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:107)
        at de.lgohlke.sonar.maven.MavenSonarEmbedder$MavenSonarEmbedderBuilder.build(MavenSonarEmbedder.java:172)
        at de.lgohlke.sonar.maven.plugin.DefaultMavenGoalExecutorImpl.execute(DefaultMavenGoalExecutorImpl.java:82)
        at de.lgohlke.sonar.maven.plugin.versions.MavenVersionSensor.analyse(MavenVersionSensor.java:77)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
        at org.sonar.batch.phases.Phases.execute(Phases.java:93)
        at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:139)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
        at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:111)
        at org.sonar.batch.bootstrap.Module.start(Module.java:83)
        at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:73)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:60)
        at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:142)
        at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
        at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
        at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.IllegalArgumentException: Can not set org.sonatype.plexus.components.sec.dispatcher.SecDispatcher field org.apache.maven.settings.crypto.DefaultSettingsDecrypter.securityDispatcher to org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher$__plexus4
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
        at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
        at java.lang.reflect.Field.set(Field.java:680)
        at org.sonatype.guice.bean.reflect.BeanPropertyField.set(BeanPropertyField.java:73)
        at org.sonatype.guice.plexus.binders.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:45)
        at org.sonatype.guice.bean.inject.BeanInjector.injectMembers(BeanInjector.java:53)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
        at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:117)
        at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
        at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:91)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:89)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
        at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
        at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
        ... 137 more

it continues with some more errors in the same field.

The tests alone are running.

What is wrong, please give me some hints!


------------------------
Mit freundlichen Grüßen
Diplom-Inform. (FH) Lars K.W. Gohlke, M.Sc.
mailto:[hidden email]
-------------------------
Visit http://www.lgohlke.de

07.07.2012 21:54


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




--

Simon BRANDHOF | SonarSource
http://sonarsource.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] Guice provision errors

Lars K.W. Gohlke
Hi Simon,

first thanks for the hint.

And another question, may I put my own MavenPluginExecutor implementaion instead of the already exiting into the lifecycle and how?

Background: I need to change set an executionListener into the mavenRequest

mfg Lars

-------- Original-Nachricht --------
> Datum: Mon, 9 Jul 2012 09:53:06 +0200
> Von: Simon Brandhof <[hidden email]>
> An: [hidden email]
> Betreff: Re: [sonar-dev] Guice provision errors

> Hi,
>
> You can't directly execute a maven plugin in the same process. You have to
> use the extension points org.sonar.api.batch.maven.DependsUponMavenPlugin
> and MavenPluginHandler. See examples in the cobertura plugin :
> https://github.com/SonarSource/sonar/blob/master/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaMavenPluginHandler.java
> https://github.com/SonarSource/sonar/blob/master/plugins/sonar-cobertura-plugin/src/main/java/org/sonar/plugins/cobertura/CoberturaMavenInitializer.java
>
> Regards
>
> On 7 July 2012 21:58, Lars K.W. Gohlke <[hidden email]> wrote:
>
> > Hallo community,
> >
> > I try to execute MavenMojo from within a sonar-plugin.
> >
> > Doing this I get the following error, I do not complete understand
> >
> > Error injecting: org.apache.maven.settings.**crypto.**
> > DefaultSettingsDecrypter
> > com.google.inject.**ProvisionException: Guice provision errors:
> >
> > 1) Error injecting: private org.sonatype.plexus.**
> > components.sec.dispatcher.**SecDispatcher org.apache.maven.settings.**
> > crypto.**DefaultSettingsDecrypter.**securityDispatcher
> >   while locating org.apache.maven.settings.**crypto.**
> > DefaultSettingsDecrypter
> > 1 error
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:974)
> >         at com.google.inject.internal.**InjectorImpl.getInstance(**
> > InjectorImpl.java:1000)
> >         at org.sonatype.guice.bean.**reflect.AbstractDeferredClass.**
> > get(AbstractDeferredClass.**java:45)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > provision(**ProviderInternalFactory.java:**84)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.provision(**InternalFactoryToInitializable**Adapter.java:52)
> >         at com.google.inject.internal.**ProviderInternalFactory$1.**
> > call(ProviderInternalFactory.**java:70)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:115)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > circularGet(**ProviderInternalFactory.java:**68)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.get(**InternalFactoryToInitializable**Adapter.java:45)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er$1.call(**ProviderToInternalFactoryAdapt**er.java:46)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er.get(**ProviderToInternalFactoryAdapt**er.java:40)
> >         at com.google.inject.Scopes$1$1.**get(Scopes.java:59)
> >         at com.google.inject.internal.**InternalFactoryToProviderAdapt**
> > er.get(**InternalFactoryToProviderAdapt**er.java:41)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         at org.sonatype.guice.bean.**locators.LazyBeanEntry.**
> > getValue(LazyBeanEntry.java:**83)
> >         at org.sonatype.guice.plexus.**locators.LazyPlexusBean.**
> > getValue(LazyPlexusBean.java:**49)
> >         at org.sonatype.guice.plexus.**binders.PlexusRequirements$**
> > RequirementProvider.get(**PlexusRequirements.java:217)
> >         at
> org.sonatype.guice.plexus.**binders.**ProvidedPropertyBinding.*
> > *injectProperty(**ProvidedPropertyBinding.java:**45)
> >         at org.sonatype.guice.bean.**inject.BeanInjector.**
> > injectMembers(BeanInjector.**java:53)
> >         at com.google.inject.internal.**MembersInjectorImpl.**
> > injectMembers(**MembersInjectorImpl.java:128)
> >         at com.google.inject.internal.**ConstructorInjector.provision(**
> > ConstructorInjector.java:117)
> >         at com.google.inject.internal.**ConstructorInjector.access$**
> > 000(ConstructorInjector.java:**32)
> >         at com.google.inject.internal.**ConstructorInjector$1.call(**
> > ConstructorInjector.java:91)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:115)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ConstructorInjector.construct(**
> > ConstructorInjector.java:89)
> >         at com.google.inject.internal.**ConstructorBindingImpl$**
> > Factory.get(**ConstructorBindingImpl.java:**259)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         at com.google.inject.internal.**InjectorImpl.getInstance(**
> > InjectorImpl.java:1000)
> >         at org.sonatype.guice.bean.**reflect.AbstractDeferredClass.**
> > get(AbstractDeferredClass.**java:45)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > provision(**ProviderInternalFactory.java:**84)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.provision(**InternalFactoryToInitializable**Adapter.java:52)
> >         at com.google.inject.internal.**ProviderInternalFactory$1.**
> > call(ProviderInternalFactory.**java:70)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:115)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > circularGet(**ProviderInternalFactory.java:**68)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.get(**InternalFactoryToInitializable**Adapter.java:45)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er$1.call(**ProviderToInternalFactoryAdapt**er.java:46)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er.get(**ProviderToInternalFactoryAdapt**er.java:40)
> >         at com.google.inject.Scopes$1$1.**get(Scopes.java:59)
> >         at com.google.inject.internal.**InternalFactoryToProviderAdapt**
> > er.get(**InternalFactoryToProviderAdapt**er.java:41)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         at org.sonatype.guice.bean.**locators.LazyBeanEntry.**
> > getValue(LazyBeanEntry.java:**83)
> >         at org.sonatype.guice.plexus.**locators.LazyPlexusBean.**
> > getValue(LazyPlexusBean.java:**49)
> >         at org.sonatype.guice.plexus.**binders.PlexusRequirements$**
> > RequirementProvider.get(**PlexusRequirements.java:217)
> >         at
> org.sonatype.guice.plexus.**binders.**ProvidedPropertyBinding.*
> > *injectProperty(**ProvidedPropertyBinding.java:**45)
> >         at org.sonatype.guice.bean.**inject.BeanInjector.**
> > injectMembers(BeanInjector.**java:53)
> >         at com.google.inject.internal.**MembersInjectorImpl.**
> > injectMembers(**MembersInjectorImpl.java:128)
> >         at com.google.inject.internal.**ConstructorInjector.provision(**
> > ConstructorInjector.java:117)
> >         at com.google.inject.internal.**ConstructorInjector.access$**
> > 000(ConstructorInjector.java:**32)
> >         at com.google.inject.internal.**ConstructorInjector$1.call(**
> > ConstructorInjector.java:91)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:115)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ConstructorInjector.construct(**
> > ConstructorInjector.java:89)
> >         at com.google.inject.internal.**ConstructorBindingImpl$**
> > Factory.get(**ConstructorBindingImpl.java:**259)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         at com.google.inject.internal.**InjectorImpl.getInstance(**
> > InjectorImpl.java:1000)
> >         at org.sonatype.guice.bean.**reflect.AbstractDeferredClass.**
> > get(AbstractDeferredClass.**java:45)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > provision(**ProviderInternalFactory.java:**84)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.provision(**InternalFactoryToInitializable**Adapter.java:52)
> >         at com.google.inject.internal.**ProviderInternalFactory$1.**
> > call(ProviderInternalFactory.**java:70)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at org.sonatype.guice.plexus.**lifecycles.**
> >
> PlexusLifecycleManager.**onProvision(**PlexusLifecycleManager.java:**138)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:108)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ProviderInternalFactory.**
> > circularGet(**ProviderInternalFactory.java:**68)
> >         at com.google.inject.internal.**InternalFactoryToInitializable**
> > Adapter.get(**InternalFactoryToInitializable**Adapter.java:45)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er$1.call(**ProviderToInternalFactoryAdapt**er.java:46)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**ProviderToInternalFactoryAdapt**
> > er.get(**ProviderToInternalFactoryAdapt**er.java:40)
> >         at com.google.inject.Scopes$1$1.**get(Scopes.java:59)
> >         at com.google.inject.internal.**InternalFactoryToProviderAdapt**
> > er.get(**InternalFactoryToProviderAdapt**er.java:41)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1011)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         at org.sonatype.guice.bean.**locators.LazyBeanEntry.**
> > getValue(LazyBeanEntry.java:**83)
> >         at org.sonatype.guice.plexus.**locators.LazyPlexusBean.**
> > getValue(LazyPlexusBean.java:**49)
> >         at org.codehaus.plexus.**DefaultPlexusContainer.lookup(**
> > DefaultPlexusContainer.java:**253)
> >         at org.codehaus.plexus.**DefaultPlexusContainer.lookup(**
> > DefaultPlexusContainer.java:**245)
> >         at org.codehaus.plexus.**DefaultPlexusContainer.lookup(**
> > DefaultPlexusContainer.java:**239)
> >         at hudson.maven.MavenEmbedder.**lookup(MavenEmbedder.java:557)
> >         at hudson.maven.MavenEmbedder.**buildMavenExecutionRequest(**
> > MavenEmbedder.java:155)
> >         at hudson.maven.MavenEmbedder.<**init>(MavenEmbedder.java:122)
> >         at hudson.maven.MavenEmbedder.<**init>(MavenEmbedder.java:107)
> >         at de.lgohlke.sonar.maven.**MavenSonarEmbedder$**
> > MavenSonarEmbedderBuilder.**build(MavenSonarEmbedder.java:**172)
> >         at
> de.lgohlke.sonar.maven.plugin.**DefaultMavenGoalExecutorImpl.**
> > execute(**DefaultMavenGoalExecutorImpl.**java:82)
> >         at
> de.lgohlke.sonar.maven.plugin.**versions.MavenVersionSensor.**
> > analyse(MavenVersionSensor.**java:77)
> >         at org.sonar.batch.phases.**SensorsExecutor.execute(**
> > SensorsExecutor.java:64)
> >         at org.sonar.batch.phases.Phases.**execute(Phases.java:93)
> >         at org.sonar.batch.bootstrap.**ProjectModule.doStart(**
> > ProjectModule.java:139)
> >         at org.sonar.batch.bootstrap.**Module.start(Module.java:83)
> >         at org.sonar.batch.bootstrap.**BatchModule.analyze(**
> > BatchModule.java:115)
> >         at org.sonar.batch.bootstrap.**BatchModule.doStart(**
> > BatchModule.java:105)
> >         at org.sonar.batch.bootstrap.**Module.start(Module.java:83)
> >         at org.sonar.batch.bootstrap.**BootstrapModule.doStart(**
> > BootstrapModule.java:111)
> >         at org.sonar.batch.bootstrap.**Module.start(Module.java:83)
> >         at org.sonar.batch.bootstrapper.**Batch.startBatch(Batch.java:**
> > 73)
> >         at org.sonar.batch.bootstrapper.**Batch.execute(Batch.java:60)
> >         at org.sonar.maven3.SonarMojo.**execute(SonarMojo.java:142)
> >         at org.codehaus.mojo.sonar.**Bootstraper.executeMojo(**
> > Bootstraper.java:113)
> >         at org.codehaus.mojo.sonar.**Bootstraper.start(Bootstraper.**
> > java:65)
> >         at org.codehaus.mojo.sonar.**SonarMojo.execute(SonarMojo.**
> > java:90)
> >         at org.apache.maven.plugin.**DefaultBuildPluginManager.**
> > executeMojo(**DefaultBuildPluginManager.**java:101)
> >         at org.apache.maven.lifecycle.**internal.MojoExecutor.execute(**
> > MojoExecutor.java:209)
> >         at org.apache.maven.lifecycle.**internal.MojoExecutor.execute(**
> > MojoExecutor.java:153)
> >         at org.apache.maven.lifecycle.**internal.MojoExecutor.execute(**
> > MojoExecutor.java:145)
> >         at
> org.apache.maven.lifecycle.**internal.**LifecycleModuleBuilder.
> > **buildProject(**LifecycleModuleBuilder.java:**84)
> >         at
> org.apache.maven.lifecycle.**internal.**LifecycleModuleBuilder.
> > **buildProject(**LifecycleModuleBuilder.java:**59)
> >         at org.apache.maven.lifecycle.**internal.LifecycleStarter.**
> > singleThreadedBuild(**LifecycleStarter.java:183)
> >         at org.apache.maven.lifecycle.**internal.LifecycleStarter.**
> > execute(LifecycleStarter.java:**161)
> >         at
> org.apache.maven.DefaultMaven.**doExecute(DefaultMaven.java:**
> > 320)
> >         at
> org.apache.maven.DefaultMaven.**execute(DefaultMaven.java:156)
> >         at org.apache.maven.cli.MavenCli.**execute(MavenCli.java:537)
> >         at org.apache.maven.cli.MavenCli.**doMain(MavenCli.java:196)
> >         at org.apache.maven.cli.MavenCli.**main(MavenCli.java:141)
> >         at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native
> Method)
> >         at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
> > NativeMethodAccessorImpl.java:**57)
> >         at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
> > DelegatingMethodAccessorImpl.**java:43)
> >         at java.lang.reflect.Method.**invoke(Method.java:601)
> >         at org.codehaus.plexus.**classworlds.launcher.Launcher.**
> > launchEnhanced(Launcher.java:**290)
> >         at org.codehaus.plexus.**classworlds.launcher.Launcher.**
> > launch(Launcher.java:230)
> >         at org.codehaus.plexus.**classworlds.launcher.Launcher.**
> > mainWithExitCode(Launcher.**java:409)
> >         at org.codehaus.plexus.**classworlds.launcher.Launcher.**
> > main(Launcher.java:352)
> > Caused by: java.lang.**IllegalArgumentException: Can not set
> > org.sonatype.plexus.**components.sec.dispatcher.**SecDispatcher field
> >
> org.apache.maven.settings.**crypto.**DefaultSettingsDecrypter.**securityDispatcher
> > to org.sonatype.plexus.**components.sec.dispatcher.**
> > DefaultSecDispatcher$__plexus4
> >         at sun.reflect.**UnsafeFieldAccessorImpl.**
> > throwSetIllegalArgumentExcepti**on(UnsafeFieldAccessorImpl.**java:164)
> >         at sun.reflect.**UnsafeFieldAccessorImpl.**
> > throwSetIllegalArgumentExcepti**on(UnsafeFieldAccessorImpl.**java:168)
> >         at sun.reflect.**UnsafeObjectFieldAccessorImpl.**set(**
> > UnsafeObjectFieldAccessorImpl.**java:81)
> >         at java.lang.reflect.Field.set(**Field.java:680)
> >         at org.sonatype.guice.bean.**reflect.BeanPropertyField.set(**
> > BeanPropertyField.java:73)
> >         at
> org.sonatype.guice.plexus.**binders.**ProvidedPropertyBinding.*
> > *injectProperty(**ProvidedPropertyBinding.java:**45)
> >         at org.sonatype.guice.bean.**inject.BeanInjector.**
> > injectMembers(BeanInjector.**java:53)
> >         at com.google.inject.internal.**MembersInjectorImpl.**
> > injectMembers(**MembersInjectorImpl.java:128)
> >         at com.google.inject.internal.**ConstructorInjector.provision(**
> > ConstructorInjector.java:117)
> >         at com.google.inject.internal.**ConstructorInjector.access$**
> > 000(ConstructorInjector.java:**32)
> >         at com.google.inject.internal.**ConstructorInjector$1.call(**
> > ConstructorInjector.java:91)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:100)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > $Provision.provision(**ProvisionListenerStackCallback**.java:115)
> >         at com.google.inject.internal.**ProvisionListenerStackCallback**
> > .provision(**ProvisionListenerStackCallback**.java:55)
> >         at com.google.inject.internal.**ConstructorInjector.construct(**
> > ConstructorInjector.java:89)
> >         at com.google.inject.internal.**ConstructorBindingImpl$**
> > Factory.get(**ConstructorBindingImpl.java:**259)
> >         at com.google.inject.internal.**InjectorImpl$3$1.call(**
> > InjectorImpl.java:965)
> >         at com.google.inject.internal.**InjectorImpl.callInContext(**
> > InjectorImpl.java:1018)
> >         at com.google.inject.internal.**InjectorImpl$3.get(**
> > InjectorImpl.java:961)
> >         ... 137 more
> >
> > it continues with some more errors in the same field.
> >
> > The tests alone are running.
> >
> > What is wrong, please give me some hints!
> >
> >
> > ------------------------
> > Mit freundlichen Grüßen
> > Diplom-Inform. (FH) Lars K.W. Gohlke, M.Sc.
> > mailto:[hidden email]
> > -------------------------
> > Visit http://www.lgohlke.de
> >
> > 07.07.2012 21:54
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
>
> *Simon BRANDHOF | **SonarSource
> ***http://sonarsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...