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

Project modifaction fails because of serialization error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate
    • Component/s: core, other
    • Labels:
      None
    • Environment:
      Environment: Windows Server 2003, 64 bit, 8 CPUs, 24 GB RAM
      probably trouble causing plugin: envfile (couldn't find envfile in above selection)
    • Similar Issues:

      Description

      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
      -------------------------------
      ...

        Attachments

          Issue Links

            Activity

            ssplett ssplett created issue -
            ssplett ssplett made changes -
            Field Original Value New Value
            Summary Project modifaction fails because of serialization Project modifaction fails because of serialization error
            Hide
            ssplett ssplett added a comment -

            Hudson-6595 seems to have the same problem when running a job. Maybe this is a duplicate?

            Show
            ssplett ssplett added a comment - Hudson-6595 seems to have the same problem when running a job. Maybe this is a duplicate?
            ssplett ssplett made changes -
            Link This issue depends on JENKINS-6595 [ JENKINS-6595 ]
            mindless Alan Harder made changes -
            Link This issue duplicates JENKINS-6595 [ JENKINS-6595 ]
            Hide
            mindless Alan Harder added a comment -

            disable envfile plugin until its next release comes out.

            Show
            mindless Alan Harder added a comment - disable envfile plugin until its next release comes out.
            mindless Alan Harder made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            Hide
            ssplett ssplett added a comment -

            I can confirm that the problem is fixed with http://jenkins-ci.org/commit/31535

            Show
            ssplett ssplett added a comment - I can confirm that the problem is fixed with http://jenkins-ci.org/commit/31535
            ssplett ssplett made changes -
            Status Resolved [ 5 ] Verified [ 10000 ]
            abayer Andrew Bayer made changes -
            Status Verified [ 10000 ] Closed [ 6 ]
            Hide
            bkwon Bryant Kwon added a comment -

            We are encountering a very similar issue after having upgraded from Jenkins v1.446 to v1.478
            Tried to reference the link provided by ssplett but it appears the server for that reference is offline at this time. Does anyone have an alternate reference we can use to help resolve this issue?

            Thanks.

            Show
            bkwon Bryant Kwon added a comment - We are encountering a very similar issue after having upgraded from Jenkins v1.446 to v1.478 Tried to reference the link provided by ssplett but it appears the server for that reference is offline at this time. Does anyone have an alternate reference we can use to help resolve this issue? Thanks.
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 136902 ] JNJira + In-Review [ 204276 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: