SonarQube analysis fails with "org.sonar.runner.impl.RunnerException: Unable to execute Sonar" -


sonarqube analysis running on teamcity build ant fails "org.sonar.runner.impl.runnerexception: unable execute sonar". excerpt build log teamcity server is:

[11:46:01]e:     [step 1/1] sonar (13s) [11:46:01]e:         [sonar] sonar:sonar (13s) [11:46:01] :             [sonar:sonar] apache ant(tm) version 1.8.2 compiled on december 20 2010 [11:46:01] :             [sonar:sonar] sonarqube ant task version: 2.3 [11:46:01] :             [sonar:sonar] loaded from: file:/d:/project/tcity/agentwork/tcagentw3_windows/work/f0604fb8834cecda/lib/dev/sonar-ant-task-2.3.jar [11:46:01] :             [sonar:sonar] info: default locale: "en_us", source code encoding: "utf-8" [11:46:01] :             [sonar:sonar] info: work directory: d:\project\tcity\agentwork\tcagentw3_windows\work\f0604fb8834cecda\.sonar [11:46:01] :             [sonar:sonar] info: sonarqube server 4.5.4 [11:46:03] :             [sonar:sonar] 11:46:03.025 info  - load global referentials... [11:46:04] :             [sonar:sonar] 11:46:04.312 info  - load global referentials done: 1291 ms [11:46:04] :             [sonar:sonar] 11:46:04.328 info  - user cache: c:\users\tcagentw3_windows\.sonar\cache [11:46:04] :             [sonar:sonar] 11:46:04.353 info  - install plugins [11:46:04] :             [sonar:sonar] 11:46:04.672 info  - download sonar-css-plugin-1.2.jar [11:46:04] :             [sonar:sonar] 11:46:04.867 info  - download sonar-pmd-plugin-2.4.1.jar [11:46:05] :             [sonar:sonar] 11:46:05.053 info  - download sonar-android-plugin-1.1.jar [11:46:05] :             [sonar:sonar] 11:46:05.446 info  - download sonar-jmeter-plugin-0.3.jar [11:46:05] :             [sonar:sonar] 11:46:05.773 info  - download sonar-csharp-plugin-4.0.jar [11:46:05] :             [sonar:sonar] 11:46:05.871 info  - download sonar-java-plugin-3.3.jar [11:46:06] :             [sonar:sonar] 11:46:06.149 info  - download sonar-checkstyle-plugin-2.3.jar [11:46:06] :             [sonar:sonar] 11:46:06.334 info  - download sonar-python-plugin-1.5.jar [11:46:06] :             [sonar:sonar] 11:46:06.449 info  - download sonar-javascript-plugin-2.6.jar [11:46:06] :             [sonar:sonar] 11:46:06.542 info  - download sonar-build-stability-plugin-1.3.jar [11:46:06] :             [sonar:sonar] 11:46:06.580 info  - download sonar-findbugs-plugin-3.2.jar [11:46:06] :             [sonar:sonar] 11:46:06.780 info  - download sonar-groovy-plugin-1.1.1.jar [11:46:07] :             [sonar:sonar] 11:46:07.093 info  - download sonar-php-plugin-2.5.jar [11:46:09] :             [sonar:sonar] 11:46:09.098 info  - install jdbc driver [11:46:09] :             [sonar:sonar] 11:46:09.109 info  - create jdbc datasource jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=sonar-so-1)(port=1521))(address=(protocol=tcp)(host=sonar-so-2)(port=1521))(connect_data=(service_name=sonard))) [11:46:11] :             [sonar:sonar] 11:46:11.669 info  - initializing hibernate [11:46:15] :             [sonar:sonar] 11:46:15.505 info  - load project referentials... [11:46:15] :             [sonar:sonar] 11:46:15.522 info  - load project referentials done: 17 ms [11:46:15]e:             [sonar:sonar] org.sonar.runner.impl.runnerexception: unable execute sonar [11:46:15]w:     [step 1/1] process exited code 1 [11:46:15]w:     [step 1/1] ant output [11:46:15]w:         [ant output]   @ org.picocontainer.injectors.constructorinjector$1.run(constructorinjector.java:335) [11:46:15]w:         [ant output]   @ org.picocontainer.injectors.abstractinjector$threadlocalcyclicdependencyguard.observe(abstractinjector.java:270) [11:46:15]w:         [ant output]   @ org.picocontainer.injectors.constructorinjector.getcomponentinstance(constructorinjector.java:364) [11:46:15]w:         [ant output]   @ org.picocontainer.injectors.abstractinjectionfactory$lifecycleadapter.getcomponentinstance(abstractinjectionfactory.java:56) [11:46:15]w:         [ant output]   @ org.picocontainer.behaviors.abstractbehavior.getcomponentinstance(abstractbehavior.java:64) [11:46:15]w:         [ant output]   @ org.picocontainer.behaviors.stored.getcomponentinstance(stored.java:91) [11:46:15]w:         [ant output]   @ org.picocontainer.defaultpicocontainer.getinstance(defaultpicocontainer.java:698) [11:46:15]w:         [ant output]   @ org.picocontainer.defaultpicocontainer.getcomponent(defaultpicocontainer.java:646) [11:46:15]w:         [ant output]   @ org.picocontainer.defaultpicocontainer.getcomponent(defaultpicocontainer.java:677) [11:46:15]w:         [ant output]   @ org.sonar.api.platform.componentcontainer.getcomponentbytype(componentcontainer.java:209) [11:46:15]w:         [ant output]   @ org.sonar.batch.scan.projectscancontainer.dobeforestart(projectscancontainer.java:102) [11:46:15]w:         [ant output]   @ org.sonar.api.platform.componentcontainer.startcomponents(componentcontainer.java:91) [11:46:15]w:         [ant output]   @ org.sonar.api.platform.componentcontainer.execute(componentcontainer.java:78) [11:46:15]w:         [ant output]   @ org.sonar.batch.scan.scantask.scan(scantask.java:64) [11:46:15]w:         [ant output]   @ org.sonar.batch.scan.scantask.execute(scantask.java:51) [11:46:15]w:         [ant output]   @ org.sonar.batch.bootstrap.taskcontainer.doafterstart(taskcontainer.java:125) [11:46:15]w:         [ant output]   @ org.sonar.api.platform.componentcontainer.startcomponents(componentcontainer.java:93) [11:46:15]w:         [ant output]   @ org.sonar.api.platform.componentcontainer.execute(componentcontainer.java:78) [11:46:15]w:         [ant output]   @ org.sonar.batch.bootstrap.bootstrapcontainer.executetask(bootstrapcontainer.java:173) [11:46:15]w:         [ant output]   @ org.sonar.batch.bootstrapper.batch.executetask(batch.java:95) [11:46:15]w:         [ant output]   @ org.sonar.batch.bootstrapper.batch.execute(batch.java:67) [11:46:15]w:         [ant output]   @ org.sonar.runner.batch.isolatedlauncher.execute(isolatedlauncher.java:48) [11:46:15]w:         [ant output]   @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [11:46:15]w:         [ant output]   @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) [11:46:15]w:         [ant output]   @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [11:46:15]w:         [ant output]   @ java.lang.reflect.method.invoke(method.java:606) [11:46:15]w:         [ant output]   @ org.sonar.runner.impl.batchlauncher$1.delegateexecution(batchlauncher.java:87) [11:46:15]w:         [ant output]   ... 24 more [11:46:15]w:         [ant output]  [11:46:15]w:         [ant output] total time: 21 minutes 42 seconds [11:46:16]i:     [step 1/1] ##teamcity[buildstatisticvalue key='buildstageduration:buildsteprunner_ant_244' value='1303420.0'] [11:46:16]e:     [step 1/1] step ant failed 

the message "unable execute sonar" not explaining me. problem?

i run in same problem. please check compatibility of sonar-ant-task-*.jar version sonarqube. have updated jar sonar-ant-task-2.2 , works me.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -