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.

  • 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,
  • 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,
  • I installed the Lotus Connections plugin successfully. I could add it to a job config as a post build task, but when I saved the config I got the following stacktrace: {{javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#publishers 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) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)}} See full stack trace in AddLotusConnectionsPluginStackTrace.txt. But the post build task remains and you are able to run the job. Running the job with the plugin added produces the following in the console output: {{Performing Lotus Connections Magic url = https://w3-connections.ibm.com/ user = [USER_EMAIL] ERROR: Publisher 'Lotus Connections Notifications' aborted due to exception: java.lang.NoSuchMethodError: hudson/model/AbstractBuild.getAggregatedTestResultAction()Lhudson/tasks/test/AggregatedTestResultAction; at com.ibm.ConnectionsPlugin.createForumTitle(ConnectionsPlugin.java:136) at com.ibm.ConnectionsPlugin.perform(ConnectionsPlugin.java:94) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381)}} Finally, when you enter the config, delete the Lotus Connections post build task and try to save the config you get a similar but not identical stack trace to when you add the plugin to a job: see RemoveLotusConnectionsPlugStackTrace
    via by John Wynne,
  • 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,
    • 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)

    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