[JIRA] (JENKINS-50318) Refusing to marshal com.google.common.util.concurrent.SettableFuture

6 views
Skip to first unread message

chris@orr.me.uk (JIRA)

unread,
Mar 21, 2018, 9:26:02 AM3/21/18
to jenkinsc...@googlegroups.com
Christopher Orr created an issue
 
Jenkins / Bug JENKINS-50318
Refusing to marshal com.google.common.util.concurrent.SettableFuture
Issue Type: Bug Bug
Assignee: Chad Schmutzer
Components: ec2-fleet-plugin
Created: 2018-03-21 13:25
Environment: Jenkins 2.107.1
ec2-fleet 1.1.4
Labels: JEP-200
Priority: Minor Minor
Reporter: Christopher Orr

To reproduce:
1. Open /computer/(master)/configure
2. Hit "Save"

Possibly as a prerequisite, `EC2FleetCloud#plannedNodes` may need to have some entries (so that `SettableFuture`s exist), e.g. by setting up a cloud, and filling the build queue, so that some nodes start to become provisioned.

Mar 21, 2018 1:07:23 PM WARNING jenkins.security.ClassFilterImpl lambda$isBlacklisted$1
com.google.common.util.concurrent.SettableFuture in file:/var/jenkins_home/war/WEB-INF/lib/guava-11.0.1.jar might be dangerous, so rejecting; see https://jenkins.io/redirect/class-filter/
Mar 21, 2018 1:07:24 PM WARNING org.eclipse.jetty.server.handler.ContextHandler$Context log
Error while serving https://ci.example.com/computer/(master)/configSubmit
java.lang.UnsupportedOperationException: Refusing to marshal com.google.common.util.concurrent.SettableFuture for security reasons; see https://jenkins.io/redirect/class-filter/
	at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:543)
	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:265)
	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
Caused: java.lang.RuntimeException: Failed to serialize hudson.slaves.NodeProvisioner$PlannedNode#future for class hudson.slaves.NodeProvisioner$PlannedNode
	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
	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:265)
	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
Caused: java.lang.RuntimeException: Failed to serialize com.amazon.jenkins.ec2fleet.EC2FleetCloud#plannedNodes for class com.amazon.jenkins.ec2fleet.EC2FleetCloud
	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
  …
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

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

unread,
Mar 21, 2018, 10:08:02 AM3/21/18
to jenkinsc...@googlegroups.com

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

unread,
Mar 21, 2018, 10:09:02 AM3/21/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-50318
 
Re: Refusing to marshal com.google.common.util.concurrent.SettableFuture

I doubt there is a real need to persist SettableFuture objects on the disk. Will investigate

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

unread,
Mar 21, 2018, 10:30:02 AM3/21/18
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-50318
 
Change By: Oleg Nenashev
Status: Open In Progress

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

unread,
Mar 21, 2018, 11:54:03 AM3/21/18
to jenkinsc...@googlegroups.com

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

unread,
Mar 21, 2018, 11:54:03 AM3/21/18
to jenkinsc...@googlegroups.com
Oleg Nenashev stopped work on Bug JENKINS-50318
 
Change By: Oleg Nenashev
Status: In Progress Open

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

unread,
Mar 21, 2018, 11:54:03 AM3/21/18
to jenkinsc...@googlegroups.com

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

unread,
Mar 21, 2018, 11:54:03 AM3/21/18
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
May 12, 2018, 10:24:03 PM5/12/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Oleg Nenashev
Path:
src/main/java/com/amazon/jenkins/ec2fleet/EC2FleetCloud.java
http://jenkins-ci.org/commit/ec2-fleet-plugin/fd4ffbf5ceac115ae4f064c07f404574344a9c86
Log:
JENKINS-50318 - Stop randomly persisting cache objects on the disk

scm_issue_link@java.net (JIRA)

unread,
May 12, 2018, 10:24:03 PM5/12/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Chad Schmutzer
Path:
Jenkinsfile
pom.xml
src/main/java/com/amazon/jenkins/ec2fleet/EC2FleetCloud.java
http://jenkins-ci.org/commit/ec2-fleet-plugin/08347b9fd2518d8b2f207118e222d35dc48deaef
Log:
Merge pull request #24 from oleg-nenashev/JENKINS-50318

JENKINS-50318 - Stop caching cache objects on the disk

Compare: https://github.com/jenkinsci/ec2-fleet-plugin/compare/9ac8cc3a55b0...08347b9fd251
*NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

Functionality will be removed from GitHub.com on January 31st, 2019.

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

unread,
May 14, 2018, 11:37:02 AM5/14/18
to jenkinsc...@googlegroups.com
 

EC2 Fleet 1.1.6 has been released

Change By: Oleg Nenashev
Status: In Review Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages