javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !

Jenkins JIRA | Peter Nill | 2 years ago
  1. 0

    Dear all, we use one Jenkins (1.532.2) with distributed client machines for different build processes. Build processes and report archiving work fine. Build reports etc. are stored on the server on a seperate logical partition "D:". This is configured in Jenkins settings (see screenshot attached) h3. Problem: "Discard Old Builds" (enabled to keep only 5 last builds) does not remove any builds. Disk space is not (yet) an issue, but the issue is major. h3. Observation: I could not find any log entries in console output or Jenkins log file that had a reference to LogRotator or Discarding any builds. However, Jenkins log contains several "ProblemInspector" exceptions of type "IllegalArgumentException" stating "<File> does not reside in <WorkingDir>" (see stack trace below for example). I get the same error messages, when trying to use the "Keep build forever" or "Don't keep this build forever" (see screenshot attached). h3. Hypothesis: Could this issue be related to the method "JenkinsFilesHelper.buildPathRelativeToHudsonRoot" having a problem with the absolute path leading to another logical partition? Probably, this issue be related to [JENKINS-13593|https://issues.jenkins-ci.org/browse/JENKINS-13593] ? Your assistance is greatly appreciated. Regards, Peter h3. Stack trace (excerpt) javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] ! at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) ... Caused by: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] ! at hudson.plugins.scm_sync_configuration.JenkinsFilesHelper.buildPathRelativeToHudsonRoot(JenkinsFilesHelper.java:12) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.matches(PatternsEntityMatcher.java:25) at hudson.plugins.scm_sync_configuration.strategies.AbstractScmSyncStrategy.isSaveableApplicable(AbstractScmSyncStrategy.java:53) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.getStrategyForSaveable(ScmSyncConfigurationPlugin.java:279)

    Jenkins JIRA | 2 years ago | Peter Nill
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
  2. 0

    Dear all, we use one Jenkins (1.532.2) with distributed client machines for different build processes. Build processes and report archiving work fine. Build reports etc. are stored on the server on a seperate logical partition "D:". This is configured in Jenkins settings (see screenshot attached) h3. Problem: "Discard Old Builds" (enabled to keep only 5 last builds) does not remove any builds. Disk space is not (yet) an issue, but the issue is major. h3. Observation: I could not find any log entries in console output or Jenkins log file that had a reference to LogRotator or Discarding any builds. However, Jenkins log contains several "ProblemInspector" exceptions of type "IllegalArgumentException" stating "<File> does not reside in <WorkingDir>" (see stack trace below for example). I get the same error messages, when trying to use the "Keep build forever" or "Don't keep this build forever" (see screenshot attached). h3. Hypothesis: Could this issue be related to the method "JenkinsFilesHelper.buildPathRelativeToHudsonRoot" having a problem with the absolute path leading to another logical partition? Probably, this issue be related to [JENKINS-13593|https://issues.jenkins-ci.org/browse/JENKINS-13593] ? Your assistance is greatly appreciated. Regards, Peter h3. Stack trace (excerpt) javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] ! at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) ... Caused by: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] ! at hudson.plugins.scm_sync_configuration.JenkinsFilesHelper.buildPathRelativeToHudsonRoot(JenkinsFilesHelper.java:12) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.matches(PatternsEntityMatcher.java:25) at hudson.plugins.scm_sync_configuration.strategies.AbstractScmSyncStrategy.isSaveableApplicable(AbstractScmSyncStrategy.java:53) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.getStrategyForSaveable(ScmSyncConfigurationPlugin.java:279)

    Jenkins JIRA | 2 years ago | Peter Nill
    javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
  3. 0

    Failed to render status.png

    GitHub | 2 years ago | JozoVilcek
    javax.servlet.ServletException: java.lang.IllegalArgumentException: This repo does not use git.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-20254] NoClassDefFoundError adding HTTPS URL for Git repository - fails - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: org.jenkinsci.plugins.gitclient.GitClient
  6. 0

    Email-ext plugin - Jenkins - Jenkins Wiki

    jenkins-ci.org | 2 months ago
    javax.servlet.ServletException: java.lang.ClassCastException: hudson.plugins.downstream_ext.DownstreamTrigger cannot be cast to hudson.tasks.BuildTrigger

    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. javax.servlet.ServletException

      java.lang.IllegalArgumentException: Err ! File [D:\jenkins\couit\builds\2014-08-20_08-08-32\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !

      at org.kohsuke.stapler.Stapler.tryInvoke()
    2. Stapler
      Stapler.tryInvoke
      1. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:778)
      2. org.kohsuke.stapler.Stapler.invoke(Stapler.java:858)
      3. org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:390)
      4. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728)
      4 frames