org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project globetrotter-projects: SonarQube is unable to analyze file : '[...].java'

Google Groups | Unknown author | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NullPointerException in sonar-java plugin AnalyzerMessage.java:109

    Google Groups | 8 months ago | Unknown author
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.2:sonar (default-cli) on project globetrotter-projects: SonarQube is unable to analyze file : '[...].java'

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.sonar.java.AnalyzerMessage.textSpanFor()
    2. SonarQube Java :: Squid
      DefaultJavaFileScannerContext.reportIssue
      1. org.sonar.java.AnalyzerMessage.textSpanFor(AnalyzerMessage.java:109)
      2. org.sonar.java.model.DefaultJavaFileScannerContext.createAnalyzerMessage(DefaultJavaFileScannerContext.java:133)
      3. org.sonar.java.model.DefaultJavaFileScannerContext.reportIssue(DefaultJavaFileScannerContext.java:118)
      3 frames
    3. org.sonar.java
      DITCheck.visitClass
      1. org.sonar.java.checks.DITCheck.visitClass(DITCheck.java:72)
      1 frame
    4. SonarQube Java :: Squid
      BaseTreeVisitor.visitClass
      1. org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.java:198)
      2. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)
      3. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitNewClass(BaseTreeVisitor.java:238)
      4. org.sonar.java.model.expression.NewClassTreeImpl.accept(NewClassTreeImpl.java:119)
      5. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)
      6. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitEnumConstant(BaseTreeVisitor.java:308)
      7. org.sonar.java.model.declaration.EnumConstantTreeImpl.accept(EnumConstantTreeImpl.java:60)
      8. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)
      9. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:37)
      10. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitClass(BaseTreeVisitor.java:69)
      10 frames
    5. org.sonar.java
      DITCheck.visitClass
      1. org.sonar.java.checks.DITCheck.visitClass(DITCheck.java:75)
      1 frame
    6. SonarQube Java :: Squid
      BaseTreeVisitor.scan
      1. org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.java:198)
      2. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)
      3. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:37)
      4. org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitCompilationUnit(BaseTreeVisitor.java:55)
      5. org.sonar.java.model.JavaTree$CompilationUnitTreeImpl.accept(JavaTree.java:184)
      6. org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:43)
      6 frames
    7. org.sonar.java
      DITCheck.scanFile
      1. org.sonar.java.checks.DITCheck.scanFile(DITCheck.java:55)
      1 frame
    8. SonarQube Java :: Squid
      VisitorsBridge.visitFile
      1. org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:123)
      1 frame