Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68071

Thread Dump, Serialized program state does not work on Java 17

XMLWordPrintable

    • 2680.vf642ed4fa_d55

      Steps to reproduce

      With Java 17, run:

      mvn clean verify -Dtest=org.jenkinsci.plugins.workflow.cps.CpsBodyExecutionTest#closureCapturesCpsBodyExecution,org.jenkinsci.plugins.workflow.cps.CpsBodyExecutionTest#popContextVarsOnBodyCompletion,org.jenkinsci.plugins.workflow.cps.CpsThreadDumpActionTest#doProgramDotXml -Djenkins.version=2.339 -Djenkins-test-harness.version=1721.v385389722736 '-DargLine=--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED'
      

      Expected results

      The tests pass.

      Actual results

      The tests fail with:

      [ERROR] org.jenkinsci.plugins.workflow.cps.CpsBodyExecutionTest.closureCapturesCpsBodyExecution  Time elapsed: 7.439 s  <<< ERROR!
      com.thoughtworks.xstream.converters.ConversionException: 
      No converter available
      ---- Debugging information ----
      message             : No converter available
      type                : java.util.concurrent.atomic.AtomicBoolean
      converter           : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
      message[1]          : Unable to make field private static final long java.util.concurrent.atomic.AtomicBoolean.serialVersionUID accessible: module java.base does not "opens java.util.concurrent.atomic" to unnamed module @6b09bb57
      -------------------------------
              at com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:88)
              at com.thoughtworks.xstream.XStream$1.lookupConverterForType(XStream.java:478)
              at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:49)
              at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:270)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:174)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:262)
              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:90)
              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:1266)
              at com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)
              at com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)
              at com.thoughtworks.xstream.XStream.toXML(XStream.java:1215)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.asXml(CpsThreadGroup.java:606)
              at org.jenkinsci.plugins.workflow.cps.CpsBodyExecutionTest.lambda$closureCapturesCpsBodyExecution$4(CpsBodyExecutionTest.java:239)
              at org.jvnet.hudson.test.RestartableJenkinsRule$3.evaluate(RestartableJenkinsRule.java:243)
              at org.jvnet.hudson.test.RestartableJenkinsRule$6.evaluate(RestartableJenkinsRule.java:291)
              at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:606)
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.lang.Thread.run(Thread.java:833)
      

            jglick Jesse Glick
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: