[07:43:57]W: [Step 1/1] ERROR: Error during SonarQube Scanner execution
[07:43:57]W: [Step 1/1] ERROR: Line 523 is out of range in the file src/main/java/com/company/package/File.java (lines: 522)
For some reason Sonarqube is reporting an error on line 523 but there is only 522 lines in the source file ?
I saw this on a previous file, but when I added a blank line to the end of it the problem went away, this file already has a blank line at the end of it.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/164f32b6-66b8-41d0-8a68-a390937c4d89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.language>grvy</sonar.language>
<sonar.sources>src</sonar.sources>
<sonar.tests></sonar.tests>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.jacoco.reportPath>build/test-reports/jacoco.exec</sonar.jacoco.reportPath>
</properties>--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEAb9wN6uB0Uv2ArT2e55x%3DwiS81_g9emqHcvo0N1VowafLzYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/8de31aa8-2b06-4bab-b128-81bc851d3d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi philippe,Can you please share the log of the analysis ? so we can be sure that the problem is due to JaCoCo reporting (and not happening at another stage of the analysis).if we assume it is happening during report analysis : Do you have any tool weaving bytecode (besides AspectJ) ?Cheers,
Le ven. 30 déc. 2016 à 14:32, <philip...@gmail.com> a écrit :
--Hi Nicolas,I also see this error with Java and Jacoco without using aspectJ so I don't believe that the problem lies with aspectJ and Jacoco.In my case, line 294 is reported on a Java file that only has 254 lines. I checked the Jacoco report and there it also says that the file in question has 254 lines.Using the verbose option when executing Ant, I noticed that this particular class generated the following message:[sonar:sonar] The class 'classNameHere' could not be match to its original source file. It might be a dynamically generated class.And in my case, it is not a generated class. May be this is a hint?I am using:
- Sonarqube 6.1 (it also happens with 6.2)
- Java plug-in 4.3.0.7717
- Jacoco 0.7.7.201606060606
- Sonarqube ant task 2.5
Philippe
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/8de31aa8-2b06-4bab-b128-81bc851d3d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/F_DNgeew0Sw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAFHtbL3J3KZbc0-5B640PY0OVvOAMgLc7hFr1wU04xY4QtVUnw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/8de31aa8-2b06-4bab-b128-81bc851d3d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.