Missing class ==> StackOverFlowError
------------------------------------
Key: MFINDBUGS-79
URL: http://jira.codehaus.org/browse/MFINDBUGS-79
Project: Maven 2.x FindBugs Plugin
Issue Type: Bug
Affects Versions: 2.0.1
Environment: Sonar 1.8 : Light Mode
Reporter: NicolasTHERY
Attachments: outputMavenFindBugs.txt
Hi everyone,
I'm reading the issues for one week now and I can't fix my problem. As I'm a
beginner using sonar, I may be redundant with another issue but I really need
help.
I'm using *sonar 1.8* using the "Sonar way *with findbugs*" profile.
I'm using the *light mode* because my projects are not using maven.
Here is the command line I launch :
{quote}{color:blue}mvn org.codehaus.sonar:sonar-maven-plugin:1.8:sonar -e
-X{color} {quote}
*The issue is* :
{quote}{color:blue}
[DEBUG] Observe class: ...
[DEBUG] Observe class: ...
[DEBUG] Observe class: ...
[DEBUG] Observe class:{color}{color:red}___MY PROJECT
PATH___{color}{color:blue} /web/servlet/FileViewerServlet
[DEBUG] Found an analysisError: huh
[DEBUG] Found a missing class: javax.servlet.http.HttpServlet
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.StackOverflowError
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:485)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:476)
at
org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:104)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:77)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:85)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:182)
at
org.codehaus.mojo.findbugs.XDocsReporter.reportMissingClass(XDocsReporter.groovy:253)
{color} {quote}
*My pom.xml contains the following text* :
{quote}{color:blue}{code:xml}
<pluginRepositories>
<pluginRepository>
<id>codehaus-snapshot-plugins</id>
<name>codehaus-shapshot-plugins</name>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
...
<build>
<sourceDirectory>src</sourceDirectory>
<outputDirectory>WebContent/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
...
{code}{color} {quote}
I also noticed that the findbugs version launched was not the SNAPSHOT one :
At the beginning :
{quote}{color:blue}
[INFO] Velocity successfully started.
[DEBUG] Configuring mojo 'org.codehaus.mojo:findbugs-maven-plugin:1.2:findbugs'
-->
[DEBUG] (s) classFilesDirectory = C:\.....\WebContent\WEB-INF\classes
.....
[DEBUG] (s) pluginArtifacts =
[net.sourceforge.findbugs:findbugs:jar:1.3.2:compile,......
{color} {quote}
A bit later :
{quote}{color:blue}
[INFO] Using FindBugs Version: 1.3.2
......
[DEBUG] coreplugin Jar is located at
file:/C:/EnvJAVA/maven/repository/central/net/sourceforge/findbugs/coreplugin/1.3.2/coreplugin-1.3.2.jar
[DEBUG] Done Adding Plugins
[INFO] Debugging is Off
.....
[DEBUG] Done Adding Class Screeners
[DEBUG] Observe class: java/lang/NoSuchMethodException
[DEBUG] Observe class: ......../web/fournisseur/ContactViewAction
.....
{color} {quote}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email