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

When the UserRequest deserialization fails, the stack trace fails to capture the call site info

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      As you can see below, it doesn't show the call site information.

      ERROR: Processing failed due to a bug in the code. Please report this to jenkins-users@googlegroups.com
      java.lang.ClassCastException: cannot assign instance of hudson.model.StreamBuildListener to field hudson.maven.MavenModuleSetBuild$PomParser.listener of type hudson.model.BuildListener in instance of hudson.maven.MavenModuleSetBuild$PomParser
      	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2056)
      	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1229)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1969)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1887)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1963)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1887)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:178)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:98)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:270)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:636)
      

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Otherwise the error diagnostics is hard.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Otherwise the error diagnostics is hard.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          remoting/src/main/java/hudson/remoting/UserRequest.java
          remoting/src/test/java/hudson/remoting/ChannelTest.java
          http://jenkins-ci.org/commit/jenkins/2aad40296f49860f2cad8f7b64a71a3eb3eb11b6
          Log:
          [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html remoting/src/main/java/hudson/remoting/UserRequest.java remoting/src/test/java/hudson/remoting/ChannelTest.java http://jenkins-ci.org/commit/jenkins/2aad40296f49860f2cad8f7b64a71a3eb3eb11b6 Log: [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #611
          [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize.

          Kohsuke Kawaguchi : 2aad40296f49860f2cad8f7b64a71a3eb3eb11b6
          Files :

          • remoting/src/test/java/hudson/remoting/ChannelTest.java
          • changelog.html
          • remoting/src/main/java/hudson/remoting/UserRequest.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #611 [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize. Kohsuke Kawaguchi : 2aad40296f49860f2cad8f7b64a71a3eb3eb11b6 Files : remoting/src/test/java/hudson/remoting/ChannelTest.java changelog.html remoting/src/main/java/hudson/remoting/UserRequest.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          remoting/src/main/java/hudson/remoting/UserRequest.java
          remoting/src/test/java/hudson/remoting/ChannelTest.java
          http://jenkins-ci.org/commit/jenkins/2aad40296f49860f2cad8f7b64a71a3eb3eb11b6
          Log:
          [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html remoting/src/main/java/hudson/remoting/UserRequest.java remoting/src/test/java/hudson/remoting/ChannelTest.java http://jenkins-ci.org/commit/jenkins/2aad40296f49860f2cad8f7b64a71a3eb3eb11b6 Log: [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize.

            People

            Assignee:
            kohsuke Kohsuke Kawaguchi
            Reporter:
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: