hudson.util.IOException2: remote file operation failed: com/mycompany/myapp/beans/pitches/PitchDataBean.java at hudson.remoting.LocalChannel@15bbe8

Jenkins JIRA | Myron0815 | 6 years ago
  1. 0

    i have created a one-in-all ant target, which executes findbugs, checkstyle & pmd for the given $srcDir, $classesDir. Works as expected, and the Hudson Plugins do their job. Unfortunately, i just wanted to analyze a specific directory, so i set my $srcDir to $srcDir/com/mycompany/myapp/beans. ($classesDir respectively to $classesDir/com/mycompany/myapp/beans) Ant targets run as expected, analyzing only this folder, XML output looks fine :) Checkstyle & PMD Plugins work as expected, can click till the java sources :) Only the findbugs plugin complains about not finding the source file for displaying.... {quote} Copying the source file 'com/mycompany/myapp/beans/pitches/PitchDataBean.java' from the workspace to the build folder '/export/home/tomcat/.hudson/jobs/myapp_trunk/builds/2010-08-11_15-14-43/workspace-files/fda28c.tmp' on the Hudson master failed. Seems that the path is relative, however an absolute path is required when copying the sources. Is the file 'PitchDataBean.java' contained more than once in your workspace? Is the file 'com/mycompany/myapp/beans/pitches/PitchDataBean.java' a valid filename? If you are building on a slave: please check if the file is accessible under '$HUDSON_HOME/[job-name]/com/mycompany/myapp/beans/pitches/PitchDataBean.java' If you are building on the master: please check if the file is accessible under '$HUDSON_HOME/[job-name]/workspace/com/mycompany/myapp/beans/pitches/PitchDataBean.java' hudson.util.IOException2: remote file operation failed: com/mycompany/myapp/beans/pitches/PitchDataBean.java at hudson.remoting.LocalChannel@15bbe8 at hudson.FilePath.act(FilePath.java:749) at hudson.FilePath.act(FilePath.java:735) at hudson.FilePath.copyTo(FilePath.java:1360) at hudson.plugins.analysis.core.HealthAwarePublisher.copyFilesWithAnnotationsToBuildFolder(HealthAwarePublisher.java:264) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:226) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) Caused by: java.io.FileNotFoundException: com/mycompany/myapp/beans/pitches/PitchDataBean.java (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at hudson.FilePath$30.invoke(FilePath.java:1364) at hudson.FilePath$30.invoke(FilePath.java:1360) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.FilePath.act(FilePath.java:742) ... 14 more {quote}

    Jenkins JIRA | 6 years ago | Myron0815
    hudson.util.IOException2: remote file operation failed: com/mycompany/myapp/beans/pitches/PitchDataBean.java at hudson.remoting.LocalChannel@15bbe8
  2. 0

    i have created a one-in-all ant target, which executes findbugs, checkstyle & pmd for the given $srcDir, $classesDir. Works as expected, and the Hudson Plugins do their job. Unfortunately, i just wanted to analyze a specific directory, so i set my $srcDir to $srcDir/com/mycompany/myapp/beans. ($classesDir respectively to $classesDir/com/mycompany/myapp/beans) Ant targets run as expected, analyzing only this folder, XML output looks fine :) Checkstyle & PMD Plugins work as expected, can click till the java sources :) Only the findbugs plugin complains about not finding the source file for displaying.... {quote} Copying the source file 'com/mycompany/myapp/beans/pitches/PitchDataBean.java' from the workspace to the build folder '/export/home/tomcat/.hudson/jobs/myapp_trunk/builds/2010-08-11_15-14-43/workspace-files/fda28c.tmp' on the Hudson master failed. Seems that the path is relative, however an absolute path is required when copying the sources. Is the file 'PitchDataBean.java' contained more than once in your workspace? Is the file 'com/mycompany/myapp/beans/pitches/PitchDataBean.java' a valid filename? If you are building on a slave: please check if the file is accessible under '$HUDSON_HOME/[job-name]/com/mycompany/myapp/beans/pitches/PitchDataBean.java' If you are building on the master: please check if the file is accessible under '$HUDSON_HOME/[job-name]/workspace/com/mycompany/myapp/beans/pitches/PitchDataBean.java' hudson.util.IOException2: remote file operation failed: com/mycompany/myapp/beans/pitches/PitchDataBean.java at hudson.remoting.LocalChannel@15bbe8 at hudson.FilePath.act(FilePath.java:749) at hudson.FilePath.act(FilePath.java:735) at hudson.FilePath.copyTo(FilePath.java:1360) at hudson.plugins.analysis.core.HealthAwarePublisher.copyFilesWithAnnotationsToBuildFolder(HealthAwarePublisher.java:264) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:226) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558) at hudson.model.Build$RunnerImpl.post2(Build.java:158) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:127) Caused by: java.io.FileNotFoundException: com/mycompany/myapp/beans/pitches/PitchDataBean.java (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at hudson.FilePath$30.invoke(FilePath.java:1364) at hudson.FilePath$30.invoke(FilePath.java:1360) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.FilePath.act(FilePath.java:742) ... 14 more {quote}

    Jenkins JIRA | 6 years ago | Myron0815
    hudson.util.IOException2: remote file operation failed: com/mycompany/myapp/beans/pitches/PitchDataBean.java at hudson.remoting.LocalChannel@15bbe8
  3. 0

    STDERR: java.io.IOException: Failed to copy git to /var/lib/jenkins/plugins/git.jpi

    Stack Overflow | 1 year ago | WolvesfCrib
    java.io.IOException: Failed to copy git to /var/lib/jenkins/plugins/git.jpi
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 59#50169464

    GitHub | 2 years ago | jcfrancisco
    java.io.IOException: Failed to copy /home/builduser/workspace/homepage/homepage/script=integration-group3/test/log/testium/proxy.log to /home/builduser/workspace/homepage/homepage/test/log/testium/proxy.log
  6. 0

    If I execute my job on a slave that runs on Unix, when the master node that runs on Windows XP tries to copy the file sloccount.sc from the slave to the master jobs directory I get the following exception (it results to a build failure). {noformat} java.io.IOException: remote file operation failed: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc at hudson.remoting.Channel@11a5ec7:AES-KLBUILD at hudson.FilePath.act(FilePath.java:910) at hudson.FilePath.act(FilePath.java:887) at hudson.FilePath.copyTo(FilePath.java:1809) at hudson.plugins.sloccount.SloccountPublisher.copyFilesToBuildDirectory(SloccountPublisher.java:139) at hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java:92) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:784) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:756) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:705) at hudson.model.Run.execute(Run.java:1695) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.FileNotFoundException: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at hudson.FilePath$37.invoke(FilePath.java:1814) at hudson.FilePath$37.invoke(FilePath.java:1809) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2461) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Build step 'Publish SLOCCount analysis results' marked build as failure}} {noformat} As you can see, the master starts to get crazy because in copyFilesToBuildDirectory, it uses the sourceFile.getAbsolutePath(). This method tries to resolve the sourceFile against the current JVM FileSystem that is different from the slave. BTW, I am wondering why the code uses the getAbsolutePath() method instead of the getPath() that returns the actual file path.

    Jenkins JIRA | 3 years ago | Mathieu POUSSE
    java.io.IOException: remote file operation failed: C:\var\jenkins\workspace\sloccount-fasttrack\sloccount.sc at hudson.remoting.Channel@11a5ec7:AES-KLBUILD

  1. r1chjames 1 times, last 5 days ago
  2. richard77 1 times, last 2 weeks ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 3 weeks ago
45 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    com/mycompany/myapp/beans/pitches/PitchDataBean.java (No such file or directory)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(FileInputStream.java:106)
    2 frames
  3. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$30.invoke(FilePath.java:1364)
    2. hudson.FilePath$30.invoke(FilePath.java:1360)
    3. hudson.FilePath$FileCallableWrapper.call(FilePath.java:1899)
    3 frames
  4. Hudson :: Remoting Layer
    LocalChannel.call
    1. hudson.remoting.LocalChannel.call(LocalChannel.java:45)
    1 frame
  5. Hudson
    FilePath.copyTo
    1. hudson.FilePath.act(FilePath.java:742)
    2. hudson.FilePath.act(FilePath.java:735)
    3. hudson.FilePath.copyTo(FilePath.java:1360)
    3 frames
  6. Static Analysis Utilities
    HealthAwarePublisher.perform
    1. hudson.plugins.analysis.core.HealthAwarePublisher.copyFilesWithAnnotationsToBuildFolder(HealthAwarePublisher.java:264)
    2. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:226)
    2 frames
  7. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
    2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
    3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:580)
    4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:558)
    5. hudson.model.Build$RunnerImpl.post2(Build.java:158)
    6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
    7. hudson.model.Run.run(Run.java:1280)
    8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    9. hudson.model.ResourceController.execute(ResourceController.java:88)
    10. hudson.model.Executor.run(Executor.java:127)
    10 frames