java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a

Jenkins JIRA | Vassilena Treneva | 4 years ago
  1. 0

    Master Jenkins: openSUSE 11.3 (x86_64) VERSION = 11.3 Linux bambpmsauto 2.6.34.7-0.4-desktop #1 SMP PREEMPT 2010-10-07 19:07:51 +0200 x86_64 x86_64 x86_64 GNU/Linux We tried to use GRADLE wrapper and the error below appeared. It happens on any slave regardless the OS of the slace: Unpacking http://services.gradle.org/distributions/gradle-1.0-rc-3-bin.zip to c:/jenkins/tools/Gradle/gradle1.0-rc-3 on vmbam06.eur.ad.sag FATAL: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:662) at hudson.plugins.gradle.GradleInstallation.getWrapperExecutable(GradleInstallation.java:72) at hudson.plugins.gradle.Gradle.perform(Gradle.java:151) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.NotSerializableException: hudson.model.FreeStyleBuild at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 13 more

    Jenkins JIRA | 4 years ago | Vassilena Treneva
    java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a
  2. 0

    Master Jenkins: openSUSE 11.3 (x86_64) VERSION = 11.3 Linux bambpmsauto 2.6.34.7-0.4-desktop #1 SMP PREEMPT 2010-10-07 19:07:51 +0200 x86_64 x86_64 x86_64 GNU/Linux We tried to use GRADLE wrapper and the error below appeared. It happens on any slave regardless the OS of the slace: Unpacking http://services.gradle.org/distributions/gradle-1.0-rc-3-bin.zip to c:/jenkins/tools/Gradle/gradle1.0-rc-3 on vmbam06.eur.ad.sag FATAL: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:662) at hudson.plugins.gradle.GradleInstallation.getWrapperExecutable(GradleInstallation.java:72) at hudson.plugins.gradle.Gradle.perform(Gradle.java:151) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.io.NotSerializableException: hudson.model.FreeStyleBuild at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 13 more

    Jenkins JIRA | 4 years ago | Vassilena Treneva
    java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@df1532a
  3. 0

    I switched build back to "Use Gradle Wrapper" in "Invoke Gradle script" configuration from a previously manually defined Gradle. This may be related to master/slave configuration, i.e. I think that the problem exists because the changed Gradle plugin configuration can't be synced to the slave. FATAL: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5 java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:642) at hudson.plugins.gradle.GradleInstallation.getWrapperExecutable(GradleInstallation.java:72) at hudson.plugins.gradle.Gradle.perform(Gradle.java:154) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649) at hudson.model.Build$RunnerImpl.build(Build.java:177) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.NotSerializableException: hudson.model.FreeStyleBuild at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 13 more

    Jenkins JIRA | 6 years ago | Joern Huxhorn
    java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I switched build back to "Use Gradle Wrapper" in "Invoke Gradle script" configuration from a previously manually defined Gradle. This may be related to master/slave configuration, i.e. I think that the problem exists because the changed Gradle plugin configuration can't be synced to the slave. FATAL: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5 java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5 at hudson.remoting.UserRequest.serialize(UserRequest.java:166) at hudson.remoting.UserRequest.<init>(UserRequest.java:62) at hudson.remoting.Channel.call(Channel.java:642) at hudson.plugins.gradle.GradleInstallation.getWrapperExecutable(GradleInstallation.java:72) at hudson.plugins.gradle.Gradle.perform(Gradle.java:154) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649) at hudson.model.Build$RunnerImpl.build(Build.java:177) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423) at hudson.model.Run.run(Run.java:1362) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: java.io.NotSerializableException: hudson.model.FreeStyleBuild at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) at hudson.remoting.UserRequest._serialize(UserRequest.java:155) at hudson.remoting.UserRequest.serialize(UserRequest.java:164) ... 13 more

    Jenkins JIRA | 6 years ago | Joern Huxhorn
    java.io.IOException: Unable to serialize hudson.plugins.gradle.GradleInstallation$2@100e3d5
  6. 0

    Exception when parsing test results on build slaves

    GitHub | 1 year ago | S1artie
    java.io.IOException: remote file operation failed: /home/jenkins/workspace/xxx at hudson.remoting.Channel@8e3d98e:Local Docker-f899bbe6be02: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@5fd71032

  1. kjhdofjosvs 1 times, last 1 week ago
  2. treefolk 1 times, last 2 weeks ago
  3. filpgame 4 times, last 2 weeks ago
  4. Handemelindo 15 times, last 3 weeks ago
  5. eti22 1 times, last 1 month ago
11 more registered users
50 unregistered visitors
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. java.io.NotSerializableException

    hudson.model.FreeStyleBuild

    at java.io.ObjectOutputStream.writeObject0()
  2. Java RT
    ObjectOutputStream.writeObject
    1. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
    2. java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
    3. java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
    4. java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
    5. java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
    6. java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
    6 frames
  3. Hudson :: Remoting Layer
    Channel.call
    1. hudson.remoting.UserRequest._serialize(UserRequest.java:155)
    2. hudson.remoting.UserRequest.serialize(UserRequest.java:164)
    3. hudson.remoting.UserRequest.<init>(UserRequest.java:62)
    4. hudson.remoting.Channel.call(Channel.java:662)
    4 frames
  4. hudson.plugins.gradle
    Gradle.perform
    1. hudson.plugins.gradle.GradleInstallation.getWrapperExecutable(GradleInstallation.java:72)
    2. hudson.plugins.gradle.Gradle.perform(Gradle.java:151)
    2 frames
  5. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    6. hudson.model.Run.execute(Run.java:1488)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:236)
    9 frames