-
Bug
-
Resolution: Fixed
-
Major
-
None
-
-
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
[JENKINS-68025] hudson.plugins.jobConfigHistory.FileHistoryDaoTest fails on Java 17
Description |
Original:
Currently, Mockito 1.10.19 is used, released in December 2014. The plugin pom provides Mockito 4.4.0, released in March 2022.
It would make sense to remove the version reference in job-config-history's pom.xml and rely on an up to date Mockito version shipped by the plugin pom, currently 4.37. |
New:
Currently, Mockito 1.10.19 is used, released in December 2014. The plugin pom provides Mockito 4.4.0, released in March 2022.
It would make sense to remove the version reference in job-config-history's pom.xml and rely on an up to date Mockito version shipped by the plugin pom, currently 4.37. Additionally, a few tests will likely need an update, a lot of things changed in the past 8 years from 1.x to 4.x |
Epic Link | New: JENKINS-67908 [ 214455 ] | |
Description |
Original:
Currently, Mockito 1.10.19 is used, released in December 2014. The plugin pom provides Mockito 4.4.0, released in March 2022.
It would make sense to remove the version reference in job-config-history's pom.xml and rely on an up to date Mockito version shipped by the plugin pom, currently 4.37. Additionally, a few tests will likely need an update, a lot of things changed in the past 8 years from 1.x to 4.x |
New:
h3. Steps to reproduce
With Java 17 run {noformat} mvn clean verify -Dtest=hudson.plugins.jobConfigHistory.FileHistoryDaoTest -Djenkins.version=2.339 -Denforcer.skip -Djenkins-test-harness.version=1721.v385389722736 {noformat} h3. Expected results The test passes h3. Actual results The test fails with: {noformat} 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 {noformat} |
Issue Type | Original: Task [ 3 ] | New: Bug [ 1 ] |
Labels | Original: Mockito help-wanted newbie-friendly | New: newbie-friendly |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Summary | Original: Update Mockito tests to 4.x | New: Job config history tests fail on Java 17 |
Summary | Original: Job config history tests fail on Java 17 | New: hudson.plugins.jobConfigHistory.FileHistoryDaoTest fails on Java 17 |
Labels | Original: newbie-friendly |
Assignee | New: Basil Crow [ basil ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "jenkinsci/job-config-history-plugin#187 (Web Link)" [ 27530 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: 1139.v888b_656ca_f6d | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Closed [ 6 ] |