|
Hi,
after successfully evaluating Sonar (and, hey, it's great! :-) ), I'm now in the process of switching from the internal Derby db to MySQL. However, this is more difficult than I thought... It first took me a while to figure out that I have to configure Sonar on the Maven side (imho, this is not documented well on http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven). So I ended up with the following in my pom: <profile> <id>sonar</id> <properties> <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> <sonar.jdbc.username>sonar</sonar.jdbc.username> <sonar.jdbc.password>sonar</sonar.jdbc.password> <sonar.host.url>http://localhost:9000</sonar.host.url> </properties> </profile> In my sonar.properties file, I commented out the Derby stuff and commented in the line sonar.jdbc.url: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 I also configured the db credentials: sonar.jdbc.username: sonar sonar.jdbc.password: sonar Finally, maven is called like this: mvn -f "C:\Program Files (x86)\Jenkins\workspace\DMM-Tooling/pom.xml" -Dproject.build.sourceEncoding=UTF-8 clean verify sonar:sonar --activate-profiles coverage,sonar --fail-at-end -e Well, it appears that Sonar can't connect to the db - I attached the exception at the end of the mail. Any idea what I'm doing wrong here? Thanks in advance, Christian The exception: [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project DMM-Tooling: Can not execute Sonar: PicoLifecycleException: method 'public void org.sonar.batch.config.BatchSettingsEnhancer.start()', instance 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, java.lang.RuntimeException: wrapper: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project DMM-Tooling: Can not execute Sonar at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:319) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118) 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) ... 19 more Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.config.BatchSettingsEnhancer.start()', instance 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, java.lang.RuntimeException: wrapper at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) at org.picocontainer.behaviors.Stored.start(Stored.java:110) at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70) at org.sonar.batch.bootstrap.Module.start(Module.java:82) at org.sonar.batch.Batch.execute(Batch.java:100) at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:146) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) ... 23 more Caused by: java.lang.RuntimeException: wrapper at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130) ... 38 more Caused by: java.lang.NullPointerException at org.sonar.jpa.session.AbstractDatabaseConnector.createEntityManager(AbstractDatabaseConnector.java:117) at org.sonar.jpa.session.JpaDatabaseSession.start(JpaDatabaseSession.java:53) at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.getSession(ThreadLocalDatabaseSessionFactory.java:37) at org.sonar.core.config.ConfigurationUtils.prepareDbSession(ConfigurationUtils.java:109) at org.sonar.core.config.ConfigurationUtils.getProjectProperties(ConfigurationUtils.java:88) at org.sonar.batch.config.BatchSettingsEnhancer.start(BatchSettingsEnhancer.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ... 37 more -- Cato the Elder: "After I'm dead I'd rather have people ask why I have no monument than why I have one." --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi Christian,
I think you need to update your maven's settings.xml with the below profile information. This content does not go into project's pom.xml -Anshuma -----Original Message----- From: Christian Soltenborn [mailto:[hidden email]] Sent: Friday, June 08, 2012 1:52 PM To: [hidden email] Subject: [sonar-user] Sonar, Maven, and MySQL Hi, after successfully evaluating Sonar (and, hey, it's great! :-) ), I'm now in the process of switching from the internal Derby db to MySQL. However, this is more difficult than I thought... It first took me a while to figure out that I have to configure Sonar on the Maven side (imho, this is not documented well on http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven). So I ended up with the following in my pom: <profile> <id>sonar</id> <properties> <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> <sonar.jdbc.username>sonar</sonar.jdbc.username> <sonar.jdbc.password>sonar</sonar.jdbc.password> <sonar.host.url>http://localhost:9000</sonar.host.url> </properties> </profile> In my sonar.properties file, I commented out the Derby stuff and commented in the line sonar.jdbc.url: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 I also configured the db credentials: sonar.jdbc.username: sonar sonar.jdbc.password: sonar Finally, maven is called like this: mvn -f "C:\Program Files (x86)\Jenkins\workspace\DMM-Tooling/pom.xml" -Dproject.build.sourceEncoding=UTF-8 clean verify sonar:sonar --activate-profiles coverage,sonar --fail-at-end -e Well, it appears that Sonar can't connect to the db - I attached the exception at the end of the mail. Any idea what I'm doing wrong here? Thanks in advance, Christian The exception: [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project DMM-Tooling: Can not execute Sonar: PicoLifecycleException: method 'public void org.sonar.batch.config.BatchSettingsEnhancer.start()', instance 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, java.lang.RuntimeException: wrapper: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project DMM-Tooling: Can not execute Sonar at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:319) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118) 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) ... 19 more Caused by: org.picocontainer.PicoLifecycleException: PicoLifecycleException: method 'public void org.sonar.batch.config.BatchSettingsEnhancer.start()', instance 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, java.lang.RuntimeException: wrapper at org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) at org.picocontainer.behaviors.Stored.start(Stored.java:110) at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70) at org.sonar.batch.bootstrap.Module.start(Module.java:82) at org.sonar.batch.Batch.execute(Batch.java:100) at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:146) at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) ... 23 more Caused by: java.lang.RuntimeException: wrapper at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130) ... 38 more Caused by: java.lang.NullPointerException at org.sonar.jpa.session.AbstractDatabaseConnector.createEntityManager(AbstractDatabaseConnector.java:117) at org.sonar.jpa.session.JpaDatabaseSession.start(JpaDatabaseSession.java:53) at org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.getSession(ThreadLocalDatabaseSessionFactory.java:37) at org.sonar.core.config.ConfigurationUtils.prepareDbSession(ConfigurationUtils.java:109) at org.sonar.core.config.ConfigurationUtils.getProjectProperties(ConfigurationUtils.java:88) at org.sonar.batch.config.BatchSettingsEnhancer.start(BatchSettingsEnhancer.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) ... 37 more -- Cato the Elder: "After I'm dead I'd rather have people ask why I have no monument than why I have one." --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi,
Everything is documented here:
http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven There is a link to the above page in the Prerequisites section of http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven.
I slightly changed the terms to make it clearer:
Regards,
David RACODON | SonarSource
Senior Consultant On 8 June 2012 10:34, Anshuma Ashok Goyal <[hidden email]> wrote: Hi Christian, |
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi again, Anshuma and David: thanks for your fast help, and sorry that I didn't see the doc you are referring to... I'm answering that late because I moved my whole build to a dedicated machine, and I wanted to see if my problems go away on that machine. And they did. So here are my lessons learned: - - apparently, you don't have to put the sonar database info into maven's settings.xml - I stored them within my parent pom (inside my "sonar" profile). - - The Derby db seems to not be that slow at the beginning, but appears to get much much slower if the db fills with data. As such, I had totally underestimated the "this is not for production" warning (my build got slower and slower, but there were other reasons, too, so I just didn't notice the loss of speed caused by the Derby db - to give you some figures: My build's duration was 6:30 hours at the end, and my estimation is that sonar used 1.5-2 hours out of that. Now, my whole build takes 35min, and this is not related to the new machine :-) ). Maybe that warning (or the docs) should be even clearer about that... - - Finally, I had issues getting MySQL 5.5 installed properly on Win7-64. I finally ended up with MySQL 5.1 which works just fine. Note that the latter is not at all related to sonar, but I thought I'd share it anyways. Maybe this helps somebody... Best wishes, Christian Am 08.06.2012 10:41, schrieb David Racodon: > Hi, > > Everything is documented here: > http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven > There is a link to the above page in the Prerequisites section of > http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven. > > I slightly changed the terms to make it clearer: > > /You must have previously /installed and configured Maven > <http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven> > => You must have previously installed and configured Maven for > Sonar > <http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+Maven> > > > > Regards, * * *David RACODON | **SonarSource */Senior Consultant/ > http://sonarsource.com <http://sonarsource.com/> > > > > On 8 June 2012 10:34, Anshuma Ashok Goyal > <[hidden email] <mailto:[hidden email]>> > wrote: > > Hi Christian, > > I think you need to update your maven's settings.xml with the > below profile information. This content does not go into project's > pom.xml > > -Anshuma > > -----Original Message----- From: Christian Soltenborn > [mailto:[hidden email] > <mailto:[hidden email]>] Sent: Friday, June 08, 2012 > 1:52 PM To: [hidden email] > <mailto:[hidden email]> Subject: [sonar-user] Sonar, > Maven, and MySQL > > Hi, > > after successfully evaluating Sonar (and, hey, it's great! :-) ), > I'm now in the process of switching from the internal Derby db to > MySQL. However, this is more difficult than I thought... > > It first took me a while to figure out that I have to configure > Sonar on the Maven side (imho, this is not documented well on > http://docs.codehaus.org/display/SONAR/Analyzing+with+Maven). So I > ended up with the following in my pom: > > <profile> <id>sonar</id> <properties> > > <sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8</sonar.jdbc.url> > > <sonar.jdbc.username>sonar</sonar.jdbc.username> > <sonar.jdbc.password>sonar</sonar.jdbc.password> > <sonar.host.url>http://localhost:9000</sonar.host.url> > </properties> </profile> > > In my sonar.properties file, I commented out the Derby stuff and > commented in the line > > sonar.jdbc.url: > jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8 > > I also configured the db credentials: > > sonar.jdbc.username: sonar sonar.jdbc.password: sonar > > Finally, maven is called like this: > > mvn -f "C:\Program Files > (x86)\Jenkins\workspace\DMM-Tooling/pom.xml" > -Dproject.build.sourceEncoding=UTF-8 clean verify sonar:sonar > --activate-profiles coverage,sonar --fail-at-end -e > > Well, it appears that Sonar can't connect to the db - I attached > the exception at the end of the mail. Any idea what I'm doing wrong > here? > > Thanks in advance, Christian > > > The exception: > > [ERROR] Failed to execute goal > org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on > project DMM-Tooling: Can not execute Sonar: > PicoLifecycleException: method 'public void > org.sonar.batch.config.BatchSettingsEnhancer.start()', instance > 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, > java.lang.RuntimeException: wrapper: NullPointerException -> [Help > 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed > to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar > (default-cli) on project DMM-Tooling: Can not execute Sonar at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) > > > 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:319) > 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:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > 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: org.apache.maven.plugin.MojoExecutionException: Can not > execute Sonar at > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:118) > > 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) > > ... 19 more > Caused by: org.picocontainer.PicoLifecycleException: > PicoLifecycleException: method 'public void > org.sonar.batch.config.BatchSettingsEnhancer.start()', instance > 'org.sonar.batch.config.BatchSettingsEnhancer@1f55ffca, > java.lang.RuntimeException: wrapper at > org.picocontainer.monitors.NullComponentMonitor.lifecycleInvocationFailed(NullComponentMonitor.java:77) > > at > org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:132) > > at > org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115) > > at > org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89) > > at > org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84) > > at > org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169) > > at > org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132) > > at org.picocontainer.behaviors.Stored.start(Stored.java:110) > at > org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:996) > > at > org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:989) > > at > org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:746) > > at > org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:70) > > at org.sonar.batch.bootstrap.Module.start(Module.java:82) > at org.sonar.batch.Batch.execute(Batch.java:100) at > org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:146) at > org.sonar.maven3.SonarMojo.execute(SonarMojo.java:136) at > org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) > > ... 23 more > Caused by: java.lang.RuntimeException: wrapper at > org.picocontainer.lifecycle.ReflectionLifecycleStrategy.monitorAndThrowReflectionLifecycleException(ReflectionLifecycleStrategy.java:130) > > ... 38 more > Caused by: java.lang.NullPointerException at > org.sonar.jpa.session.AbstractDatabaseConnector.createEntityManager(AbstractDatabaseConnector.java:117) > > at > org.sonar.jpa.session.JpaDatabaseSession.start(JpaDatabaseSession.java:53) > > at > org.sonar.jpa.session.ThreadLocalDatabaseSessionFactory.getSession(ThreadLocalDatabaseSessionFactory.java:37) > > at > org.sonar.core.config.ConfigurationUtils.prepareDbSession(ConfigurationUtils.java:109) > > at > org.sonar.core.config.ConfigurationUtils.getProjectProperties(ConfigurationUtils.java:88) > > at > org.sonar.batch.config.BatchSettingsEnhancer.start(BatchSettingsEnhancer.java:46) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110) > > ... 37 more > > > > > -- Cato the Elder: "After I'm dead I'd rather have people ask why I > have no monument than why I have one." > > --------------------------------------------------------------------- > > > > http://xircles.codehaus.org/manage_email > > > > **************** CAUTION - Disclaimer ***************** This e-mail > contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely > for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the > original message. Further, you are not to copy, disclose, or > distribute this e-mail or its contents to any other person and any > such actions are unlawful. This e-mail may contain viruses. Infosys > has taken every reasonable precaution to minimize this risk, but is > not liable for any damage you may sustain as a result of any virus > in this e-mail. You should carry out your own virus checks before > opening the e-mail or attachment. Infosys reserves the right to > monitor and review the content of all messages sent to or from this > e-mail address. Messages sent to or from this e-mail address may be > stored on the Infosys e-mail system. ***INFOSYS******** End of > Disclaimer ********INFOSYS*** > > --------------------------------------------------------------------- > > > > http://xircles.codehaus.org/manage_email > > > - -- John Lennon: "Life is what happens to you while you're busy making other plans." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQIcBAEBAgAGBQJP6rkiAAoJEDsRQcq9cXedv5EP/16fTEVpAaP+bMcXLxlwBWBg nZiHitpmhncNMxD94GNRfSKGf+I5MI80HpDB24imW/3VceU3MMru93XQ949EzejM /a2So4IuYmuDNrOgwttqg8Fw/h5PfOP74itL72ZBd3/hie7/QOcEMAgCdmR6vYv/ I3SuQFqq390T84DbyftAtUmFuHu6WNKRBMQmUOjE/83EdR4GrHyxdRfeDJYZyYLn BzmCsE2CX25SGULK0uh1oY7nvMe/SXxjwIGRQfnIJTzzMlymp21mPxTlyI9jbCRY BIuNhQu8CWRruMsvdCF5qjNsxplpqGHAofWpFd2ZVD7bUmzIfHCUw/wAGRBwRaVv 5mYTqS7LGhpAJSsx2mKayPAdUNMETIRnnO45DBv71lfva3CUCDK83XFbjIGhGOKF C/I6BwyYhy2jb6lhwjHK8cyXZjeJ9ns1j99+c+k0wD/upWoDFSr2HXYdsBIcJkUT N+US5r6+/o1MnaBrN0YTbEvmheurOJ5f9e7MS5zG/iOmV6TGWYwt7VQcAIz0Icis ObtHXrZaEy9YE/oG2s1Phxrg1JXECduNw0tbmBByeC+71PS8aIUV6aCQd9lawEAC j3XlNxCoPxnrNEksRUU4y+9MotaV0fKIUxRcLNk3h3F0A2cAuJnw705Nm/NqM7u+ m01/yjJiPg+uSqEudUH0 =CcSc -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi Chrisian, thank you for having shared this feedback !
-----
Sonar for Continuous Inspection On Wed, Jun 27, 2012 at 9:41 AM, Christian Soltenborn <[hidden email]> wrote: -----BEGIN PGP SIGNED MESSAGE----- |
| Powered by Nabble | Edit this page |
