Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5532

ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net - cannot find directory

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • violations-plugin
    • None
    • job running at slave node.
      m2 job

      [INFO] Final Memory: 58M/92M

      [INFO] ------------------------------------------------------------------------

      ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net

      /home/hudson/slave/workspace/Commons-Transaction-Spring-Integration not found.

      at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)

      at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215)

      at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166)

      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110)

      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)

      at hudson.FilePath.act(FilePath.java:694)

      at hudson.FilePath.act(FilePath.java:676)

      at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96)

      at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:678)

      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:482)

      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)

      at hudson.model.Run.run(Run.java:1198)

      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)

      at hudson.model.ResourceController.execute(ResourceController.java:88)

      at hudson.model.Executor.run(Executor.java:122)

      project=hudson.maven.MavenModuleSet@590060[Commons-Transaction-Spring-Integration]

      project.getModules()=[hudson.maven.MavenModule@2146b2[Commons-Transaction-Spring-Integration/com.davidkarlsen.commonstransaction.spring:commons-transaction-spring]]

      project.getRootModule()=hudson.maven.MavenModule@2146b2[Commons-Transaction-Spring-Integration/com.davidkarlsen.commonstransaction.spring:commons-transaction-spring]

      FATAL: /home/hudson/slave/workspace/Commons-Transaction-Spring-Integration not found.

      /home/hudson/slave/workspace/Commons-Transaction-Spring-Integration not found.

      at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:422)

      at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215)

      at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166)

      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110)

      at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)

      at hudson.FilePath.act(FilePath.java:694)

      at hudson.FilePath.act(FilePath.java:676)

      at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96)

      at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:678)

      at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:482)

      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)

      at hudson.model.Run.run(Run.java:1198)

      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)

      at hudson.model.ResourceController.execute(ResourceController.java:88)

      at hudson.model.Executor.run(Executor.java:122)

          [JENKINS-5532] ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net - cannot find directory

          Andrew Bayer added a comment -

          Looks to be a bug in the violations plugin, or a problem in your configuration of the violations plugin. Moving to that component.

          Andrew Bayer added a comment - Looks to be a bug in the violations plugin, or a problem in your configuration of the violations plugin. Moving to that component.

          bitter added a comment -

          I'm not sure if it's related but I get this error when I use the PMD goal 'check' which makes the build abort as soon as an artifact violates a rule, we are quite strict at my company .

          bitter added a comment - I'm not sure if it's related but I get this error when I use the PMD goal 'check' which makes the build abort as soon as an artifact violates a rule, we are quite strict at my company .

          Mike_L added a comment - - edited

          I also get this error running a m2 job on a unix slave. The violations plugin seems to be looking for the directory on the master rather than on the slave.

          Here's the error I got:

          ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
          /var/lib/hudson/workspace/XXXXX/trunk does not exist.
          	at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474)
          	at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215)
          	at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166)
          	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110)
          	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
          	at hudson.FilePath.act(FilePath.java:753)
          	at hudson.FilePath.act(FilePath.java:735)
          	at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96)
          	at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:684)
          	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483)
          	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
          	at hudson.model.Run.run(Run.java:1280)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:137)
          project=hudson.maven.MavenModuleSet@5febf0d3[XXXXX]
          project.getModules()=[hudson.maven.MavenModule@3e29b849[XXXXX]]
          project.getRootModule()=hudson.maven.MavenModule@3e29b849[XXXXX]
          FATAL: /var/lib/hudson/workspace/XXXXX/trunk does not exist.
          /var/lib/hudson/workspace/XXXXX/trunk does not exist.
          	at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474)
          	at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215)
          	at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166)
          	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110)
          	at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27)
          	at hudson.FilePath.act(FilePath.java:753)
          	at hudson.FilePath.act(FilePath.java:735)
          	at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96)
          	at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:684)
          	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483)
          	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
          	at hudson.model.Run.run(Run.java:1280)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:137)
          

          Mike_L added a comment - - edited I also get this error running a m2 job on a unix slave. The violations plugin seems to be looking for the directory on the master rather than on the slave. Here's the error I got: ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net / var /lib/hudson/workspace/XXXXX/trunk does not exist. at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215) at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96) at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:684) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1280) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) project=hudson.maven.MavenModuleSet@5febf0d3[XXXXX] project.getModules()=[hudson.maven.MavenModule@3e29b849[XXXXX]] project.getRootModule()=hudson.maven.MavenModule@3e29b849[XXXXX] FATAL: / var /lib/hudson/workspace/XXXXX/trunk does not exist. / var /lib/hudson/workspace/XXXXX/trunk does not exist. at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:474) at hudson.plugins.violations.ViolationsCollector.findFiles(ViolationsCollector.java:215) at hudson.plugins.violations.ViolationsCollector.doType(ViolationsCollector.java:166) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:110) at hudson.plugins.violations.ViolationsCollector.invoke(ViolationsCollector.java:27) at hudson.FilePath.act(FilePath.java:753) at hudson.FilePath.act(FilePath.java:735) at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:96) at hudson.maven.MavenModuleSetBuild$Builder.end(MavenModuleSetBuild.java:684) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:483) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1280) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137)

          Mike_L added a comment -

          I forgot to add, the reason I believe it is looking for the directory on the master instead of the salve is it didn't produce the error after I created the directory with the same path on the master.

          Mike_L added a comment - I forgot to add, the reason I believe it is looking for the directory on the master instead of the salve is it didn't produce the error after I created the directory with the same path on the master.

          knalli added a comment -

          Yeah, this must be an issue of the violations plugin. In my opinion, that has to do with the fact that the violations plugins is triggered after the actual build.

          Looking into the violations' sources shows that the master is trying to load the resources (via findFiles) with the context of the slaves workspace path.

          I'm not familiar with Hudson's code base, so I can only suggest. At ViolationsCollector#invoke(File,VirtualChannel) (currently line 70), there is a file path to the slave's workspace given. The actual process seems to happen on the master machine (collecting/post build), so Java "transforms" it more or less intelligent to the local file system (e.g. unix and windows differences).

          Should the master invoke this plugin, or can the client do that work?

          knalli added a comment - Yeah, this must be an issue of the violations plugin. In my opinion, that has to do with the fact that the violations plugins is triggered after the actual build. Looking into the violations' sources shows that the master is trying to load the resources (via findFiles) with the context of the slaves workspace path. I'm not familiar with Hudson's code base, so I can only suggest. At ViolationsCollector#invoke(File,VirtualChannel) (currently line 70), there is a file path to the slave's workspace given. The actual process seems to happen on the master machine (collecting/post build), so Java "transforms" it more or less intelligent to the local file system (e.g. unix and windows differences). Should the master invoke this plugin, or can the client do that work?

          evernat added a comment -

          It seems that this issue has been fixed in Jenkins v1.394 with the issue JENKINS-8418.
          Can the fix of this issue be verified and reported here?

          evernat added a comment - It seems that this issue has been fixed in Jenkins v1.394 with the issue JENKINS-8418 . Can the fix of this issue be verified and reported here?

          David Karlsen added a comment -

          Hard to track w/o using versions in jira - but yes, I think this can be closed - at least I can't see the same error any longer.

          David Karlsen added a comment - Hard to track w/o using versions in jira - but yes, I think this can be closed - at least I can't see the same error any longer.

          evernat added a comment -

          So resolving as duplicate of JENKINS-8418.
          Please reopen if needed.

          evernat added a comment - So resolving as duplicate of JENKINS-8418 . Please reopen if needed.

            Unassigned Unassigned
            davidkarlsen davidkarlsen
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: