你好,
我一直在使用jenkins和artifactory一段时间,现在上传文件到我的artifactory服务器。我做了一个升级到jenkins插件,我现在看到以下错误,当我做一个server.upload(upload_spec):
java.lang.UnsupportedOperationException:出于安全原因拒绝封送org.codehaus.groovy.runtime.GStringImpl
hudson.util.XStream2 BlacklistedTypesConverter.marshal美元(XStream2.java: 445)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 43)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 88)
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem (AbstractCollectionConverter.java: 64)
com.thoughtworks.xstream.converters.collections.MapConverter.marshal (MapConverter.java: 79)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 84)
hudson.util.RobustReflectionConverter.marshallField (RobustReflectionConverter.java: 265)
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 252)
产生原因:java.lang.RuntimeException: Failed to serialize groovy.lang。为类groovy.lang.Binding绑定#变量
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 256)
hudson.util.RobustReflectionConverter访问2.美元(RobustReflectionConverter.java: 224)
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java: 138)
hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java: 209)
hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java: 150)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 84)
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField (AbstractReflectionConverter.java: 250)
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter writefield 2.美元(AbstractReflectionConverter.java: 226)
在com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter 2美元。< init > (AbstractReflectionConverter.java: 189)
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal (AbstractReflectionConverter.java: 135)
com.thoughtworks.xstream.converters.reflection.SerializableConverter.marshalUnserializableParent (SerializableConverter.java: 292)
com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal (SerializableConverter.java: 246)
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal (AbstractReflectionConverter.java: 83)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 84)
hudson.util.RobustReflectionConverter.marshallField (RobustReflectionConverter.java: 265)
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 252)
原因:java.lang.RuntimeException: Failed to serialize org.jfrog.hudson.pipeline.types。类org.jfrog.hudson.pipeline.types.ArtifactoryServer #cpsScript
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 256)
hudson.util.RobustReflectionConverter访问2.美元(RobustReflectionConverter.java: 224)
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java: 138)
hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java: 209)
hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java: 150)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 43)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 88)
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem (AbstractCollectionConverter.java: 64)
com.thoughtworks.xstream.converters.collections.MapConverter.marshal (MapConverter.java: 79)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 84)
hudson.util.RobustReflectionConverter.marshallField (RobustReflectionConverter.java: 265)
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 252)
原因:java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.cps.actions。#类的参数org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 256)
hudson.util.RobustReflectionConverter访问2.美元(RobustReflectionConverter.java: 224)
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java: 138)
hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java: 209)
hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java: 150)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 43)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 88)
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem (AbstractCollectionConverter.java: 64)
com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal (ArrayConverter.java: 45)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller convertanother 1.美元(AbstractReferenceMarshaller.java: 84)
hudson.util.RobustReflectionConverter.marshallField (RobustReflectionConverter.java: 265)
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 252)
原因:java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.support.storage。org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage$Tag
hudson.util.RobustReflectionConverter writefield 2.美元(RobustReflectionConverter.java: 256)
hudson.util.RobustReflectionConverter访问2.美元(RobustReflectionConverter.java: 224)
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields (PureJavaReflectionProvider.java: 138)
hudson.util.RobustReflectionConverter.doMarshal (RobustReflectionConverter.java: 209)
hudson.util.RobustReflectionConverter.marshal (RobustReflectionConverter.java: 150)
com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert (AbstractReferenceMarshaller.java: 69)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 58)
com.thoughtworks.xstream.core.TreeMarshaller.convertAnother (TreeMarshaller.java: 43)
com.thoughtworks.xstream.core.TreeMarshaller.start (TreeMarshaller.java: 82)
在com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal (AbstractTreeMarshallingStrategy.java: 37)
com.thoughtworks.xstream.XStream.marshal (XStream.java: 1026)
com.thoughtworks.xstream.XStream.marshal (XStream.java: 1015)
com.thoughtworks.xstream.XStream.toXML (XStream.java: 988)
hudson.XmlFile.write (XmlFile.java: 170)
org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage.saveActions (SimpleXStreamFlowNodeStorage.java: 111)
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution TimingFlowNodeStorage.saveActions美元(CpsFlowExecution.java: 1491)
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.saveActions (CpsFlowExecution.java: 1012)
org.jenkinsci.plugins.workflow.graph.FlowNode.save (FlowNode.java: 380)
org.jenkinsci.plugins.workflow.graph.FlowNode.persistSafe (FlowNode.java: 386)
org.jenkinsci.plugins.workflow.graph.FlowNode.access 100美元(FlowNode.java: 61)
org.jenkinsci.plugins.workflow.graph.FlowNode添加1.美元(FlowNode.java: 346)
org.jenkinsci.plugins.workflow.graph.FlowNode添加1.美元(FlowNode.java: 336)
java.util.AbstractList.add (AbstractList.java: 108)
hudson.model.Actionable.addAction (Actionable.java: 152)
org.jenkinsci.plugins.workflow.job.WorkflowRun GraphL.onNewHead美元(WorkflowRun.java: 910)
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners (CpsFlowExecution.java: 1221)
在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup 3.美元运行(CpsThreadGroup.java: 407)
在org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService 1.美元运行(CpsVmExecutorService.java: 35)
在hudson.remoting.SingleLaneExecutorService 1.美元运行(SingleLaneExecutorService.java: 112)
在1.美元jenkins.util.ContextResettingExecutorService运行(ContextResettingExecutorService.java: 28)
java.util.concurrent.Executors RunnableAdapter.call美元(Executors.java: 511)
java.util.concurrent.FutureTask.run (FutureTask.java: 266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java: 1142)
java.util.concurrent.ThreadPoolExecutor Worker.run美元(ThreadPoolExecutor.java: 617)
java.lang.Thread.run (Thread.java: 748)
完成:失败
在这一点上,它似乎是fork一个线程来完成这一切,主线程挂起,而这个异常失败。有什么建议来解决这个问题或围绕它工作?
谢谢