atom feed10 messages in org.codehaus.sonar.userRe: [sonar-user] [ANN] Sonar 2.14 RC3...
FromSent OnAttachments
Eric HartmannMar 9, 2012 2:01 am 
Ann CampbellMar 12, 2012 6:04 am 
Evgeny MandrikovMar 12, 2012 6:40 am 
Ann CampbellMar 12, 2012 6:47 am 
Ann CampbellMar 12, 2012 7:00 am 
Evgeny MandrikovMar 12, 2012 10:00 am 
Ann CampbellMar 12, 2012 10:05 am 
Evgeny MandrikovMar 12, 2012 10:18 am 
Evgeny MandrikovMar 12, 2012 10:42 pm 
Ann CampbellMar 13, 2012 4:21 am 
Subject:Re: [sonar-user] [ANN] Sonar 2.14 RC3 available
From:Evgeny Mandrikov (mand@gmail.com)
Date:Mar 12, 2012 10:42:52 pm
List:org.codehaus.sonar.user

FYI : I've created an issue - http://jira.codehaus.org/browse/SONARPLUGINS-1695

In this case now I'm pretty sure that : Cross-project Sonar CPD will work for all projects if you'll update to latest JS plugin. And it will not work with Delphi plugin, even if you'll give it a new try.

Also I did a quick inspection of other language plugins and seems that only Delphi is buggy. And we had a discussion with Freddy - indeed it's better to fix this issue in plugin, so this is not a regression or blocker issue for final release of Sonar 2.14.

On Mon, Mar 12, 2012 at 21:05, Ann Campbell <ann.@shawinc.com>wrote:

I'm not on the latest JS plugin.

You'll know better than I whether this is relevant - I saw the issue on one JS project out of about 5 (the rest worked fine) and the one Delphi project set up on my test server. I.e. 1 out of 1. Is it worth trying additional Delphi analyses?

On Mon, Mar 12, 2012 at 1:01 PM, Evgeny Mandrikov <mand@gmail.com>wrote:

Hi Ann,

I had a look on Delphi plugin and indeed - there is something strange happens with importing source code, which may explain why cross-project CPD doesn't work.

And which version of JavaScript Plugin do you use? I have feeling that there might be related bug in 0.3, which seems to be fixed in latest 0.4.

On Mon, Mar 12, 2012 at 17:48, Ann Campbell <ann.@shawinc.com>wrote:

I'm very sorry, Evgeny. I never saw your replies.

There are no exclusions.

I had started to wonder if this was related to the language plugins - I see it on one Delphi project and one JavaScript project.

I'll try turning off cross-project duplication detection for the project in question.

On Mon, Mar 12, 2012 at 9:40 AM, Evgeny Mandrikov <mand@gmail.com>wrote:

Hi Ann,

I repeat my question : do you have an exclusions in failed projects ? Previous questions are : http://markmail.org/message/3f4ftle5g7diw6wv and http://markmail.org/message/5m6e4oyzugrbngf4 Here is some info to explain my question : This error occurs only when Sonar CPD is used with cross-project analysis. And indeed - in 2.14 Sonar CPD is enabled by default, so I guess that cross-project analysis is enabled in your instance. However this error from my point of view can occur only if sonar language plugin incorrectly handles resources or exclusion patters. And ideed - this happens for you only with Delphi. Which in fact means that error doesn't directly relate to Sonar Core. At the end I'm pretty sure that you can get rid this error if you'll disable cross-project analysis for this project or even for all Delphi plugins.

On Mon, Mar 12, 2012 at 17:04, Ann Campbell <ann.@shawinc.com>wrote:

Still getting this exception - analysis succeeds on 2.13:

no change for [SVN project] since the previous build [workspace] $ java -cp
/path/to/workspace/sonar-runner5031678595323474242.jar:/path/to/workspace/sonar-batch-bootstrapper5360308940624260102.jar
org.sonar.runner.Main -Dsonar.jdbc.driver=com.mysql.jdbc.Driver
-Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar ******** ********
-Dsonar.host.url=http://localhost:9000 -Dsonar.language=delph
-Dsonar.projectName=ADelphiProject -Dsonar.projectVersion=1.0 -Dsources=.
-Dsonar.projectKey=com.shawinc:aDelphiProject Runner configuration file: NONE Project configuration file: NONE Runner version: 1.2 Java version: 1.6.0_26, vendor: Sun Microsystems Inc. OS name: "Linux", version: "2.6.38-13-generic", arch: "i386" Server: http://localhost:9000 Work directory: /path/to/workspace/.sonar 08:56:31.941 INFO o.s.core.persistence.Database - Create JDBC datasource 08:56:32.784 INFO org.sonar.INFO - Initializing Hibernate 08:56:36.586 INFO o.s.b.bootstrap.ProjectModule - ------------- Analyzing
HSCosting 08:56:37.296 INFO o.sonar.batch.ProfileProvider - Selected quality profile :
[name=Delphi Default Profile,language=delph] 08:56:37.311 INFO org.sonar.INFO - Cutoff date not set 08:56:37.324 INFO s.b.p.MavenPluginsConfigurator - Configure maven plugins... 08:56:37.380 INFO org.sonar.INFO - Compare to previous analysis
(2012-03-01) 08:56:37.415 INFO org.sonar.INFO - Compare over 7 days
(2012-03-05, analysis of 2012-03-01 10:44:59.0) 08:56:37.438 INFO org.sonar.INFO - Compare to date 2012-01-15
(analysis of 2012-02-24) 08:56:38.522 INFO o.s.p.w.api.ProjectFileManager - Source dir for web files:
/path/to/workspace 08:56:38.559 ERROR org.sonar.INFO - Plugin views: license not
found/valid. Please email cont@sonarsource.com 08:56:38.614 INFO o.s.b.phases.SensorsExecutor - Initializer
ProjectFileSystemLogger... 08:56:38.614 INFO .p.c.b.ProjectFileSystemLogger - Source directories: 08:56:38.614 INFO .p.c.b.ProjectFileSystemLogger - /path/to/workspace 08:56:38.615 INFO o.s.b.phases.SensorsExecutor - Initializer
ProjectFileSystemLogger done: 1 ms 08:56:38.706 INFO o.s.b.p.PhasesTimeProfiler - Sensor CpdSensor... 08:56:38.706 INFO org.sonar.INFO - SonarBridgeEngine is used 08:56:38.732 INFO o.s.p.cpd.index.IndexFactory - Cross-project analysis
enabled 08:56:38.749 INFO o.s.p.delphi.DelphiPlugin - No exclude directories found
in project configuration. Total time: 8.533s Final Memory: 25M/157M Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException:
org.sonar.batch.index.ResourceNotPersistedException:
org.sonar.plugins.delphi.core.DelphiFile@cbc2d3[key=[default].frameMisc,package=[default],longName=frameMisc,unitTest=false] at org.sonar.runner.Runner.delegateExecution(Runner.java:189) at org.sonar.runner.Runner.execute(Runner.java:78) at org.sonar.runner.Main.main(Main.java:61) Caused by: org.sonar.batch.index.ResourceNotPersistedException:
org.sonar.plugins.delphi.core.DelphiFile@cbc2d3[key=[default].frameMisc,package=[default],longName=frameMisc,unitTest=false] at
org.sonar.batch.index.DefaultResourcePersister.getSnapshotOrFail(DefaultResourcePersister.java:95) at
org.sonar.plugins.cpd.index.DbDuplicationsIndex.getSnapshotIdFor(DbDuplicationsIndex.java:60) at
org.sonar.plugins.cpd.index.DbDuplicationsIndex.insert(DbDuplicationsIndex.java:103) at
org.sonar.plugins.cpd.index.SonarDuplicationsIndex.insert(SonarDuplicationsIndex.java:51) at org.sonar.plugins.cpd.SonarBridgeEngine.analyse(SonarBridgeEngine.java:77) at org.sonar.plugins.cpd.CpdSensor.analyse(CpdSensor.java:92) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) at org.sonar.batch.phases.Phases.execute(Phases.java:93) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102) at org.sonar.batch.bootstrap.Module.start(Module.java:83) at org.sonar.batch.Batch.execute(Batch.java:104) at org.sonar.runner.Launcher.executeBatch(Launcher.java:65) at org.sonar.runner.Launcher.execute(Launcher.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.sonar.runner.Runner.delegateExecution(Runner.java:186) ... 2 more Build step 'Invoke Standalone Sonar Analysis' marked build as failure Notifying upstream projects of job completion Finished: FAILURE

On Fri, Mar 9, 2012 at 5:01 AM, Eric Hartmann < hart@gmail.com> wrote:

Hi,

I'm pleased to announce the release of Sonar 2.14-RC3 which is available here : http://dist.sonar.codehaus.org/sonar-2.14-RC3.zip.

This release canditate fixes the issues found during tests on 2.14-RC1. Thanks for early testers that made tests on RC1.

As usual, let us know if you found any issue on this release candidate.

Enjoy,

The SonarSource Team