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

Project modifaction fails because of serialization error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • core, other
    • None
    • Environment: Windows Server 2003, 64 bit, 8 CPUs, 24 GB RAM
      probably trouble causing plugin: envfile (couldn't find envfile in above selection)

      Hello Hudson folks,

      first of all: Really great work! Hudson really helps me getting some automation work done in a chaotic project.
      But I've found an annoying and data eating bug.

      Problem: If I create a new job or modify an existing job right after Hudson's startup everything is fine.
      Buf if I modify or create a job and then try to modfiy the same job a second time, hudson displays an "Status Code: 500" page and all changes I've made are lost. It does not have any influence if I modify other jobs in the meantime.

      Workaround: If I restart Hudson or use the "copy existing job" functinality I have "one modification free". But I cannot restart Hudson everytime I need to make an modification to an job or loose all job history by copy and rename a job I have to modify.

      Interessting observation: If I try and delte a job, I'll get the same "Status Code: 500" page. But if I press the "one page back" button in my browser the job is marked as inactive and another try will delete the job.

      The main part of the stack trace seems to me (whole message attached):

      java.lang.RuntimeException: Failed to serialize hudson.model.Project#buildWrappers for class hudson.model.FreeStyleProject
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:164)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:130)
      ...
      Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.envfile.EnvFileBuildWrapper#buildListner for class hudson.plugins.envfile.EnvFileBuildWrapper
      at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:164)
      at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:135)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:130)
      ...
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.model.StreamBuildListener.writeObject() : Could not call hudson.remoting.RemoteOutputStream.writeObject() : null
      ---- Debugging information ----
      message : Could not call hudson.remoting.RemoteOutputStream.writeObject()
      cause-exception : java.lang.NullPointerException
      cause-message : null
      -------------------------------
      message : Could not call hudson.model.StreamBuildListener.writeObject()
      cause-exception : com.thoughtworks.xstream.converters.ConversionException
      cause-message : Could not call hudson.remoting.RemoteOutputStream.writeObject() : null
      -------------------------------
      ...

            Unassigned Unassigned
            ssplett ssplett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: