| Hello developers, we have still the problem:
09:11:59 java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage$Tag#actions for class org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage$Tag
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:11:59 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:11:59 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:11:59 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:11:59 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
09:11:59 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
09:11:59 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
09:11:59 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
09:11:59 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
09:11:59 at hudson.XmlFile.write(XmlFile.java:170)
09:11:59 at org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage.saveActions(SimpleXStreamFlowNodeStorage.java:111)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.saveActions(CpsFlowExecution.java:911)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.save(FlowNode.java:380)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.persistSafe(FlowNode.java:386)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.access$100(FlowNode.java:61)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode$1.add(FlowNode.java:346)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode$1.add(FlowNode.java:336)
09:11:59 at java.util.AbstractList.add(AbstractList.java:108)
09:11:59 at hudson.model.Actionable.addAction(Actionable.java:152)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:338)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationGroup.throwException(ContinuationGroup.java:190)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:64)
09:11:59 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
09:11:59 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
09:11:59 at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
09:11:59 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:11:59 at java.lang.reflect.Method.invoke(Method.java:498)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
09:11:59 at WorkflowScript.run(WorkflowScript:30)
09:11:59 at ___cps.transform___(Native Method)
09:11:59 at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:46)
09:11:59 at com.cloudbees.groovy.cps.Next.step(Next.java:74)
09:11:59 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
09:11:59 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
09:11:59 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
09:11:59 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
09:11:59 at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
09:11:59 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:163)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:63)
09:11:59 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:11:59 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
09:11:59 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
09:11:59 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
09:11:59 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:11:59 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
09:11:59 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
09:11:59 at java.lang.Thread.run(Thread.java:745)
09:11:59 Caused by: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.actions.ErrorAction#error for class org.jenkinsci.plugins.workflow.actions.ErrorAction
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:11:59 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:11:59 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:11:59 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:11:59 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
09:11:59 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
09:11:59 at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:11:59 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:11:59 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:11:59 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:11:59 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:11:59 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
09:11:59 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
09:11:59 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
09:11:59 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
09:11:59 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
09:11:59 at hudson.XmlFile.write(XmlFile.java:170)
09:11:59 at org.jenkinsci.plugins.workflow.support.storage.SimpleXStreamFlowNodeStorage.saveActions(SimpleXStreamFlowNodeStorage.java:111)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.saveActions(CpsFlowExecution.java:911)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.save(FlowNode.java:380)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.persistSafe(FlowNode.java:386)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode.access$100(FlowNode.java:61)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode$1.add(FlowNode.java:346)
09:11:59 at org.jenkinsci.plugins.workflow.graph.FlowNode$1.add(FlowNode.java:336)
09:11:59 at java.util.AbstractList.add(AbstractList.java:108)
09:11:59 at hudson.model.Actionable.addAction(Actionable.java:152)
09:11:59 at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$FailureAdapter.receive(CpsBodyExecution.java:338)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationGroup.throwException(ContinuationGroup.java:190)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:64)
09:11:59 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
09:11:59 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
09:11:59 at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
09:11:59 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:11:59 at java.lang.reflect.Method.invoke(Method.java:498)
09:11:59 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
09:11:59 ... 22 more
09:11:59 Caused by: java.lang.RuntimeException: Failed to serialize java.lang.Throwable#cause for class java.lang.IllegalArgumentException
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:11:59 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:11:59 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:11:59 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:11:59 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:11:59 at com.thoughtworks.xstream.converters.extended.ThrowableConverter.marshal(ThrowableConverter.java:62)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:11:59 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:11:59 ... 68 more
09:11:59 Caused by: java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.InvokerInvocationException for security reasons
09:11:59 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:442)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:11:59 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:11:59 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:11:59 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:11:59 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:11:59 ... 78 more
We are using Jenkins 2.45 and the workflow-api 2.10. All other plugins are the newest one. Our Jenkinsfile uses sonar like this:
stage('SonarQube analysis') {
def scannerHome = tool 'SonarQube Scanner 2.8'
withSonarQubeEnv('SonarQube JS') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
Thank you for your help. |