-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: org.sonar.plugins.surefire.api.SurefireUtils.getReportsDirectory #50
Comments
I am getting the exact same error - SonarQube 4.1 and ObjC plugin 0.3.1 |
thanks. This one seems a bit trickier. I might get back to you if I am not able to understand it as is. |
If you anticipate reproducing to be a problem, I can take a look at it since I can reproduce it easily and it's medium-priority for me, and I know a little Java. I would need a little bit of background information on how this is expected to work however. If you look over here the method referenced in the error is indeed present, although I'm a bit mystified how this class (which is on the server) ends up inside sonar-runner on a different machine. But there must be some mechanism, or otherwise I would expect If I could get some more information on how this copy operation works or some debugging mechanism to see what the class looks like when it is on the sonar-runner side I could dig further. |
@jimrutherford are you running the server on OSX? I originally got this behavior running sonarqube on localhost on my Mac. However after moving to the production environment, I can no longer reproduce. Could be OS-specific, or localhost-specific. |
This issue is related to installing the Java plugin. Reproduction steps:
What is going on here is that the SurefireUtils API is different depending on whether or not the Java plugin is installed. The reference commit addresses this issue and is included in PR #53. |
thanks for this investigation! |
…report path, avoiding one more parameter in sonar-project.properties
This was clearly due to the 4.1 update. I confirm you that the java plugin should be optional and with this fix it works with and without the plugin in my case, and on 3.7.x and 4.x versions. I have integrated your fix + improved the configuration of the plugin by making parameter 'sonar.junit.reportsPath' optional. |
I'm getting the behavior below once the reports are generated and during the sonar-runner analysis step:
SonarQube 4.1
ObjC plugin 0.3.1
Some other background information:
$ ls -l sonar-reports/ total 744 -rw-r--r--+ 1 drew staff 842 Jan 26 02:05 TEST-report.xml -rw-r--r--+ 1 drew staff 366938 Jan 26 02:06 coverage-caffeine-ios.xml -rw-r--r--+ 1 drew staff 5164 Jan 26 02:06 oclint.xml $ cat sonar-project.properties | grep junit sonar.junit.reportsPath=sonar-reports/
The text was updated successfully, but these errors were encountered: