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

hudson.plugins.jobConfigHistory.FileHistoryDaoTest fails on Java 17

XMLWordPrintable

    • 1139.v888b_656ca_f6d

      Steps to reproduce

      With Java 17 run

      mvn clean verify -Dtest=hudson.plugins.jobConfigHistory.FileHistoryDaoTest -Djenkins.version=2.339 -Denforcer.skip -Djenkins-test-harness.version=1721.v385389722736
      

      Expected results

      The test passes

      Actual results

      The test fails with:

      22:53:56  java.lang.RuntimeException: Failed to serialize hudson.model.Node$$EnhancerByMockitoWithCGLIB$$ff76cadd#CGLIB$CALLBACK_0 for class hudson.model.Node$$EnhancerByMockitoWithCGLIB$$ff76cadd
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:83)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
      22:53:56  	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1266)
      22:53:56  	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1255)
      22:53:56  	at com.thoughtworks.xstream.XStream.toXML(XStream.java:1228)
      22:53:56  	at hudson.util.XStream2.toXMLUTF8(XStream2.java:342)
      22:53:56  	at hudson.plugins.jobConfigHistory.FileHistoryDaoTest.printTestData(FileHistoryDaoTest.java:782)
      22:53:56  	at hudson.plugins.jobConfigHistory.FileHistoryDaoTest.testRenameNode(FileHistoryDaoTest.java:804)
      22:53:56  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      22:53:56  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      22:53:56  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      22:53:56  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      22:53:56  	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      22:53:56  	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      22:53:56  	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      22:53:56  	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      22:53:56  	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      22:53:56  	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:603)
      22:53:56  	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
      22:53:56  	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
      22:53:56  	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      22:53:56  	at java.base/java.lang.Thread.run(Thread.java:833)
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.creation.cglib.MethodInterceptorFilter#handler for class org.mockito.internal.creation.cglib.MethodInterceptorFilter
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 29 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.handler.InvocationNotifierHandler#mockHandler for class org.mockito.internal.handler.InvocationNotifierHandler
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 38 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.handler.NullResultGuardian#delegate for class org.mockito.internal.handler.NullResultGuardian
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 47 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.handler.MockHandlerImpl#invocationContainerImpl for class org.mockito.internal.handler.MockHandlerImpl
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 56 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.stubbing.InvocationContainerImpl#stubbed for class org.mockito.internal.stubbing.InvocationContainerImpl
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 65 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.invocation.InvocationMatcher#invocation for class org.mockito.internal.stubbing.StubbedInvocationMatcher
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:87)
      22:53:56  	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeBareItem(AbstractCollectionConverter.java:94)
      22:53:56  	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:66)
      22:53:56  	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeCompleteItem(AbstractCollectionConverter.java:81)
      22:53:56  	at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:75)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 74 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.invocation.InvocationImpl#location for class org.mockito.internal.invocation.InvocationImpl
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 91 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize org.mockito.internal.debugging.LocationImpl#stackTraceHolder for class org.mockito.internal.debugging.LocationImpl
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 100 more
      22:53:56  Caused by: java.lang.RuntimeException: Failed to serialize java.lang.Throwable#suppressedExceptions for class java.lang.Throwable
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:270)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:237)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:174)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:222)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.converters.extended.ThrowableConverter.marshal(ThrowableConverter.java:62)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 109 more
      22:53:56  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field protected transient int java.util.AbstractList.modCount accessible: module java.base does not "opens java.util" to unnamed module @6a5fc7f7
      22:53:56  	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
      22:53:56  	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
      22:53:56  	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
      22:53:56  	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildDictionaryEntryForClass(FieldDictionary.java:176)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:142)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldsFor(FieldDictionary.java:80)
      22:53:56  	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:167)
      22:53:56  	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:202)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:161)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:50)
      22:53:56  	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59)
      22:53:56  	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:83)
      22:53:56  	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:279)
      22:53:56  	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:266)
      22:53:56  	... 119 more
      22:53:56  
      

            basil Basil Crow
            notmyfault Alexander Brandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: