javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject

Jenkins JIRA | Ronald Gundlach-Chmara | 1 year ago
  1. 0

    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.

    Jenkins JIRA | 1 year ago | Ronald Gundlach-Chmara
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject
  2. 0

    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.

    Jenkins JIRA | 1 year ago | Ronald Gundlach-Chmara
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject
  3. 0

    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

    Jenkins JIRA | 1 year ago | John Wynne
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#publishers for class hudson.model.FreeStyleProject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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

    Jenkins JIRA | 1 year ago | John Wynne
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to serialize hudson.model.Project#publishers for class hudson.model.FreeStyleProject
  6. 0

    Failed to render status.png

    GitHub | 2 years ago | JozoVilcek
    javax.servlet.ServletException: java.lang.IllegalArgumentException: This repo does not use git.

    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.RuntimeException: Failed to serialize hudson.model.Project#builders for class hudson.model.FreeStyleProject

      at org.kohsuke.stapler.Stapler.tryInvoke()
    2. Stapler
      Stapler.tryInvoke
      1. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
      2. org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
      3. org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
      4. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      5. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
      5 frames