The sonar build with maven cause StackOverflowError.
INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.sonar:sonar-maven-plugin:4.5.6:sonar (default-cli) on project bug-stackoverflow: null: MojoExecutionException: StackOverflowError -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.sonar:sonar-maven-plugin:4.5.6:sonar (default-cli) on project bug-stackoverflow: null
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
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:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException
at org.sonar.maven.ExceptionHandling.handle(ExceptionHandling.java:37)
at org.sonar.maven.SonarMojo.execute(SonarMojo.java:175)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.lang.StackOverflowError
at com.google.common.collect.UnmodifiableIterator.<init>(UnmodifiableIterator.java:32)
at com.google.common.collect.Iterators$13.<init>(Iterators.java:1057)
at com.google.common.collect.Iterators.singletonIterator(Iterators.java:1057)
at com.google.common.collect.SingletonImmutableList.iterator(SingletonImmutableList.java:55)
at com.google.common.collect.SingletonImmutableList.iterator(SingletonImmutableList.java:34)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:204)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:199)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:205)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:199)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:205)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:199)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:205)
at org.sonar.java.resolve.Resolve.findMemberType(Resolve.java:199)
I've put a simple project on github to reproduce : https://github.com/gcuisinier/sonarqube-stackoverflow-bug
It's seems to be related to the "short name" somewhere. Because I can fix the build in two way :
- use fully qualified name in the implements of the AbstractImpl (see https://github.com/gcuisinier/sonarqube-stackoverflow-bug/commit/45425862c71ad1dbba9eafd8bd64618a5744eb60)
- rename the service or the interface (see https://github.com/gcuisinier/sonarqube-stackoverflow-bug/commit/bd244fee9a7233196bd4783a918f05c8b29e2ff2)
What do you think? Is it a bug ?
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ee583df1-807d-404b-9b07-ceb4a2906829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/95d68d95-e48a-443b-a020-5592f1fd54eb%40googlegroups.com.