Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Delphi
-
Labels:None
-
Environment:Windows 7
-
Number of attachments :
Description
Delphi plugin bugs when such files are present
09:13:51.335 INFO o.s.p.d.DelphiPlugin - 50% done...
Total time: 59.246s
Final Memory: 96M/734M
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Can not add twice the same measure on
org.sonar.plugins.delphi.core.DelphiFile@2024b288[key=ordo.batch,package=ordo,longName=ordo.batch,unitTest=false]: org.sonar.api.measures.Measure@4945
0f34[id=<null>,metricKey=public_undocumented_api,metric=Metric[id=19,formula=<null>,key=public_undocumented_api,description=Public undocumented classe
s, methods and variables,type=INT,direction=-1,domain=Documentation,name=Public undocumented API,qualitative=true,userManaged=false,enabled=true,origi
n=JAV,worstValue=<null>,bestValue=0.0,optimizedBestValue=true,hidden=false,deleteHistoricalData=false],value=30.0,data=<null>,description=<null>,alert
Status=<null>,alertText=<null>,tendency=<null>,date=<null>,variation1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variation5=<null>,u
rl=<null>,characteristic=<null>,personId=<null>,persistenceMode=FULL]
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.api.utils.SonarException: Can not add twice the same measure on org.sonar.plugins.delphi.core.DelphiFile@2024b288[key=ordo.batch,
package=ordo,longName=ordo.batch,unitTest=false]: org.sonar.api.measures.Measure@49450f34[id=<null>,metricKey=public_undocumented_api,metric=Metric[id
=19,formula=<null>,key=public_undocumented_api,description=Public undocumented classes, methods and variables,type=INT,direction=-1,domain=Documentati
on,name=Public undocumented API,qualitative=true,userManaged=false,enabled=true,origin=JAV,worstValue=<null>,bestValue=0.0,optimizedBestValue=true,hid
den=false,deleteHistoricalData=false],value=30.0,data=<null>,description=<null>,alertStatus=<null>,alertText=<null>,tendency=<null>,date=<null>,variat
ion1=<null>,variation2=<null>,variation3=<null>,variation4=<null>,variation5=<null>,url=<null>,characteristic=<null>,personId=<null>,persistenceMode=F
ULL]
at org.sonar.batch.index.Bucket.addMeasure(Bucket.java:101)
at org.sonar.batch.index.DefaultIndex.addMeasure(DefaultIndex.java:172)
at org.sonar.batch.DefaultSensorContext.saveMeasure(DefaultSensorContext.java:118)
at org.sonar.plugins.delphi.DelphiSensor.processFiles(DelphiSensor.java:135)
at org.sonar.plugins.delphi.DelphiSensor.analyse(DelphiSensor.java:107)
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:139)
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:111)
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:70)
at org.sonar.runner.Launcher.execute(Launcher.java:64)
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
Please do not create a JIRA ticket before having first discussed your issue on the Sonar User mailing list : http://www.sonarsource.org/support/
Moreover the error stack trace doesn't seem to match the title of the ticket. Indeed according to this stack trace, you have exactly the same Delphi file in the same relative path and in two different source directories.