java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I am trying to integrate sonar with jenkins. I have downloaded Sample Sonar (PHP Mathematics) Projects by svn co http://svn.codehaus.org/sonar-plugins/trunk/php/math-php-test. While running the application standalone (ant sonar) through sonar, it works fine but when I am integrating with jenkins I am getting exception. Please help me out to resolve this issue.. Below are the exception I get when I am building project through jenkins Started by user anonymous [workspace] $ cmd.exe /C '"C:\apache-ant-1.8.2\bin\ant.bat && exit %%ERRORLEVEL%%"' Buildfile: E:\Jenkins\jobs\PHP Mathematics\workspace\build.xml sonar: [sonar:sonar] Apache Ant(TM) version 1.8.2 compiled on December 20 2010 [sonar:sonar] Sonar Ant Task version: 1.2 [sonar:sonar] Loaded from: file:/C:/apache-ant-1.8.2/lib/sonar-ant-task-1.2.jar [sonar:sonar] Sonar work directory: E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar [sonar:sonar] Sonar server: http://localhost:9000 [sonar:sonar] Sonar version: 2.11 [sonar:sonar] [INFO] Database dialect class org.sonar.jpa.dialect.Derby [sonar:sonar] [INFO] Initializing Hibernate [sonar:sonar] [INFO] ------------- Analyzing PHP Mathematics [sonar:sonar] [INFO] Selected quality profile : [name=Sonar Way,language=php] [sonar:sonar] [INFO] Configure maven plugins... [sonar:sonar] [INFO] Compare to previous analysis (2011-12-07) [sonar:sonar] [INFO] Compare over 5 days (2011-12-02, analysis of 2011-12-07 14:46:06.331) [sonar:sonar] [INFO] Compare over 30 days (2011-11-07, analysis of 2011-12-07 14:46:06.331) [sonar:sonar] [INFO] Detection of duplication code is not supported for PHP. [sonar:sonar] [INFO] Sensor PHP Source Importer... [sonar:sonar] [INFO] Sensor PHP Source Importer done: 1359 ms [sonar:sonar] [INFO] Sensor NoSonar and Commented out LOC Sensor... [sonar:sonar] [INFO] Sensor NoSonar and Commented out LOC Sensor done: 109 ms [sonar:sonar] [INFO] Sensor PHP Depend Sensor... [sonar:sonar] [INFO] Report file for: pdepend : E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pdepend.xml [sonar:sonar] [INFO] Executing pdepend with command 'pdepend.bat --phpunit-xml=E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pdepend.xml --suffix=php,php3,php4,php5,phtml,inc E:\Jenkins\jobs\PHP Mathematics\workspace\source\src' [sonar:sonar] [ERROR] Can't execute the external tool [sonar:sonar] java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.plugins.php.phpdepend.PhpDependSensor.analyse(PhpDependSensor.java:63) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted [sonar:sonar] [ERROR] Error occured while launching PhpDepend [sonar:sonar] org.sonar.plugins.php.core.PhpPluginExecutionException: java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:125) [na:na] [sonar:sonar] at org.sonar.plugins.php.phpdepend.PhpDependSensor.analyse(PhpDependSensor.java:63) [na:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [na:na] [sonar:sonar] ... 36 common frames omitted [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted [sonar:sonar] [INFO] Sensor PHP Depend Sensor done: 297 ms [sonar:sonar] [INFO] Sensor PHP Mess Detector Sensor... [sonar:sonar] [INFO] Report file for: phpmd : E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pmd.xml [sonar:sonar] [INFO] Executing PHPMD with command 'phpmd.bat E:\Jenkins\jobs\PHP Mathematics\workspace\source\src xml E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\ruleset1266231422713415981.xml --reportfile E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pmd.xml --suffixes php,php3,php4,php5,phtml,inc' [sonar:sonar] [ERROR] Can't execute the external tool [sonar:sonar] java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted BUILD FAILED E:\Jenkins\jobs\PHP Mathematics\workspace\build.xml:35: org.sonar.plugins.php.core.PhpPluginExecutionException: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:125) at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) at org.sonar.batch.phases.Phases.execute(Phases.java:93) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.Batch.execute(Batch.java:74) at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) at org.sonar.ant.Launcher.execute(Launcher.java:66) 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.ant.SonarTask.delegateExecution(SonarTask.java:205) at org.sonar.ant.SonarTask.execute(SonarTask.java:189) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) ... 36 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 37 more Total time: 51 seconds Build step 'Invoke Ant' marked build as failure Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE
    via by Amit Agarwal,
  • I am trying to integrate sonar with jenkins. I have downloaded Sample Sonar (PHP Mathematics) Projects by svn co http://svn.codehaus.org/sonar-plugins/trunk/php/math-php-test. While running the application standalone (ant sonar) through sonar, it works fine but when I am integrating with jenkins I am getting exception. Please help me out to resolve this issue.. Below are the exception I get when I am building project through jenkins Started by user anonymous [workspace] $ cmd.exe /C '"C:\apache-ant-1.8.2\bin\ant.bat && exit %%ERRORLEVEL%%"' Buildfile: E:\Jenkins\jobs\PHP Mathematics\workspace\build.xml sonar: [sonar:sonar] Apache Ant(TM) version 1.8.2 compiled on December 20 2010 [sonar:sonar] Sonar Ant Task version: 1.2 [sonar:sonar] Loaded from: file:/C:/apache-ant-1.8.2/lib/sonar-ant-task-1.2.jar [sonar:sonar] Sonar work directory: E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar [sonar:sonar] Sonar server: http://localhost:9000 [sonar:sonar] Sonar version: 2.11 [sonar:sonar] [INFO] Database dialect class org.sonar.jpa.dialect.Derby [sonar:sonar] [INFO] Initializing Hibernate [sonar:sonar] [INFO] ------------- Analyzing PHP Mathematics [sonar:sonar] [INFO] Selected quality profile : [name=Sonar Way,language=php] [sonar:sonar] [INFO] Configure maven plugins... [sonar:sonar] [INFO] Compare to previous analysis (2011-12-07) [sonar:sonar] [INFO] Compare over 5 days (2011-12-02, analysis of 2011-12-07 14:46:06.331) [sonar:sonar] [INFO] Compare over 30 days (2011-11-07, analysis of 2011-12-07 14:46:06.331) [sonar:sonar] [INFO] Detection of duplication code is not supported for PHP. [sonar:sonar] [INFO] Sensor PHP Source Importer... [sonar:sonar] [INFO] Sensor PHP Source Importer done: 1359 ms [sonar:sonar] [INFO] Sensor NoSonar and Commented out LOC Sensor... [sonar:sonar] [INFO] Sensor NoSonar and Commented out LOC Sensor done: 109 ms [sonar:sonar] [INFO] Sensor PHP Depend Sensor... [sonar:sonar] [INFO] Report file for: pdepend : E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pdepend.xml [sonar:sonar] [INFO] Executing pdepend with command 'pdepend.bat --phpunit-xml=E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pdepend.xml --suffix=php,php3,php4,php5,phtml,inc E:\Jenkins\jobs\PHP Mathematics\workspace\source\src' [sonar:sonar] [ERROR] Can't execute the external tool [sonar:sonar] java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.plugins.php.phpdepend.PhpDependSensor.analyse(PhpDependSensor.java:63) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted [sonar:sonar] [ERROR] Error occured while launching PhpDepend [sonar:sonar] org.sonar.plugins.php.core.PhpPluginExecutionException: java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:125) [na:na] [sonar:sonar] at org.sonar.plugins.php.phpdepend.PhpDependSensor.analyse(PhpDependSensor.java:63) [na:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: Cannot run program "pdepend.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [na:na] [sonar:sonar] ... 36 common frames omitted [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted [sonar:sonar] [INFO] Sensor PHP Depend Sensor done: 297 ms [sonar:sonar] [INFO] Sensor PHP Mess Detector Sensor... [sonar:sonar] [INFO] Report file for: phpmd : E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pmd.xml [sonar:sonar] [INFO] Executing PHPMD with command 'phpmd.bat E:\Jenkins\jobs\PHP Mathematics\workspace\source\src xml E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\ruleset1266231422713415981.xml --reportfile E:\Jenkins\jobs\PHP Mathematics\workspace\.sonar\target\logs\pmd.xml --suffixes php,php3,php4,php5,phtml,inc' [sonar:sonar] [ERROR] Can't execute the external tool [sonar:sonar] java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) [na:1.6.0_22] [sonar:sonar] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74) [sonar-php-plugin-0.6.jar:na] [sonar:sonar] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.phases.Phases.execute(Phases.java:93) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.bootstrap.Module.start(Module.java:89) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.batch.Batch.execute(Batch.java:74) [sonar-batch-2.11.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.Launcher.execute(Launcher.java:66) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.sonar.ant.SonarTask.execute(SonarTask.java:189) [sonar-ant-task-1.2.jar:na] [sonar:sonar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [ant.jar:1.8.2] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22] [sonar:sonar] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_22] [sonar:sonar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22] [sonar:sonar] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_22] [sonar:sonar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Task.perform(Task.java:348) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.execute(Target.java:390) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Target.performTasks(Target.java:411) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [ant.jar:na] [sonar:sonar] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.runBuild(Main.java:809) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.Main.startAnt(Main.java:217) [ant.jar:1.8.2] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) [ant-launcher.jar:na] [sonar:sonar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) [ant-launcher.jar:na] [sonar:sonar] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified [sonar:sonar] at java.lang.ProcessImpl.create(Native Method) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessImpl.start(ProcessImpl.java:30) [na:1.6.0_22] [sonar:sonar] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) [na:1.6.0_22] [sonar:sonar] ... 37 common frames omitted BUILD FAILED E:\Jenkins\jobs\PHP Mathematics\workspace\build.xml:35: org.sonar.plugins.php.core.PhpPluginExecutionException: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:125) at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64) at org.sonar.batch.phases.Phases.execute(Phases.java:93) at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110) at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96) at org.sonar.batch.bootstrap.Module.start(Module.java:89) at org.sonar.batch.Batch.execute(Batch.java:74) at org.sonar.ant.Launcher.executeBatch(Launcher.java:210) at org.sonar.ant.Launcher.execute(Launcher.java:66) 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.ant.SonarTask.delegateExecution(SonarTask.java:205) at org.sonar.ant.SonarTask.execute(SonarTask.java:189) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111) ... 36 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 37 more Total time: 51 seconds Build step 'Invoke Ant' marked build as failure Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE
    via by Amit Agarwal,
  • Hadoop Streaming in .NET
    via Stack Overflow by Ali
    ,
  • JavaSVN library mailing list
    via by Unknown author,
  • When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE
    via by Renu Chudamani,
  • When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error: bq. 17:00:52 [EnvInject] - Loading node environment variables. 17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo 17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ******** {color:red}17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified{color:red} 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244) 17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216) 17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) 17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998) 17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 17:00:53 at hudson.remoting.Request$2.run(Request.java:328) 17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63) 17:00:53 at java.lang.Thread.run(Thread.java:662) 17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified 17:00:53 at java.lang.ProcessImpl.create(Native Method) 17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81) 17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30) 17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) 17:00:53 ... 16 more 17:00:53 Finished: FAILURE
    via by Renu Chudamani,
    • java.io.IOException: Cannot run program "phpmd.bat": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)[na:1.6.0_22] at org.sonar.plugins.php.core.AbstractPhpExecutor.execute(AbstractPhpExecutor.java:111)[sonar-php-plugin-0.6.jar:na] at org.sonar.plugins.php.pmd.PhpmdSensor.analyse(PhpmdSensor.java:74)[sonar-php-plugin-0.6.jar:na] at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)[sonar-batch-2.11.jar:na] at org.sonar.batch.phases.Phases.execute(Phases.java:93)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.Module.start(Module.java:89)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:100)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.Module.start(Module.java:89)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:96)[sonar-batch-2.11.jar:na] at org.sonar.batch.bootstrap.Module.start(Module.java:89)[sonar-batch-2.11.jar:na] at org.sonar.batch.Batch.execute(Batch.java:74)[sonar-batch-2.11.jar:na] at org.sonar.ant.Launcher.executeBatch(Launcher.java:210)[sonar-ant-task-1.2.jar:na] at org.sonar.ant.Launcher.execute(Launcher.java:66)[sonar-ant-task-1.2.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_22] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_22] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_22] at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:205)[sonar-ant-task-1.2.jar:na] at org.sonar.ant.SonarTask.execute(SonarTask.java:189)[sonar-ant-task-1.2.jar:na] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)[ant.jar:1.8.2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_22] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_22] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_22] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_22] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)[ant.jar:na] at org.apache.tools.ant.Task.perform(Task.java:348)[ant.jar:1.8.2] at org.apache.tools.ant.Target.execute(Target.java:390)[ant.jar:1.8.2] at org.apache.tools.ant.Target.performTasks(Target.java:411)[ant.jar:1.8.2] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)[ant.jar:1.8.2] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)[ant.jar:1.8.2] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)[ant.jar:na] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)[ant.jar:1.8.2] at org.apache.tools.ant.Main.runBuild(Main.java:809)[ant.jar:1.8.2] at org.apache.tools.ant.Main.startAnt(Main.java:217)[ant.jar:1.8.2] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)[ant-launcher.jar:na] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)[ant-launcher.jar:na] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method)[na:1.6.0_22] at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)[na:1.6.0_22] at java.lang.ProcessImpl.start(ProcessImpl.java:30)[na:1.6.0_22] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)[na:1.6.0_22] ... 37 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    160 more bugmates