-
Bug
-
Resolution: Unresolved
-
Minor
-
None
When running a pipeline job using Pipeline Maven Integration
stage('build') { steps { withMaven( publisherStrategy: 'EXPLICIT', options: [ junitPublisher(healthScaleFactor: 1.0) ], jdk: env.JAVA, maven: env.MAVEN) { sh """ mvn \ -Dmaven.test.failure.ignore=true \ ${env.MAVEN_BUILD_OPTS ?: ""} clean verify """.stripIndent() } } }
it fails with
[2025-04-06T11:53:44.493Z] ERROR: [withMaven] junitPublisher - exception archiving JUnit results ****.xml: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun
and the full stack trace
com.thoughtworks.xstream.io.StreamException: Invalid character 0x0 in XML stream at hudson.util.PrettyPrintWriter.lambda$writeText$0(PrettyPrintWriter.java:220) at java.base/java.lang.StringLatin1$CharsSpliterator.forEachRemaining(StringLatin1.java:824) at java.base/java.util.stream.IntPipeline$Head.forEach(IntPipeline.java:617) at hudson.util.PrettyPrintWriter.writeText(PrettyPrintWriter.java:214) at hudson.util.PrettyPrintWriter.writeText(PrettyPrintWriter.java:210) at hudson.util.PrettyPrintWriter.setValue(PrettyPrintWriter.java:192) at com.thoughtworks.xstream.io.WriterWrapper.setValue(WriterWrapper.java:45) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.marshal(SingleValueConverterWrapper.java:45) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:50) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize com.google.jenkins.flakyTestHandler.junit.FlakySuiteResult#stdout for class com.google.jenkins.flakyTestHandler.junit.FlakySuiteResult at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem(AbstractCollectionConverter.java:94) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem(AbstractCollectionConverter.java:81) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:75) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize com.google.jenkins.flakyTestHandler.junit.FlakyTestResult#suites for class com.google.jenkins.flakyTestHandler.junit.FlakyTestResult at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize com.google.jenkins.flakyTestHandler.junit.FlakyPackageResult#parent for class com.google.jenkins.flakyTestHandler.junit.FlakyPackageResult at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize com.google.jenkins.flakyTestHandler.junit.FlakyClassResult#parent for class com.google.jenkins.flakyTestHandler.junit.FlakyClassResult at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem(AbstractCollectionConverter.java:94) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem(AbstractCollectionConverter.java:81) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:80) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyTestData#testCaseFlakyInfoMap for class com.google.jenkins.flakyTestHandler.plugin.JUnitFlakyTestData at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem(AbstractCollectionConverter.java:94) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem(AbstractCollectionConverter.java:81) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:75) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Caused: java.lang.RuntimeException: Failed to serialize hudson.tasks.junit.TestResultAction#testData for class hudson.tasks.junit.TestResultAction at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem(AbstractCollectionConverter.java:94) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem(AbstractCollectionConverter.java:81) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:75) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:285) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:272) Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 5b9956fe-5a30-489f-a2a4-d75d24b664b8 Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:276) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:243) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:228) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:165) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:83) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1307) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1296) at com.thoughtworks.xstream.XStream.toXML(XStream.java:1269) at hudson.util.XStream2.toXMLUTF8(XStream2.java:386) at PluginClassLoader for workflow-support//org.jenkinsci.plugins.workflow.support.PipelineIOUtils.writeByXStream(PipelineIOUtils.java:34) at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.save(WorkflowRun.java:1265) at hudson.BulkChange.commit(BulkChange.java:98) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1554) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:518) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$2(CpsVmExecutorService.java:85) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50) at java.base/java.lang.Thread.run(Thread.java:840)