Getting "API incompatibility" error after Java plugin update

Hello,

I am using SonarQube Community 6.7.5, and I recently updated my SonarJava plugin to version 5.12. Immediatly after that, users started encountering the following error when running an analysis via Maven :

An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar: java.lang.NoSuchMethodError: org.sonar.plugins.java.api.JavaResourceLocator.findSourceFileKeyByClassName(Ljava/lang/String;)Ljava/lang/String;

Updating again to 5.12.1 did not fix this problem, and I had to revert to 5.11, which “solved” the issue.
Has anyone encountered the same problem, or have a hint on what exactly is causing this problem?
I did not post this as an issue, because I’m not sure it actually is one. Maybe something can be / should have been done on my side?

Any idea is welcome :slight_smile:

Hi. It’s a problem with sonar-findbugs. :wink:

1 Like

Oh, thanks. I guess I didn’t broaden my research enough, I hadn’t thought of findbugs :slightly_smiling_face: