javax.servlet.ServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Peter Nill,
  • 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)
    via by Peter Nill,
  • Email-ext plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • GitHub comment 351#150754909
    via GitHub by bxu-mmd
    ,
  • Failed to render status.png
    via GitHub by JozoVilcek
    ,
  • vSphere Cloud Plugin - Jenkins - Jenkins Wiki
    via by Unknown author,
  • 1. Build a job with “Invoke OWASP Dependency-Check analysis” with no parameters (so use defaults), as a build step. 2. After the job is complete, change the configuration of the job by going to: <hostname>/job/<jobname>/configure You can change anything, it doesn't matter. 3. Upon trying to save the configuration, I’m getting the following error (snipped for brevity): javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ..... Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) .... Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : Can't send a remote FilePath to a different remote channel ---- Debugging information ---- message : Could not call hudson.FilePath.writeObject() cause-exception : java.lang.IllegalStateException cause-message : Can't send a remote FilePath to a different remote channel ------------------------------- at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:141) at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:259) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:83) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) .... This error only happens on a job after a successful build, and before a configuration reload. Reloading configuration from disk allows the job to have configuration changes, as does restarting Jenkins entirely. This behavior does not exist with 1.2.10 of the plugin.
    via by Ronald Gundlach-Chmara,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    3 more bugmates