[VOTE] Java plugin version 3.7.1

270 views
Skip to first unread message

Massimo Paladin

unread,
Nov 9, 2015, 7:29:25 AM11/9/15
to SonarQube
Hello,

we would like to release a bugfix version of the Java plugin, version 3.7.1.

This release provide a fix for a regression bug:
SONARJAVA-1360 - Fix IllegalArgumentException when BytecodeVisitor raise an issue at file level

Jira release note:

You can test this version using the following snapshot:

The vote is open until Wednesday afternoon.

[ ] +1
[ ] +0
[ ] -1

Cheers,

Massimo PALADIN | SonarSource
Software Developer @ Language Team
http://sonarsource.com

Tim Webster

unread,
Nov 9, 2015, 8:08:19 AM11/9/15
to SonarQube
+1

Andrew Holland

unread,
Nov 9, 2015, 8:38:33 AM11/9/15
to SonarQube
+1 

Thanks for the bugfix release.

Andy



--
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/CAFKOc%2B_70aKapR_N7CEe24eGZXr-cf9mAjR2zQF2LRSDVy92jQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

kuba.bo...@gmail.com

unread,
Nov 10, 2015, 9:59:26 AM11/10/15
to SonarQube
+1
Message has been deleted

battl...@gmx.de

unread,
Nov 11, 2015, 3:15:54 AM11/11/15
to SonarQube, rub...@gmail.com
+1

Just encountered that issue myself -- glad to see there is a fix already!

Massimo Paladin

unread,
Nov 11, 2015, 9:42:44 AM11/11/15
to battl...@gmx.de, SonarQube, rub...@gmail.com
The vote is now closed and passes with +5 votes, the release will happen shortly.

Thank you all for your feedback, I would like to remind you that voting for a release candidate means
not to vote for the features of the release but it actually implies to run some tests with it.

Cheers,

Massimo PALADIN | SonarSource
Software Developer @ Language Team
http://sonarsource.com

On 11 November 2015 at 09:15, <battl...@gmx.de> wrote:
+1

Just encountered that issue myself -- glad to see there is a fix already!

--
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.

kalyan...@gmail.com

unread,
Nov 12, 2015, 5:24:55 AM11/12/15
to SonarQube, battl...@gmx.de, rub...@gmail.com
Hi Massimo,

I have used the SANPSHOT jar provided by you in SonarQube5.1 and ran Sonar-runner 2.4 against my code. I am getting below error.

ERROR: Error during Sonar runner execution
org.sonar.runner.impl.RunnerException: Unable to execute Sonar
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91)
        at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
        at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
        at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
        at org.sonar.runner.api.Runner.execute(Runner.java:100)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: org.sonar.squidbridge.api.AnalysisException: Unable to analyze .class file (removed)
        at org.sonar.java.bytecode.BytecodeScanner.notifyBytecodeVisitors(BytecodeScanner.java:82)
        at org.sonar.java.bytecode.BytecodeScanner.scanClasses(BytecodeScanner.java:57)
        at org.sonar.java.bytecode.BytecodeScanner.scan(BytecodeScanner.java:48)
        at org.sonar.java.JavaSquid.scanBytecode(JavaSquid.java:144)
        at org.sonar.java.JavaSquid.scan(JavaSquid.java:124)
        at org.sonar.plugins.java.JavaSquidSensor.analyse(JavaSquidSensor.java:90)
        at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:59)
        at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:51)
        at org.sonar.batch.phases.DatabaseModePhaseExecutor.execute(DatabaseModePhaseExecutor.java:120)
        at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:264)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:235)
        at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:230)
        at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:220)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57)
        at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45)
        at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:135)
        at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)
        at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
        at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:158)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:95)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)
        at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
        ... 9 more
Caused by: java.lang.IllegalArgumentException: Line must be null or greater than zero (got 0)
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
        at org.sonar.api.issue.internal.DefaultIssue.setLine(DefaultIssue.java:251)
        at org.sonar.core.issue.DefaultIssueBuilder.build(DefaultIssueBuilder.java:127)
        at org.sonar.core.issue.DefaultIssueBuilder.build(DefaultIssueBuilder.java:34)
        at org.sonar.java.SonarComponents.addIssue(SonarComponents.java:207)
        at org.sonar.java.bytecode.visitor.DefaultBytecodeContext.reportIssue(DefaultBytecodeContext.java:59)
        at org.sonar.java.checks.UnusedPrivateMethodCheck.visitMethod(UnusedPrivateMethodCheck.java:74)
        at org.sonar.java.bytecode.BytecodeVisitorNotifier.callVisitMethod(BytecodeVisitorNotifier.java:68)
        at org.sonar.java.bytecode.BytecodeVisitorNotifier.callVisitMethodAndFieldAndEdge(BytecodeVisitorNotifier.java:49)
        at org.sonar.java.bytecode.BytecodeVisitorNotifier.notifyVisitors(BytecodeVisitorNotifier.java:42)
        at org.sonar.java.bytecode.BytecodeScanner.notifyBytecodeVisitors(BytecodeScanner.java:80)
        ... 39 more
ERROR:
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

Nicolas Peru

unread,
Nov 12, 2015, 5:41:40 AM11/12/15
to kalyan...@gmail.com, SonarQube, battl...@gmx.de, Ruben Suarez Alvarez
Hi, 

Can you please double check that the version installed on your server is really the version 3.7.1 ? As several people voted +1 and the fix done by Massimo is not something particularly difficult and should end up by not raising this very precise error that you are reporting. 

Cheers, 

Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com


Reply all
Reply to author
Forward
0 new messages