SonarOpenCommunity / sonar-cxx

SonarQube C++ Community plugin (cxx plugin): This plugin adds C++ support to SonarQube with the focus on integration of existing C++ tools.
GNU Lesser General Public License v3.0
1k stars 365 forks source link

Facing issue with sonnar-runner execution #114

Closed vijaysubasHP closed 10 years ago

vijaysubasHP commented 10 years ago

Hello,

We have installed C++ community plug-in and scm activity plug-in. We could analyze the sample c++ project by sonar but facing issue with actual project execution.

$:/etc/sonar-runner/bin/sonar-runner SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcm
s_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk
/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 14:25:58.720 INFO - Load batch settings 14:26:00.681 INFO - User cache: /home/bmimpban/.sonar/cache 14:26:00.908 INFO - Install plugins 14:26:05.422 INFO - Install JDBC driver 14:26:05.449 WARN - H2 database should be used for evaluation purpose only 14:26:05.449 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 14:26:22.804 INFO - Initializing Hibernate 14:26:28.164 ERROR - No license for plugin cpp

INFO:

INFO: EXECUTION FAILURE

INFO:

Total time: 1:18.526s Final Memory: 7M/118M

INFO:

ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to start caches ERROR: Caused by: java.io.IOException: No locks available ERROR: Caused by: No locks available ERROR: ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

Could you please help us to resolve this issue?

Thanks and Regards, Vijayakumar Subas Hewlett Packard.

jmecosta commented 10 years ago

can you run the analysis with -X, another thing can you show your properties file

vijaysubasHP commented 10 years ago

Please find the property file as.

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

sonar.cxx.xunit.reportPath=reports/cppunit/*.xml

sonar.cxx.xunit.xsltURL=cppunit-1.x-to-junit-1.0.xsl

sonar.scm.url=https://hpcms-wi-fi-gw.csd200a.com/svn/hpcms-wi-fi-gw/WAuG/trunk

And, Result -X option enabled with,

$: /etc/sonar-runner/bin/sonar-runner -X SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Error stacktraces are turned on. INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 15:46:06.708 INFO - Load batch settings 15:46:06.733 DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy) 15:46:06.883 INFO - User cache: /home/bmimpban/.sonar/cache 15:46:06.939 INFO - Install plugins 15:46:06.939 DEBUG - Download index of plugins 15:46:06.940 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy) 15:46:09.496 INFO - Install JDBC driver 15:46:09.496 DEBUG - Download index of jdbc-driver 15:46:09.496 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy) 15:46:09.533 WARN - H2 database should be used for evaluation purpose only 15:46:09.533 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 15:46:09.682 DEBUG - Testing JDBC connection 15:46:12.038 DEBUG - Download: http://localhost:9000/api/server (no proxy) 15:46:12.302 INFO - Initializing Hibernate 15:46:12.305 DEBUG - hibernate.generate_statistics: false 15:46:12.305 DEBUG - hibernate.dialect: org.hibernate.dialect.H2Dialect 15:46:12.305 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 15:46:12.305 DEBUG - hibernate.hbm2ddl.auto: validate 15:46:14.655 DEBUG - Loaded 2984 properties from l10n bundles 15:46:15.378 ERROR - No license for plugin cpp INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 44.198s Final Memory: 7M/118M INFO: ------------------------------------------------------------------------ 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:90) 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:41) Caused by: java.lang.IllegalStateException: Fail to start caches at org.sonar.batch.index.Caches.initPersistit(Caches.java:76) at org.sonar.batch.index.Caches.(Caches.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033) at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:58) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 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.BootstrapContainer.executeTask(BootstrapContainer.java:144) at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:132) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 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:616) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87) ... 9 more Caused by: com.persistit.exception.PersistitIOException: java.io.IOException: No locks available at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:159) at com.persistit.Volume.open(Volume.java:491) at com.persistit.Persistit.initializeVolumes(Persistit.java:639) at com.persistit.Persistit.initialize(Persistit.java:439) at org.sonar.batch.index.Caches.initPersistit(Caches.java:72) ... 83 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileChannelImpl.lock0(Native Method) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:924) at com.persistit.MediatedFileChannel.tryLock(MediatedFileChannel.java:219) at com.persistit.VolumeStorageV2.lockChannel(VolumeStorageV2.java:570) at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:155) ... 87 more

Thanks Vijay

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:43 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

can you run the analysis with -X, another thing can you show your properties file

— Reply to this email directly or view it on GitHubhttps://github.com/wenns/sonar-cxx/issues/114#issuecomment-36492429.

jmecosta commented 10 years ago

Looks you are mixing up the commercial and community plugins configurations. Try to remove the sonar source plugin, leave only the community plugin. Then delete your property files, and use one of the sample property file in the repository. Be sure that you use a new project key and run a new analysis On Mar 3, 2014 11:19 AM, "vijaysubasHP" notifications@github.com wrote:

Please find the property file as.

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

sonar.cxx.xunit.reportPath=reports/cppunit/*.xml

sonar.cxx.xunit.xsltURL=cppunit-1.x-to-junit-1.0.xsl

sonar.scm.url= https://hpcms-wi-fi-gw.csd200a.com/svn/hpcms-wi-fi-gw/WAuG/trunk

And, Result -X option enabled with,

$: /etc/sonar-runner/bin/sonar-runner -X SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Error stacktraces are turned on. INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties

INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar

INFO: SonarQube Server 4.1.2 15:46:06.708 INFO - Load batch settings 15:46:06.733 DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy) 15:46:06.883 INFO - User cache: /home/bmimpban/.sonar/cache 15:46:06.939 INFO - Install plugins 15:46:06.939 DEBUG - Download index of plugins 15:46:06.940 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy) 15:46:09.496 INFO - Install JDBC driver 15:46:09.496 DEBUG - Download index of jdbc-driver 15:46:09.496 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy) 15:46:09.533 WARN - H2 database should be used for evaluation purpose only 15:46:09.533 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 15:46:09.682 DEBUG - Testing JDBC connection 15:46:12.038 DEBUG - Download: http://localhost:9000/api/server (no proxy) 15:46:12.302 INFO - Initializing Hibernate 15:46:12.305 DEBUG - hibernate.generate_statistics: false 15:46:12.305 DEBUG - hibernate.dialect: org.hibernate.dialect.H2Dialect 15:46:12.305 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 15:46:12.305 DEBUG - hibernate.hbm2ddl.auto: validate 15:46:14.655 DEBUG - Loaded 2984 properties from l10n bundles 15:46:15.378 ERROR - No license for plugin cpp

INFO:

INFO: EXECUTION FAILURE

INFO:

Total time: 44.198s Final Memory: 7M/118M

INFO:

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:90) 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:41) Caused by: java.lang.IllegalStateException: Fail to start caches at org.sonar.batch.index.Caches.initPersistit(Caches.java:76) at org.sonar.batch.index.Caches.(Caches.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033)

at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025)

at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002)

at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:58) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 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.BootstrapContainer.executeTask(BootstrapContainer.java:144)

at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:132)

at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 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:616) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)

... 9 more Caused by: com.persistit.exception.PersistitIOException: java.io.IOException: No locks available at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:159) at com.persistit.Volume.open(Volume.java:491) at com.persistit.Persistit.initializeVolumes(Persistit.java:639) at com.persistit.Persistit.initialize(Persistit.java:439) at org.sonar.batch.index.Caches.initPersistit(Caches.java:72) ... 83 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileChannelImpl.lock0(Native Method) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:924) at com.persistit.MediatedFileChannel.tryLock(MediatedFileChannel.java:219) at com.persistit.VolumeStorageV2.lockChannel(VolumeStorageV2.java:570) at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:155) ... 87 more

Thanks Vijay

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:43 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

can you run the analysis with -X, another thing can you show your properties file

Reply to this email directly or view it on GitHub< https://github.com/wenns/sonar-cxx/issues/114#issuecomment-36492429>.

Reply to this email directly or view it on GitHub.

vijaysubasHP commented 10 years ago

:/etc/sonar-runner/bin/sonar-runner SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 16:04:58.715 INFO - Load batch settings 16:04:58.791 INFO - User cache: /home/bmimpban/.sonar/cache 16:04:58.815 INFO - Install plugins 16:04:59.458 INFO - Install JDBC driver 16:04:59.496 WARN - H2 database should be used for evaluation purpose only 16:04:59.496 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 16:05:01.152 INFO - Initializing Hibernate 16:05:03.119 ERROR - No license for plugin cpp INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 37.017s Final Memory: 8M/118M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to start caches ERROR: Caused by: java.io.IOException: No locks available ERROR: Caused by: No locks available ERROR: ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

property file content:

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:57 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

Looks you are mixing up the commercial and community plugins configurations. Try to remove the sonar source plugin, leave only the community plugin. Then delete your property files, and use one of the sample property file in the repository. Be sure that you use a new project key and run a new analysis On Mar 3, 2014 11:19 AM, "vijaysubasHP" notifications@github.com<mailto:notifications@github.com> wrote:

Please find the property file as.

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

sonar.cxx.xunit.reportPath=reports/cppunit/*.xml

sonar.cxx.xunit.xsltURL=cppunit-1.x-to-junit-1.0.xsl

sonar.scm.url= https://hpcms-wi-fi-gw.csd200a.com/svn/hpcms-wi-fi-gw/WAuG/trunk

And, Result -X option enabled with,

$: /etc/sonar-runner/bin/sonar-runner -X SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Error stacktraces are turned on. INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties

INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar

INFO: SonarQube Server 4.1.2 15:46:06.708 INFO - Load batch settings 15:46:06.733 DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy) 15:46:06.883 INFO - User cache: /home/bmimpban/.sonar/cache 15:46:06.939 INFO - Install plugins 15:46:06.939 DEBUG - Download index of plugins 15:46:06.940 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy) 15:46:09.496 INFO - Install JDBC driver 15:46:09.496 DEBUG - Download index of jdbc-driver 15:46:09.496 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy) 15:46:09.533 WARN - H2 database should be used for evaluation purpose only 15:46:09.533 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 15:46:09.682 DEBUG - Testing JDBC connection 15:46:12.038 DEBUG - Download: http://localhost:9000/api/server (no proxy) 15:46:12.302 INFO - Initializing Hibernate 15:46:12.305 DEBUG - hibernate.generate_statistics: false 15:46:12.305 DEBUG - hibernate.dialect: org.hibernate.dialect.H2Dialect 15:46:12.305 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 15:46:12.305 DEBUG - hibernate.hbm2ddl.auto: validate 15:46:14.655 DEBUG - Loaded 2984 properties from l10n bundles 15:46:15.378 ERROR - No license for plugin cpp

INFO:

INFO: EXECUTION FAILURE

INFO:

Total time: 44.198s Final Memory: 7M/118M

INFO:

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:90) 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:41) Caused by: java.lang.IllegalStateException: Fail to start caches at org.sonar.batch.index.Caches.initPersistit(Caches.java:76) at org.sonar.batch.index.Caches.(Caches.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033)

at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025)

at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002)

at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:58) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 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.BootstrapContainer.executeTask(BootstrapContainer.java:144)

at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:132)

at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 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:616) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)

... 9 more Caused by: com.persistit.exception.PersistitIOException: java.io.IOException: No locks available at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:159) at com.persistit.Volume.open(Volume.java:491) at com.persistit.Persistit.initializeVolumes(Persistit.java:639) at com.persistit.Persistit.initialize(Persistit.java:439) at org.sonar.batch.index.Caches.initPersistit(Caches.java:72) ... 83 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileChannelImpl.lock0(Native Method) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:924) at com.persistit.MediatedFileChannel.tryLock(MediatedFileChannel.java:219) at com.persistit.VolumeStorageV2.lockChannel(VolumeStorageV2.java:570) at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:155) ... 87 more

Thanks Vijay

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:43 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

can you run the analysis with -X, another thing can you show your properties file

Reply to this email directly or view it on GitHub< https://github.com/wenns/sonar-cxx/issues/114#issuecomment-36492429>.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/wenns/sonar-cxx/issues/114#issuecomment-36493319.

vijaysubasHP commented 10 years ago

Hello again,

We have again modified the properties file and executed sonar-runner but still facing the issue again.

bmimpban@apgbs15vm1:/etc/sonar-runner/bin/sonar-runner SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 16:35:51.522 INFO - Load batch settings 16:35:51.589 INFO - User cache: /home/bmimpban/.sonar/cache 16:35:51.611 INFO - Install plugins 16:35:52.074 INFO - Install JDBC driver 16:35:52.084 WARN - H2 database should be used for evaluation purpose only 16:35:52.084 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 16:35:54.082 INFO - Initializing Hibernate INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 36.339s Final Memory: 7M/118M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to start caches ERROR: Caused by: java.io.IOException: No locks available ERROR: Caused by: No locks available ERROR: ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

bmimpban@apgbs15vm1:cat sonar-project.properties sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src/almfrw

Encoding of the source files

sonar.sourceEncoding=UTF-8

Could you please help us to fix this issue?

Regards, Vijay

Hewlett Packard. From: S, Vijayakumar (CMS) Sent: Monday, March 03, 2014 3:09 PM To: 'wenns/sonar-cxx'; wenns/sonar-cxx Subject: RE: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

:/etc/sonar-runner/bin/sonar-runner SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 16:04:58.715 INFO - Load batch settings 16:04:58.791 INFO - User cache: /home/bmimpban/.sonar/cache 16:04:58.815 INFO - Install plugins 16:04:59.458 INFO - Install JDBC driver 16:04:59.496 WARN - H2 database should be used for evaluation purpose only 16:04:59.496 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 16:05:01.152 INFO - Initializing Hibernate 16:05:03.119 ERROR - No license for plugin cpp INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 37.017s Final Memory: 8M/118M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to start caches ERROR: Caused by: java.io.IOException: No locks available ERROR: Caused by: No locks available ERROR: ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch. ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging. property file content:

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:57 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

Looks you are mixing up the commercial and community plugins configurations. Try to remove the sonar source plugin, leave only the community plugin. Then delete your property files, and use one of the sample property file in the repository. Be sure that you use a new project key and run a new analysis On Mar 3, 2014 11:19 AM, "vijaysubasHP" notifications@github.com<mailto:notifications@github.com> wrote:

Please find the property file as.

Required metadata

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported sonar.projectVersion=1.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src

Encoding of the source files

sonar.sourceEncoding=UTF-8

Path to the directory containing the CPPUnit reports

sonar.cfamily.cppunit.reportsPath=reports/cppunit

Path to the directory containing the GCOV reports

sonar.cfamily.gcov.reportsPath=reports/gcov

Path to UT

sonar.cxx.xunit.reportPath=reports/cppunit

sonar.cxx.coverage.reportPath=reports/gcov

sonar.cxx.xunit.reportPath=reports/cppunit/*.xml

sonar.cxx.xunit.xsltURL=cppunit-1.x-to-junit-1.0.xsl

sonar.scm.url= https://hpcms-wi-fi-gw.csd200a.com/svn/hpcms-wi-fi-gw/WAuG/trunk

And, Result -X option enabled with,

$: /etc/sonar-runner/bin/sonar-runner -X SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Error stacktraces are turned on. INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties

INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar

INFO: SonarQube Server 4.1.2 15:46:06.708 INFO - Load batch settings 15:46:06.733 DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy) 15:46:06.883 INFO - User cache: /home/bmimpban/.sonar/cache 15:46:06.939 INFO - Install plugins 15:46:06.939 DEBUG - Download index of plugins 15:46:06.940 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy) 15:46:09.496 INFO - Install JDBC driver 15:46:09.496 DEBUG - Download index of jdbc-driver 15:46:09.496 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy) 15:46:09.533 WARN - H2 database should be used for evaluation purpose only 15:46:09.533 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 15:46:09.682 DEBUG - Testing JDBC connection 15:46:12.038 DEBUG - Download: http://localhost:9000/api/server (no proxy) 15:46:12.302 INFO - Initializing Hibernate 15:46:12.305 DEBUG - hibernate.generate_statistics: false 15:46:12.305 DEBUG - hibernate.dialect: org.hibernate.dialect.H2Dialect 15:46:12.305 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 15:46:12.305 DEBUG - hibernate.hbm2ddl.auto: validate 15:46:14.655 DEBUG - Loaded 2984 properties from l10n bundles 15:46:15.378 ERROR - No license for plugin cpp

INFO:

INFO: EXECUTION FAILURE

INFO:

Total time: 44.198s Final Memory: 7M/118M

INFO:

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:90) 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:41) Caused by: java.lang.IllegalStateException: Fail to start caches at org.sonar.batch.index.Caches.initPersistit(Caches.java:76) at org.sonar.batch.index.Caches.(Caches.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)

at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631)

at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)

at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)

at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)

at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)

at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)

at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)

at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)

at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)

at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)

at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033)

at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025)

at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002)

at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:58) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 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.BootstrapContainer.executeTask(BootstrapContainer.java:144)

at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:132)

at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92)

at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)

at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 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:616) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)

... 9 more Caused by: com.persistit.exception.PersistitIOException: java.io.IOException: No locks available at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:159) at com.persistit.Volume.open(Volume.java:491) at com.persistit.Persistit.initializeVolumes(Persistit.java:639) at com.persistit.Persistit.initialize(Persistit.java:439) at org.sonar.batch.index.Caches.initPersistit(Caches.java:72) ... 83 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileChannelImpl.lock0(Native Method) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:924) at com.persistit.MediatedFileChannel.tryLock(MediatedFileChannel.java:219) at com.persistit.VolumeStorageV2.lockChannel(VolumeStorageV2.java:570) at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:155) ... 87 more

Thanks Vijay

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 2:43 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

can you run the analysis with -X, another thing can you show your properties file

Reply to this email directly or view it on GitHub< https://github.com/wenns/sonar-cxx/issues/114#issuecomment-36492429>.

Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/wenns/sonar-cxx/issues/114#issuecomment-36493319.

jmecosta commented 10 years ago

not sure whats going on, but i would remove your /home/bmimpban/.sonar/cache directory. And did you change these?

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported

And run again with debug on

vijaysubasHP commented 10 years ago

Please check this output.

bmimpban@apgbs15vm1:/etc/sonar-runner/bin/sonar-runner -X SonarQube Runner 2.3 Java 1.6.0 Sun Microsystems Inc. (32-bit) Linux 2.6.18-194.el5 i386 INFO: Error stacktraces are turned on. INFO: Runner configuration file: /etc/sonar-runner/conf/sonar-runner.properties INFO: Project configuration file: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/sonar-project.properties INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Work directory: /home/bmimpban/buildbot/svn_wa/hpcms_waug/hpcms_waug_trunk/WAuG/RHEL5/.sonar INFO: SonarQube Server 4.1.2 DEBUG: Download http://localhost:9000/batch/sonar-graph-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862908401-344 DEBUG: Download http://localhost:9000/batch/sonar-batch-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862908648-87 DEBUG: Download http://localhost:9000/batch/hibernate-entitymanager-3.4.0.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862909142-492 DEBUG: Download http://localhost:9000/batch/xstream-1.3.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862909398-926 DEBUG: Download http://localhost:9000/batch/xpp3-1.1.3.3.jar to /home/bmimpban/.sonar/cache/_tmp/1393862909695-232 DEBUG: Download http://localhost:9000/batch/maven-plugin-registry-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862909862-195 DEBUG: Download http://localhost:9000/batch/sonar-markdown-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862909951-330 DEBUG: Download http://localhost:9000/batch/maven-model-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910046-992 DEBUG: Download http://localhost:9000/batch/sonar-check-api-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910195-311 DEBUG: Download http://localhost:9000/batch/maven-profile-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910279-641 DEBUG: Download http://localhost:9000/batch/plexus-classworlds-2.2.3.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910381-651 DEBUG: Download http://localhost:9000/batch/plexus-utils-1.5.15.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910494-244 DEBUG: Download http://localhost:9000/batch/commons-codec-1.8.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910666-567 DEBUG: Download http://localhost:9000/batch/ejb3-persistence-1.0.2.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910827-433 DEBUG: Download http://localhost:9000/batch/picocontainer-2.14.3.jar to /home/bmimpban/.sonar/cache/_tmp/1393862910940-685 DEBUG: Download http://localhost:9000/batch/sonar-java-api-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862911155-112 DEBUG: Download http://localhost:9000/batch/commons-beanutils-1.8.3.jar to /home/bmimpban/.sonar/cache/_tmp/1393862911309-592 DEBUG: Download http://localhost:9000/batch/commons-dbutils-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862911595-799 DEBUG: Download http://localhost:9000/batch/logback-core-1.0.13.jar to /home/bmimpban/.sonar/cache/_tmp/1393862911690-540 DEBUG: Download http://localhost:9000/batch/geronimo-spec-jta-1.0-M1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862911952-498 DEBUG: Download http://localhost:9000/batch/maven-artifact-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862912050-574 DEBUG: Download http://localhost:9000/batch/hibernate-commons-annotations-3.1.0.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862912157-584 DEBUG: Download http://localhost:9000/batch/h2-1.3.172.jar to /home/bmimpban/.sonar/cache/_tmp/1393862912270-335 DEBUG: Download http://localhost:9000/batch/sonar-plugin-api-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862913668-206 DEBUG: Download http://localhost:9000/batch/woodstox-core-lgpl-4.0.4.jar to /home/bmimpban/.sonar/cache/_tmp/1393862913965-303 DEBUG: Download http://localhost:9000/batch/sonar-update-center-common-1.8.jar to /home/bmimpban/.sonar/cache/_tmp/1393862914215-711 DEBUG: Download http://localhost:9000/batch/sonar-colorizer-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862914352-753 DEBUG: Download http://localhost:9000/batch/akiban-persistit-3.2.7.jar to /home/bmimpban/.sonar/cache/_tmp/1393862914513-354 DEBUG: Download http://localhost:9000/batch/hibernate-annotations-3.4.0.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862915038-842 DEBUG: Download http://localhost:9000/batch/javassist-3.4.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862915253-359 DEBUG: Download http://localhost:9000/batch/sonar-core-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862915479-531 DEBUG: Download http://localhost:9000/batch/log4j-over-slf4j-1.7.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862915842-525 DEBUG: Download http://localhost:9000/batch/commons-lang-2.6.jar to /home/bmimpban/.sonar/cache/_tmp/1393862915937-833 DEBUG: Download http://localhost:9000/batch/slf4j-api-1.7.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916098-526 DEBUG: Download http://localhost:9000/batch/maven-settings-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916181-277 DEBUG: Download http://localhost:9000/batch/blueprints-core-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916277-108 DEBUG: Download http://localhost:9000/batch/commons-pool-1.5.4.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916414-508 DEBUG: Download http://localhost:9000/batch/stax2-api-3.0.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916652-63 DEBUG: Download http://localhost:9000/batch/gson-2.2.4.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916795-906 DEBUG: Download http://localhost:9000/batch/commons-dbcp-1.4.jar to /home/bmimpban/.sonar/cache/_tmp/1393862916944-359 DEBUG: Download http://localhost:9000/batch/guava-10.0.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862917092-86 DEBUG: Download http://localhost:9000/batch/sonar-home-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862917813-327 DEBUG: Download http://localhost:9000/batch/maven-project-2.2.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862917896-314 DEBUG: Download http://localhost:9000/batch/hibernate-core-3.3.2.GA.jar to /home/bmimpban/.sonar/cache/_tmp/1393862918021-371 DEBUG: Download http://localhost:9000/batch/antlr-2.7.6.jar to /home/bmimpban/.sonar/cache/_tmp/1393862918819-368 DEBUG: Download http://localhost:9000/batch/mybatis-3.2.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862919005-965 DEBUG: Download http://localhost:9000/batch/staxmate-2.0.0.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920000-46 DEBUG: Download http://localhost:9000/batch/jcl-over-slf4j-1.7.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920113-259 DEBUG: Download http://localhost:9000/batch/json-simple-1.1.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920208-531 DEBUG: Download http://localhost:9000/batch/sonar-channel-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920304-489 DEBUG: Download http://localhost:9000/batch/sonar-batch-maven-compat-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920405-606 DEBUG: Download http://localhost:9000/batch/sonar-squid-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920602-711 DEBUG: Download http://localhost:9000/batch/sonar-deprecated-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920697-24 DEBUG: Download http://localhost:9000/batch/sonar-duplications-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920798-172 DEBUG: Download http://localhost:9000/batch/commons-io-2.4.jar to /home/bmimpban/.sonar/cache/_tmp/1393862920935-513 DEBUG: Download http://localhost:9000/batch/commons-configuration-1.6.jar to /home/bmimpban/.sonar/cache/_tmp/1393862921072-483 DEBUG: Download http://localhost:9000/batch/dom4j-1.6.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862921262-641 DEBUG: Download http://localhost:9000/batch/commons-collections-3.2.1.jar to /home/bmimpban/.sonar/cache/_tmp/1393862921482-78 DEBUG: Download http://localhost:9000/batch/logback-classic-1.0.13.jar to /home/bmimpban/.sonar/cache/_tmp/1393862921821-244 DEBUG: Download http://localhost:9000/batch/jcommon-1.0.12.jar to /home/bmimpban/.sonar/cache/_tmp/1393862922012-472 17:08:43.386 INFO - Load batch settings 17:08:43.400 DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy) 17:08:43.458 INFO - User cache: /home/bmimpban/.sonar/cache 17:08:43.481 INFO - Install plugins 17:08:43.481 DEBUG - Download index of plugins 17:08:43.481 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy) 17:08:43.499 DEBUG - Download /deploy/plugins/findbugs/sonar-findbugs-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862923487-318 17:08:43.505 DEBUG - Download: http://localhost:9000/deploy/plugins/findbugs/sonar-findbugs-plugin-1.5.jar (no proxy) 17:08:45.850 DEBUG - Download /deploy/plugins/jacoco/sonar-jacoco-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862925837-640 17:08:45.851 DEBUG - Download: http://localhost:9000/deploy/plugins/jacoco/sonar-jacoco-plugin-1.5.jar (no proxy) 17:08:46.351 DEBUG - Download /deploy/plugins/l10nen/sonar-l10n-en-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862926338-553 17:08:46.351 DEBUG - Download: http://localhost:9000/deploy/plugins/l10nen/sonar-l10n-en-plugin-4.1.2.jar (no proxy) 17:08:46.440 DEBUG - Download /deploy/plugins/scmactivity/sonar-scm-activity-plugin-1.6.jar to /home/bmimpban/.sonar/cache/_tmp/1393862926426-588 17:08:46.441 DEBUG - Download: http://localhost:9000/deploy/plugins/scmactivity/sonar-scm-activity-plugin-1.6.jar (no proxy) 17:08:48.245 DEBUG - Download /deploy/plugins/mavenbatch/sonar-maven-batch-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862928223-327 17:08:48.245 DEBUG - Download: http://localhost:9000/deploy/plugins/mavenbatch/sonar-maven-batch-plugin-4.1.2.jar (no proxy) 17:08:48.328 DEBUG - Download /deploy/plugins/surefire/sonar-surefire-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862928307-33 17:08:48.329 DEBUG - Download: http://localhost:9000/deploy/plugins/surefire/sonar-surefire-plugin-1.5.jar (no proxy) 17:08:48.436 DEBUG - Download /deploy/plugins/cpd/sonar-cpd-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862928415-88 17:08:48.436 DEBUG - Download: http://localhost:9000/deploy/plugins/cpd/sonar-cpd-plugin-4.1.2.jar (no proxy) 17:08:48.531 DEBUG - Download /deploy/plugins/cxx/sonar-cxx-plugin-0.9.jar to /home/bmimpban/.sonar/cache/_tmp/1393862928509-964 17:08:48.531 DEBUG - Download: http://localhost:9000/deploy/plugins/cxx/sonar-cxx-plugin-0.9.jar (no proxy) 17:08:49.739 DEBUG - Download /deploy/plugins/checkstyle/sonar-checkstyle-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862929716-575 17:08:49.739 DEBUG - Download: http://localhost:9000/deploy/plugins/checkstyle/sonar-checkstyle-plugin-1.5.jar (no proxy) 17:08:50.393 DEBUG - Download /deploy/plugins/pmd/sonar-pmd-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862930372-173 17:08:50.394 DEBUG - Download: http://localhost:9000/deploy/plugins/pmd/sonar-pmd-plugin-1.5.jar (no proxy) 17:08:51.365 DEBUG - Download /deploy/plugins/core/sonar-core-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862931350-573 17:08:51.365 DEBUG - Download: http://localhost:9000/deploy/plugins/core/sonar-core-plugin-4.1.2.jar (no proxy) 17:08:51.577 DEBUG - Download /deploy/plugins/java/sonar-java-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862931563-43 17:08:51.577 DEBUG - Download: http://localhost:9000/deploy/plugins/java/sonar-java-plugin-1.5.jar (no proxy) 17:08:51.840 DEBUG - Download /deploy/plugins/dbcleaner/sonar-dbcleaner-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862931782-235 17:08:51.840 DEBUG - Download: http://localhost:9000/deploy/plugins/dbcleaner/sonar-dbcleaner-plugin-4.1.2.jar (no proxy) 17:08:51.953 DEBUG - Download /deploy/plugins/squidjava/sonar-squid-java-plugin-1.5.jar to /home/bmimpban/.sonar/cache/_tmp/1393862931915-675 17:08:51.953 DEBUG - Download: http://localhost:9000/deploy/plugins/squidjava/sonar-squid-java-plugin-1.5.jar (no proxy) 17:08:53.025 DEBUG - Download /deploy/plugins/emailnotifications/sonar-email-notifications-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862933005-731 17:08:53.025 DEBUG - Download: http://localhost:9000/deploy/plugins/emailnotifications/sonar-email-notifications-plugin-4.1.2.jar (no proxy) 17:08:53.627 DEBUG - Download /deploy/plugins/design/sonar-design-plugin-4.1.2.jar to /home/bmimpban/.sonar/cache/_tmp/1393862933605-638 17:08:53.627 DEBUG - Download: http://localhost:9000/deploy/plugins/design/sonar-design-plugin-4.1.2.jar (no proxy) 17:08:54.276 INFO - Install JDBC driver 17:08:54.276 DEBUG - Download index of jdbc-driver 17:08:54.277 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy) 17:08:54.285 WARN - H2 database should be used for evaluation purpose only 17:08:54.285 INFO - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar 17:08:54.366 DEBUG - Testing JDBC connection 17:08:56.199 DEBUG - Download: http://localhost:9000/api/server (no proxy) 17:08:56.362 INFO - Initializing Hibernate 17:08:56.364 DEBUG - hibernate.generate_statistics: false 17:08:56.365 DEBUG - hibernate.dialect: org.hibernate.dialect.H2Dialect 17:08:56.365 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider 17:08:56.365 DEBUG - hibernate.hbm2ddl.auto: validate 17:08:58.105 DEBUG - Loaded 2876 properties from l10n bundles INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 1:02.255s Final Memory: 6M/116M INFO: ------------------------------------------------------------------------ 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:90) 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:41) Caused by: java.lang.IllegalStateException: Fail to start caches at org.sonar.batch.index.Caches.initPersistit(Caches.java:76) at org.sonar.batch.index.Caches.(Caches.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646) at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:631) at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118) at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136) at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78) at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309) at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335) at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270) at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364) at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56) at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64) at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91) at org.picocontainer.DefaultPicoContainer.instantiateComponentAsIsStartable(DefaultPicoContainer.java:1033) at org.picocontainer.DefaultPicoContainer.addAdapterIfStartable(DefaultPicoContainer.java:1025) at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1002) at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:58) at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 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.BootstrapContainer.executeTask(BootstrapContainer.java:144) at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:132) at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 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:616) at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87) ... 9 more Caused by: com.persistit.exception.PersistitIOException: java.io.IOException: No locks available at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:159) at com.persistit.Volume.open(Volume.java:491) at com.persistit.Persistit.initializeVolumes(Persistit.java:639) at com.persistit.Persistit.initialize(Persistit.java:439) at org.sonar.batch.index.Caches.initPersistit(Caches.java:72) ... 83 more Caused by: java.io.IOException: No locks available at sun.nio.ch.FileChannelImpl.lock0(Native Method) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:924) at com.persistit.MediatedFileChannel.tryLock(MediatedFileChannel.java:219) at com.persistit.VolumeStorageV2.lockChannel(VolumeStorageV2.java:570) at com.persistit.VolumeStorageV2.create(VolumeStorageV2.java:155) ... 87 more

bmimpban@apgbs15vm1:cat sonar-project.properties sonar.projectKey=org.codehaus.sonar:cpp-cppunit-waug-gcov sonar.projectName=WAuG sonar.projectVersion=1.2.0

Language

sonar.language=c++

Comma-separated paths to directories with sources (required)

sonar.sources=src/almfrw

Encoding of the source files

sonar.sourceEncoding=UTF-8

From: Jorge Costa [mailto:notifications@github.com] Sent: Monday, March 03, 2014 3:56 PM To: wenns/sonar-cxx Cc: S, Vijayakumar (CMS) Subject: Re: [sonar-cxx] Facing issue with sonnar-runner execution (#114)

not sure whats going on, but i would remove your /home/bmimpban/.sonar/cache directory. And did you change these?

sonar.projectKey=org.codehaus.sonar:cpp-cppunit-gcov sonar.projectName=C++ project analyzed with the SonarQube Runner; CPPUnit and GCOV reports imported

And run again with debug on

— Reply to this email directly or view it on GitHubhttps://github.com/wenns/sonar-cxx/issues/114#issuecomment-36497404.

jmecosta commented 10 years ago

ok, i dont have any idea what is going one here. This is not a issue with the plugin, can it be because of the "H2 database should be used for evaluation purpose only". I would install a postgres database and try again. Can it also some permissions issues, you can try to run as super user.

kalidasya commented 10 years ago

just a wild guess, are not you using the commercial plugin accidentally? based on this line from your log: 14:26:28.164 ERROR - No license for plugin cpp

wenns commented 10 years ago

@vijaysubasHP this looks strongly like a license issue with a misleading error message talking something about caches. Please retry this in a clean new born sonar installation with only one Community C++ plugin installed.

wenns commented 10 years ago

Discussion seems to be dead: closing.

vijaysubasHP commented 10 years ago

Hello,

We are facing issue with C++ sonar analyze. Our project folder structure is something like this, src/ inc/ test/

In the sonar properties file, I have defined sonar.sources=src but while running sonar runner it started looking the header files but those are present in inc/ folder and also similarly our source files use /usr/include header files for compilation. I tried with sonar.cxx.include_directories in the properties file but it did not help. Could you please assist how do we mention header files reference in sonar properties files?

Note: Sonarqube -> 4.1.2 sonar-runner-> 2.3 C++ plugin -> sonar-cxx-plugin-0.9.jar

Thanks -Vijay