[JIRA] (JENKINS-57244) java.io.NotSerializableException: The calling thread Thread has no associated channel

342 views
Skip to first unread message

weiss@iml.fhg.de (JIRA)

unread,
Apr 30, 2019, 6:14:03 AM4/30/19
to jenkinsc...@googlegroups.com
Norbert Weiß created an issue
 
Jenkins / Bug JENKINS-57244
java.io.NotSerializableException: The calling thread Thread has no associated channel
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2019-04-30 10:13
Environment: jenkins 2.175,
openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.16.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Priority: Blocker Blocker
Reporter: Norbert Weiß

 

after a successfull Excecution we get the following stacktrace: (rollback to jenkins 2.172 fixes the problem)

 

INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:16.948s
INFO: Final Memory: 88M/6409M
INFO: ------------------------------------------------------------------------
FATAL: java.lang.RuntimeException: Failed to serialize hudson.maven.MavenBuild#projectActionReporters for class hudson.maven.MavenBuild
java.io.NotSerializableException: The calling thread ThreadExecutor #0 for hamilton : executing puzzle-core #5262,5,main has no associated channel. The current object /data/jenkins/jobs/.../javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel
at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)
at hudson.FilePath.writeObject(FilePath.java:2989)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)
Caused: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread ThreadExecutor #0 for hamilton : executing puzzle-core #5262,5,main has no associated channel. The current object /data/jenkins/jobs/puzzle-core/modules/de.fraunhofer.iml.puzzle$puzzle-core/javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel
---- Debugging information ----
message : Could not call hudson.FilePath.writeObject()
cause-exception : java.io.NotSerializableException
cause-message : The calling thread ThreadExecutor #0 for hamilton : executing puzzle-core #5262,5,main has no associated channel. The current object /data/jenkins/jobs/puzzle-core/modules/de.fraunhofer.iml.puzzle$puzzle-core/javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the 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)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
Caused: java.lang.RuntimeException: Failed to serialize hudson.maven.reporters.AbstractMavenJavadocArchiver#target for class hudson.maven.reporters.MavenJavadocArchiver
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
Caused: java.lang.RuntimeException: Failed to serialize hudson.maven.MavenBuild#projectActionReporters for class hudson.maven.MavenBuild
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
at hudson.XmlFile.write(XmlFile.java:193)
Caused: java.io.IOException
at hudson.XmlFile.write(XmlFile.java:200)
at hudson.model.Run.save(Run.java:2014)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1070)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1843)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

weiss@iml.fhg.de (JIRA)

unread,
Apr 30, 2019, 8:08:03 AM4/30/19
to jenkinsc...@googlegroups.com
Norbert Weiß updated an issue
Change By: Norbert Weiß
 

after a successfull Excecution we get the following stacktrace: (rollback to jenkins 2.172 fixes the problem)

 

INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:16.948s
INFO: Final Memory: 88M/6409M
INFO: ------------------------------------------------------------------------
FATAL: java.lang.RuntimeException: Failed to serialize hudson.maven.MavenBuild#projectActionReporters for class hudson.maven.MavenBuild
java.io.NotSerializableException: The calling thread Thread[Executor #0 for hamilton node : executing puzzle-core ... #5262,5,main |#5262,5,main ] has no associated channel. The current object /data/jenkins/jobs/.../javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)
at hudson.FilePath.writeObject(FilePath.java:2989)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)
Caused: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread Thread[Executor #0 for hamilton node : executing puzzle-core ... #5262,5,main |#5262,5,main ] has no associated channel. The current object / data/jenkins/jobs/puzzle-core/modules/de path . fraunhofer . iml . puzzle $ puzzle-core project /javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

---- Debugging information ----
message : Could not call hudson.FilePath.writeObject()
cause-exception : java.io.NotSerializableException
cause-message : The calling thread Thread[Executor #0 for hamilton node : executing puzzle-core ... #5262,5,main |#5262,5,main ] has no associated channel. The current object / data/jenkins/jobs/puzzle-core/modules/de path . fraunhofer . iml . puzzle $ puzzle-core project /javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

mathin@mathin.com (JIRA)

unread,
May 2, 2019, 11:20:04 AM5/2/19
to jenkinsc...@googlegroups.com
Dan Ebert commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

I'm seeing a similar problem. Here's the stack trace from the build log:

 
07:53:56 hudson.remoting.ProxyException: java.io.NotSerializableException: The calling thread Threadorg.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56* at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)07:53:56 at hudson.FilePath.writeObject(FilePath.java:2989)07:53:56 at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)07:53:56 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)07:53:56 at java.lang.reflect.Method.invoke(Method.java:498)07:53:56 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)07:53:56 Caused: hudson.remoting.ProxyException: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread Threadorg.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56* ---- Debugging information ----07:53:56 message : Could not call hudson.FilePath.writeObject()07:53:56 cause-exception : java.io.NotSerializableException*07:53:56* cause-message : The calling thread Threadorg.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56* -------------------------------07:53:56 at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:141)07:53:56 at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:259)07:53:56 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:83)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)07:53:56 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)07:53:56 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)07:53:56 Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.scoverage.ScoverageBuildAction#buildPath for class org.jenkinsci.plugins.scoverage.ScoverageBuildAction*07:53:56* at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)07:53:56 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)07:53:56 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)07:53:56 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)07:53:56 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)07:53:56 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)07:53:56 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)07:53:56 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)07:53:56 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)07:53:56 Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun*07:53:56* at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)07:53:56 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)07:53:56 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)07:53:56 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)07:53:56 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)07:53:56 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)07:53:56 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)07:53:56 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)07:53:56 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)07:53:56 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)07:53:56 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)07:53:56 at hudson.XmlFile.write(XmlFile.java:193)07:53:56 Caused: hudson.remoting.ProxyException: java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun*07:53:56* at hudson.XmlFile.write(XmlFile.java:200)07:53:56 at org.jenkinsci.plugins.workflow.support.PipelineIOUtils.writeByXStream(PipelineIOUtils.java:30)07:53:56 at org.jenkinsci.plugins.workflow.job.WorkflowRun.save(WorkflowRun.java:1142)07:53:56 at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintAction.addToRun(DockerFingerprintAction.java:145)07:53:56 at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprints.addFromFacet(DockerFingerprints.java:277)07:53:56 at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:114)07:53:56 at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:84)07:53:56 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)07:53:56 at hudson.security.ACL.impersonate(ACL.java:290)07:53:56 at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)07:53:56 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)07:53:56 at java.util.concurrent.FutureTask.run(FutureTask.java:266)07:53:56 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)07:53:56 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)07:53:56 at java.lang.Thread.run(Thread.java:748)07:53:56 Finished: FAILURE
 

mathin@mathin.com (JIRA)

unread,
May 2, 2019, 11:21:04 AM5/2/19
to jenkinsc...@googlegroups.com
Dan Ebert edited a comment on Bug JENKINS-57244
I'm seeing a similar problem. Here's the stack trace from the build log:

{{   }}
{{}}
*07:53:56*  hudson.remoting.ProxyException: java.io.NotSerializableException: The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56*   at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)*07:53:56*   at hudson.FilePath.writeObject(FilePath.java:2989)*07:53:56*   at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)*07:53:56*   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*07:53:56*   at java.lang.reflect.Method.invoke(Method.java:498)*07:53:56*   at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)*07:53:56*  Caused: hudson.remoting.ProxyException: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56*  ---- Debugging information ----*07:53:56*  message             : Could not call hudson.FilePath.writeObject()*07:53:56*  cause-exception     : java.io.NotSerializableException*07:53:56*  cause-message       : The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel*07:53:56*  -------------------------------*07:53:56*   at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:141)*07:53:56*   at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:259)*07:53:56*   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:83)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*07:53:56*   at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)*07:53:56*   at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)*07:53:56*  Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.scoverage.ScoverageBuildAction#buildPath for class org.jenkinsci.plugins.scoverage.ScoverageBuildAction*07:53:56*   at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)*07:53:56*   at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)*07:53:56*   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)*07:53:56*   at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)*07:53:56*   at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)*07:53:56*   at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)*07:53:56*   at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)*07:53:56*   at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263)*07:53:56*   at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)*07:53:56*  Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun*07:53:56*   at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)*07:53:56*   at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)*07:53:56*   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)*07:53:56*   at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)*07:53:56*   at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)*07:53:56*   at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)*07:53:56*   at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)*07:53:56*   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)*07:53:56*   at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)*07:53:56*   at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)*07:53:56*   at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)*07:53:56*   at hudson.XmlFile.write(XmlFile.java:193)*07:53:56*  Caused: hudson.remoting.ProxyException: java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun*07:53:56*   at hudson.XmlFile.write(XmlFile.java:200)*07:53:56*   at org.jenkinsci.plugins.workflow.support.PipelineIOUtils.writeByXStream(PipelineIOUtils.java:30)*07:53:56*   at org.jenkinsci.plugins.workflow.job.WorkflowRun.save(WorkflowRun.java:1142)*07:53:56*   at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintAction.addToRun(DockerFingerprintAction.java:145)*07:53:56*   at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprints.addFromFacet(DockerFingerprints.java:277)*07:53:56*   at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:114)*07:53:56*   at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:84)*07:53:56*   at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)*07:53:56*   at hudson.security.ACL.impersonate(ACL.java:290)*07:53:56*   at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)*07:53:56*   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)*07:53:56*   at java.util.concurrent.FutureTask.run(FutureTask.java:266)*07:53:56*   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)*07:53:56*   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)*07:53:56*   at java.lang.Thread.run(Thread.java:748)*07:53:56*  Finished: FAILURE
 

 

mathin@mathin.com (JIRA)

unread,
May 2, 2019, 11:21:04 AM5/2/19
to jenkinsc...@googlegroups.com

mathin@mathin.com (JIRA)

unread,
May 2, 2019, 11:22:03 AM5/2/19
to jenkinsc...@googlegroups.com
Dan Ebert edited a comment on Bug JENKINS-57244
I'm seeing a similar problem. Here's the stack trace from the build log:

{{ 
}}
{{
*
07:53:56 *   hudson.remoting.ProxyException: java.io.NotSerializableException: The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel *
07:53:56 *    at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67) *
07:53:56 *    at hudson.FilePath.writeObject(FilePath.java:2989) *
07:53:56 *    at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source) *
07:53:56 *    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) *
07:53:56 *    at java.lang.reflect.Method.invoke(Method.java:498) *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135) *
07:53:56 *   Caused: hudson.remoting.ProxyException: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel *
07:53:56 *   ---- Debugging information ---- *
07:53:56 *   message             : Could not call hudson.FilePath.writeObject() *
07:53:56 *   cause-exception     : java.io.NotSerializableException *
07:53:56 *   cause-message       : The calling thread Thread[org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution [#354],5,main] has no associated channel. The current object /var/lib/jenkins/jobs/ci-platform-numbers-api/builds/452 is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel *
07:53:56 *   ------------------------------- *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:141) *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:259) *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:83) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) *
07:53:56 *    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) *
07:53:56 *   Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.scoverage.ScoverageBuildAction#buildPath for class org.jenkinsci.plugins.scoverage.ScoverageBuildAction *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254) *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222) *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) *
07:53:56 *    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208) *
07:53:56 *    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) *
07:53:56 *    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) *
07:53:56 *    at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) *
07:53:56 *    at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) *
07:53:56 *   Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254) *
07:53:56 *    at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222) *
07:53:56 *    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) *
07:53:56 *    at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208) *
07:53:56 *    at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) *
07:53:56 *    at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) *
07:53:56 *    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) *
07:53:56 *    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026) *
07:53:56 *    at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015) *
07:53:56 *    at com.thoughtworks.xstream.XStream.toXML(XStream.java:988) *
07:53:56 *    at hudson.XmlFile.write(XmlFile.java:193) *
07:53:56 *   Caused: hudson.remoting.ProxyException: java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun *
07:53:56 *    at hudson.XmlFile.write(XmlFile.java:200) *
07:53:56 *    at org.jenkinsci.plugins.workflow.support.PipelineIOUtils.writeByXStream(PipelineIOUtils.java:30) *
07:53:56 *    at org.jenkinsci.plugins.workflow.job.WorkflowRun.save(WorkflowRun.java:1142) *
07:53:56 *    at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintAction.addToRun(DockerFingerprintAction.java:145) *
07:53:56 *    at org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprints.addFromFacet(DockerFingerprints.java:277) *
07:53:56 *    at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:114) *
07:53:56 *    at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:84) *
07:53:56 *    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) *
07:53:56 *    at hudson.security.ACL.impersonate(ACL.java:290) *
07:53:56 *    at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) *
07:53:56 *    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) *
07:53:56 *    at java.util.concurrent.FutureTask.run(FutureTask.java:266) *
07:53:56 *    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) *
07:53:56 *    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) *
07:53:56 *    at java.lang.Thread.run(Thread.java:748) *
07:53:56 *   Finished: FAILURE
 
}}

dbeck@cloudbees.com (JIRA)

unread,
May 2, 2019, 11:25:02 AM5/2/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 3, 2019, 7:47:03 AM5/3/19
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

This is a valid failure caused by JENKINS-47896 which prevents improper serialization of Remoting objects to wrong destinations. We will need a fix in the scoverage plugin

o.v.nenashev@gmail.com (JIRA)

unread,
May 3, 2019, 7:48:02 AM5/3/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 3, 2019, 7:49:01 AM5/3/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Change By: Oleg Nenashev
Component/s: maven-plugin
Component/s: scoverage-plugin

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 10:04:03 AM5/3/19
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
 

after a successfull Excecution we get the following stacktrace: (rollback to jenkins 2.172 fixes the problem)

  {code:none}

INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:16.948s
INFO: Final Memory: 88M/6409M
INFO: ------------------------------------------------------------------------
FATAL: java.lang.RuntimeException: Failed to serialize hudson.maven.MavenBuild#projectActionReporters for class hudson.maven.MavenBuild
java.io.NotSerializableException: The calling thread Thread[Executor #0 for node : executing ... #5262,5,main|#5262,5,main] has no associated channel. The current object /data/jenkins/jobs/.../javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)
at hudson.FilePath.writeObject(FilePath.java:2989)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)
Caused: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : The calling thread Thread[Executor #0 for node : executing ... #5262,5,main|#5262,5,main] has no associated channel. The current object /path...$project/javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel
---- Debugging information ----

message : Could not call hudson.FilePath.writeObject()
cause-exception : java.io.NotSerializableException
cause-message : The calling thread Thread[Executor #0 for node : executing ... #5262,5,main|#5262,5,main] has no associated channel. The current object /path...$project/javadoc is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

{code}

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 10:29:02 AM5/3/19
to jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-57244
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 10:29:03 AM5/3/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 11:06:02 AM5/3/19
to jenkinsc...@googlegroups.com
Jesse Glick commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

I think I understand the problem in the Maven plugin, but need to write a test to reproduce it—the existing test suite, though quite large, appears to never exercise the Javadoc reporter which is the source of the issue.

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 2:53:02 PM5/3/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 2:56:03 PM5/3/19
to jenkinsc...@googlegroups.com
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

Prepared a core patch to make these errors nonfatal, and patches for the Maven and SCoverage plugins to not attempt to store FilePath instances. (In both cases, the object referred always to a local file on the Jenkins master, so a File or String would have sufficed; and no such field was actually needed to begin with. Same in JENKINS-57229 I think.)

jglick@cloudbees.com (JIRA)

unread,
May 3, 2019, 3:31:01 PM5/3/19
to jenkinsc...@googlegroups.com

In the Gatling plugin, apparently some state was needed in the action, though the full file path was surely overkill.

jsoref+jenkins@gmail.com (JIRA)

unread,
May 6, 2019, 11:14:02 AM5/6/19
to jenkinsc...@googlegroups.com
Josh Soref updated an issue
 
Change By: Josh Soref
 

after a successfull
Excecution Execution we get the following stacktrace: (rollback to jenkins 2.172 fixes the problem)

 

jsoref+jenkins@gmail.com (JIRA)

unread,
May 6, 2019, 11:15:03 AM5/6/19
to jenkinsc...@googlegroups.com
Josh Soref updated an issue
 

after a
successfull successful Execution we get the following stacktrace: (rollback to jenkins 2.172 fixes the problem)

o.v.nenashev@gmail.com (JIRA)

unread,
May 6, 2019, 11:17:03 AM5/6/19
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

The core regression was fixed in Jenkins 2.166. Now it is up to plugins to implement a proper fix on their side to avoid legitimate warnings in system logs.

Norbert Weiß Dan Ebert could you please create follow-up tickets for that to the plugins?

mathin@mathin.com (JIRA)

unread,
May 6, 2019, 11:39:01 AM5/6/19
to jenkinsc...@googlegroups.com

I think Jesse already created a bug for the scoverage plugin.

weiss@iml.fhg.de (JIRA)

unread,
May 7, 2019, 3:10:02 AM5/7/19
to jenkinsc...@googlegroups.com

As far as I understand there is some work in progress to fix the issue in the maven-plugin code.

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:21:03 PM5/20/19
to jenkinsc...@googlegroups.com

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:38:02 PM5/20/19
to jenkinsc...@googlegroups.com

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:39:05 PM5/20/19
to jenkinsc...@googlegroups.com

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:39:08 PM5/20/19
to jenkinsc...@googlegroups.com

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:39:08 PM5/20/19
to jenkinsc...@googlegroups.com

rherrick@gmail.com (JIRA)

unread,
May 20, 2019, 1:44:05 PM5/20/19
to jenkinsc...@googlegroups.com
rherrick commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

This issue is absolutely killing our build server. It's appearing in many different contexts, including getting build configurations, viewing jobs, running executors, routine maintenance tasks like fingerprint cleanup, etc. There have been 4,707 occurrences in just the last three hours: jenkins.log is 32MB (attached compressed jenkins.log.gz). Jenkins is at 2.178. I keep upgrading hoping that this will be fixed but clearly it's not.

If there's a single plugin causing the problem, I'd be happy to uninstall it but, as I noted, it's happening for lots of different operations. The biggest problem is that it's blocking the credentials store functionality, so projects that already have credentials configured have a warning "Cannot find any credentials with id <xxx>". The only options available in the credentials drop-down list are "current" and "none". If I set the credentials to "none" and save the configuration, then the only option available is "none". At some point the following message is logged:

2019-05-20 14:36:05.974+0000 [id=10] WARNING hudson.FilePath#_getChannelForSerialization: A FilePath object is being serialized when it should not be, indicating a bug in a plugin. See https://jenkins.io/redirect/filepath-serialization for details.
java.io.NotSerializableException: The calling thread Thread[Handling GET /credentials/store/system/domain/_/credential/<xxxx>/ from _<ip-address>_ : _<id>_ CredentialsStoreAction/CredentialsWrapper/index.jelly,5,main] has no associated channel. The current object null is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel

I've got builds limping along now after dealing with weird conflicts from the authorize project plugin that may or may not be related to this issue, but I would really like a fix to this both so we can configure credentials on projects without having to edit config.xml files and to declutter the log files so that we can see any other issues that may occur.

olamy@apache.org (JIRA)

unread,
May 24, 2019, 7:13:03 AM5/24/19
to jenkinsc...@googlegroups.com

olamy@apache.org (JIRA)

unread,
May 24, 2019, 7:13:03 AM5/24/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
May 24, 2019, 3:15:04 PM5/24/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
May 24, 2019, 3:15:05 PM5/24/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
May 24, 2019, 3:16:01 PM5/24/19
to jenkinsc...@googlegroups.com

rackeby@hotmail.com (JIRA)

unread,
Jul 5, 2019, 7:43:04 AM7/5/19
to jenkinsc...@googlegroups.com

Should this be fixed in 2.176.1?

The plugins list and versions are:

 

amazon-ecs:1.19
ansicolor:0.6.2
build-monitor-plugin:1.12+build.201809061734
build-timeout:1.19
build-user-vars-plugin:1.5
checkstyle:4.0.0
claim:2.15
cloudbees-folder:6.9
copyartifact:1.42.1
credentials:2.2.0
cucumber-reports:4.7.0
cucumber-testresult-plugin:0.10.1
description-setter:1.10
envinject:2.1.6
extended-read-permission:2.0
flexible-publish:0.15.2
gatling:1.2.6
ghprb:1.42.0
git:3.10.0
github-api:1.95
github:1.29.4
gradle:1.32
htmlpublisher:1.18
job-dsl:1.74
jobConfigHistory:2.22
ldap:1.20
lockable-resources:2.5
matrix-auth:2.4.2
Parameterized-Remote-Trigger:3.0.8
pipeline-model-definition:1.3.9
pipeline-model-extensions:1.3.9
pipeline-stage-tags-metadata:1.3.9
pipeline-model-api:1.3.9
parameterized-trigger:2.35.2
plain-credentials:1.5
postbuild-task:1.8
preSCMbuildstep:0.3
pyenv:0.0.7
rbenv:0.0.17
rebuild:1.31
scoverage:1.4.0
seleniumhtmlreport:1.0
workflow-durable-task-step:2.31
workflow-aggregator:2.6
workflow-api:2.35
ws-cleanup:0.37
xvfb:1.1.3

I've updated all the plugins which I can but get this error:

 

2019-07-05 11:27:28 FINEST org.jenkinsci.bytecode.TransformationSpec mayNeedTransformation returning false
2019-07-05 11:27:28 FINEST org.jenkinsci.bytecode.Transformer no transformation required for org.jenkinsci.plugins.scoverage.ScoverageBuildAction
2019-07-05 11:27:28 FINE org.eclipse.jetty.webapp.WebAppClassLoader found webapp loaded interface jenkins.tasks.SimpleBuildStep$LastBuildAction
2019-07-05 11:27:28 FINE org.eclipse.jetty.webapp.WebAppClassLoader found webapp loaded interface org.kohsuke.stapler.export.ExportedBean
2019-07-05 11:27:28 FINE org.eclipse.jetty.webapp.WebAppClassLoader found webapp loaded interface hudson.model.ModelObject
2019-07-05 11:27:28 FINE jenkins.security.ClassFilterImpl permitting org.jenkinsci.plugins.scoverage.ScoverageBuildAction due to its location in file:/var/jenkins_home/plugins/scoverage/WEB-INF/lib/scoverage.jar
2019-07-05 11:27:28 FINE jenkins.security.ClassFilterImpl permitting hudson.FilePath due to its location in file:/var/jenkins_home/war/WEB-INF/lib/jenkins-core-2.176.1.jar
2019-07-05 11:27:28 FINE org.eclipse.jetty.webapp.WebAppClassLoader found webapp loaded class hudson.FilePath
2019-07-05 11:27:28 WARNING hudson.FilePath A FilePath object is being serialized when it should not be, indicating a bug in a plugin. See https://jenkins.io/redirect/filepath-serialization for details.
java.io.NotSerializableException: The calling thread Thread[Handling GET / from 10.35.1.195 : qtp1972439101-13 View/index.jelly WeatherColumn/column.jelly,5,main] has no associated channel. The current object null is interface org.jenkinsci.remoting.SerializableOnlyOverRemoting, but it is likely being serialized/deserialized without the channel
        at org.jenkinsci.remoting.SerializableOnlyOverRemoting.getChannelForSerialization(SerializableOnlyOverRemoting.java:67)
        at hudson.FilePath._getChannelForSerialization(FilePath.java:3001)
        at hudson.FilePath.readObject(FilePath.java:3009)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadObject(SerializationMethodInvoker.java:114)
        at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doUnmarshal(SerializableConverter.java:454)
        at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:257)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
        at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:391)
        at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:329)
        at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:268)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
        at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
        at hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:85)
        at com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:80)

rackeby@hotmail.com (JIRA)

unread,
Jul 5, 2019, 7:44:02 AM7/5/19
to jenkinsc...@googlegroups.com

pierre.larsson@gmail.com (JIRA)

unread,
Jul 5, 2019, 7:54:02 AM7/5/19
to jenkinsc...@googlegroups.com

pierre.larsson@gmail.com (JIRA)

unread,
Jul 5, 2019, 7:54:05 AM7/5/19
to jenkinsc...@googlegroups.com
Pierre Larsson edited a comment on Bug JENKINS-57244
Reverted to 2.164.3 and the message exception goes away

jglick@cloudbees.com (JIRA)

unread,
Jul 5, 2019, 2:06:03 PM7/5/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Fixed
 

Pierre Larsson this is fixed. What you show is a warning, not an error, about a bug in some plugin. From the log excerpt quoted it is impossible to tell which. Could probably use XmlFile.writing to help diagnose this if it is not obvious from context, but that would be a follow-up diagnostics Enhancement.

Change By: Jesse Glick
Status: Reopened Resolved
Resolution: Fixed

sjeetsingh2801@gmail.com (JIRA)

unread,
Feb 11, 2020, 4:50:03 PM2/11/20
to jenkinsc...@googlegroups.com
Sarabjeet Pulaha commented on Bug JENKINS-57244
 
Re: java.io.NotSerializableException: The calling thread Thread has no associated channel

Pierre Larsson
As you can see, FilePath Serialization is causing the slowness in your Jenkins. We encountered this in our org and found removing FilePath fixing it. Seems like we need to get this issue reported under that plugin.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages