I have developed a custom rule recently housed in its own plugin .jar file which I’ve added to the /extensions/plugins of our SonarQube instance.
Recently I had to roll it back. The rule was not activated to run for one of our projects but Sonar Analysis still failed because of our plugin.
Unable to run check class org.sonar.java.DefaultJavaResourceLocator - on file ‘src/main/java/com/edwardjones/iaa/oauth/DummyController.java’, To help improve SonarJava, please report this problem to SonarSource : see Join the Community | SonarQube
java.lang.ClassCastException: org.sonar.java.model.JavaTree$CompilationUnitTreeImpl cannot be cast to org.sonar.java.model.JavaTree$CompilationUnitTreeImpl
I do not see the CompilationUnitTreeImpl anywhere in the code-base and am stuck. I’m unsure how to get past this and could use a hand.
Would someone guide me past this? Thank you for your time all.