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

Ws-cleanup plugin: PCT test fails when running with JDK11

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      0.37

      Description

      The PCT build for this plugin with JDK 11 fails with the errors below.  The full log is attached.

       

      [ERROR] Errors:
      [ERROR] hudson.plugins.ws_cleanup.CleanupPowermockTest.initializationError(hudson.plugins.ws_cleanup.CleanupPowermockTest)
      [ERROR] Run 1: CleanupPowermockTest.initializationError » Objenesis java.lang.reflect.Invocat...
      [ERROR] Run 2: CleanupPowermockTest.initializationError » Objenesis java.lang.reflect.Invocat...
      [ERROR] Run 3: CleanupPowermockTest.initializationError » Objenesis java.lang.reflect.Invocat...
      [ERROR] Run 4: CleanupPowermockTest.initializationError » Objenesis java.lang.reflect.Invocat...
      [ERROR] Run 5: CleanupPowermockTest.initializationError » Objenesis java.lang.reflect.Invocat...
      [INFO]
      [ERROR] hudson.plugins.ws_cleanup.CleanupTest.doNotFailToWipeoutWhenRenameFails(hudson.plugins.ws_cleanup.CleanupTest)
      [ERROR] Run 1: CleanupTest.doNotFailToWipeoutWhenRenameFails:182 » AccessDenied /var/folders/...
      [ERROR] Run 2: CleanupTest.doNotFailToWipeoutWhenRenameFails:182 » AccessDenied /var/folders/...
      [ERROR] Run 3: CleanupTest.doNotFailToWipeoutWhenRenameFails:182 » AccessDenied /var/folders/...
      [ERROR] Run 4: CleanupTest.doNotFailToWipeoutWhenRenameFails:182 » AccessDenied /var/folders/...
      [ERROR] Run 5: CleanupTest.doNotFailToWipeoutWhenRenameFails:182 » AccessDenied /var/folders/...
      [INFO]
      [ERROR] org.junit.runner.manipulation.Filter.initializationError(org.junit.runner.manipulation.Filter)
      [ERROR] Run 1: Filter.initializationError » No tests found matching Method testPluginActive(...
      [ERROR] Run 2: Filter.initializationError » No runnable methods
      [ERROR] Run 3: Filter.initializationError » No runnable methods
      [ERROR] Run 4: Filter.initializationError » No runnable methods
      [INFO]
      [ERROR] PluginAutomaticTestBuilder$OtherTests.testPluginActive:99 Plugin bouncycastle...
      [INFO]
      [ERROR] Tests run: 43, Failures: 1, Errors: 4, Skipped: 0
      [INFO]

       

       

        Attachments

          Issue Links

            Activity

            Show
            olivergondza Oliver Gondža added a comment - Thanks, I have reproduced that in upstream ci recently: https://ci.jenkins.io/job/Plugins/job/ws-cleanup-plugin/view/change-requests/job/PR-44/5/execution/node/58/log/?consoleFull  
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            A recommended fix it to update to the latest plugin POM with JENKINS-55098 . It should bump Mockito/PowerMock versions to proper ones

            Show
            oleg_nenashev Oleg Nenashev added a comment - A recommended fix it to update to the latest plugin POM with JENKINS-55098 . It should bump Mockito/PowerMock versions to proper ones
            Hide
            olivergondza Oliver Gondža added a comment -

            I did not get that running that way. This was needed too: https://github.com/jenkinsci/ws-cleanup-plugin/pull/44/commits/15058b24597d8b0d64e2a0d7ac57b8b0fb097b21#diff-164ca95d06b15de9cdf57e5e93bfc782R52

             

            Now when I look at it, the dependency on powermock can be removed as test can be written without relying on it.

            Show
            olivergondza Oliver Gondža added a comment - I did not get that running that way. This was needed too: https://github.com/jenkinsci/ws-cleanup-plugin/pull/44/commits/15058b24597d8b0d64e2a0d7ac57b8b0fb097b21#diff-164ca95d06b15de9cdf57e5e93bfc782R52   Now when I look at it, the dependency on powermock can be removed as test can be written without relying on it.
            Hide
            olivergondza Oliver Gondža added a comment -

            Oleg Nenashev, I took the path to least resistance. You can have a look at https://github.com/olivergondza/ws-cleanup-plugin/blob/powermock/pom.xml if you are interested:

            $ mvn clean package -Djenkins.version=2.155 -Dtest=CleanupPowermockTest -Denforcer.skip
            ...
            [INFO] Running hudson.plugins.ws_cleanup.CleanupPowermockTest
            Dec 17, 2018 1:35:01 PM jenkins.model.Jenkins <clinit>
            SEVERE: Failed to load Jenkins.class
            com.thoughtworks.xstream.InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
            	at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:904)
            	at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:867)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
            	at hudson.util.XStream2.<init>(XStream2.java:113)
            	at jenkins.model.Jenkins.<clinit>(Jenkins.java:5209)
            	at hudson.PluginManager.<clinit>(PluginManager.java:2089)
            	at org.jvnet.hudson.test.JenkinsRule.<init>(JenkinsRule.java:329)
            	at hudson.plugins.ws_cleanup.CleanupPowermockTest.<init>(CleanupPowermockTest.java:59)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTestInstance(PowerMockJUnit44RunnerDelegateImpl.java:197)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTest(PowerMockJUnit44RunnerDelegateImpl.java:182)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:204)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:134)
            	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
            	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136)
            	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117)
            	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
            	at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
            	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
            	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
            	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)
            Caused by: java.lang.reflect.InvocationTargetException
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            	at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:897)
            	... 33 more
            Caused by: java.lang.IllegalAccessError: class javax.xml.datatype.FactoryFinder (in unnamed module @0x3c74aa0d) cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module @0x3c74aa0d
            	at javax.xml.datatype.FactoryFinder.<clinit>(FactoryFinder.java:70)
            	at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:169)
            	at com.thoughtworks.xstream.converters.extended.DurationConverter$1.getFactory(DurationConverter.java:39)
            	at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:44)
            	... 38 more
            
            [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.831 s <<< FAILURE! - in hudson.plugins.ws_cleanup.CleanupPowermockTest
            [ERROR] retryAsyncDirDeletion(hudson.plugins.ws_cleanup.CleanupPowermockTest)  Time elapsed: 0.011 s  <<< ERROR!
            java.lang.ExceptionInInitializerError
            	at hudson.PluginManager.<clinit>(PluginManager.java:2089)
            	at org.jvnet.hudson.test.JenkinsRule.<init>(JenkinsRule.java:329)
            	at hudson.plugins.ws_cleanup.CleanupPowermockTest.<init>(CleanupPowermockTest.java:59)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTestInstance(PowerMockJUnit44RunnerDelegateImpl.java:197)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTest(PowerMockJUnit44RunnerDelegateImpl.java:182)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:204)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:134)
            	at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
            	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
            	at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136)
            	at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117)
            	at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
            	at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
            	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
            	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
            	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
            	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)
            Caused by: com.thoughtworks.xstream.InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null
            	at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:904)
            	at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:867)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
            	at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
            	at hudson.util.XStream2.<init>(XStream2.java:113)
            	at jenkins.model.Jenkins.<clinit>(Jenkins.java:5209)
            	... 25 more
            Caused by: java.lang.reflect.InvocationTargetException
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
            	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
            	at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:897)
            	... 33 more
            Caused by: java.lang.IllegalAccessError: class javax.xml.datatype.FactoryFinder (in unnamed module @0x3c74aa0d) cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module @0x3c74aa0d
            	at javax.xml.datatype.FactoryFinder.<clinit>(FactoryFinder.java:70)
            	at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:169)
            	at com.thoughtworks.xstream.converters.extended.DurationConverter$1.getFactory(DurationConverter.java:39)
            	at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:44)
            	... 38 more
            
            Show
            olivergondza Oliver Gondža added a comment - Oleg Nenashev , I took the path to least resistance. You can have a look at https://github.com/olivergondza/ws-cleanup-plugin/blob/powermock/pom.xml if you are interested: $ mvn clean package -Djenkins.version=2.155 -Dtest=CleanupPowermockTest -Denforcer.skip ... [INFO] Running hudson.plugins.ws_cleanup.CleanupPowermockTest Dec 17, 2018 1:35:01 PM jenkins.model.Jenkins <clinit> SEVERE: Failed to load Jenkins.class com.thoughtworks.xstream.InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:904) at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:867) at com.thoughtworks.xstream.XStream.<init>(XStream.java:574) at com.thoughtworks.xstream.XStream.<init>(XStream.java:496) at com.thoughtworks.xstream.XStream.<init>(XStream.java:465) at com.thoughtworks.xstream.XStream.<init>(XStream.java:411) at com.thoughtworks.xstream.XStream.<init>(XStream.java:378) at hudson.util.XStream2.<init>(XStream2.java:113) at jenkins.model.Jenkins.<clinit>(Jenkins.java:5209) at hudson.PluginManager.<clinit>(PluginManager.java:2089) at org.jvnet.hudson.test.JenkinsRule.<init>(JenkinsRule.java:329) at hudson.plugins.ws_cleanup.CleanupPowermockTest.<init>(CleanupPowermockTest.java:59) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTestInstance(PowerMockJUnit44RunnerDelegateImpl.java:197) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTest(PowerMockJUnit44RunnerDelegateImpl.java:182) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:204) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:134) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117) at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57) at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:897) ... 33 more Caused by: java.lang.IllegalAccessError: class javax.xml.datatype.FactoryFinder (in unnamed module @0x3c74aa0d) cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module @0x3c74aa0d at javax.xml.datatype.FactoryFinder.<clinit>(FactoryFinder.java:70) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:169) at com.thoughtworks.xstream.converters.extended.DurationConverter$1.getFactory(DurationConverter.java:39) at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:44) ... 38 more [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.831 s <<< FAILURE! - in hudson.plugins.ws_cleanup.CleanupPowermockTest [ERROR] retryAsyncDirDeletion(hudson.plugins.ws_cleanup.CleanupPowermockTest) Time elapsed: 0.011 s <<< ERROR! java.lang.ExceptionInInitializerError at hudson.PluginManager.<clinit>(PluginManager.java:2089) at org.jvnet.hudson.test.JenkinsRule.<init>(JenkinsRule.java:329) at hudson.plugins.ws_cleanup.CleanupPowermockTest.<init>(CleanupPowermockTest.java:59) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTestInstance(PowerMockJUnit44RunnerDelegateImpl.java:197) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTest(PowerMockJUnit44RunnerDelegateImpl.java:182) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:204) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:134) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44) at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:117) at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57) at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143) Caused by: com.thoughtworks.xstream.InitializationException: Could not instantiate converter : com.thoughtworks.xstream.converters.extended.DurationConverter : null at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:904) at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:867) at com.thoughtworks.xstream.XStream.<init>(XStream.java:574) at com.thoughtworks.xstream.XStream.<init>(XStream.java:496) at com.thoughtworks.xstream.XStream.<init>(XStream.java:465) at com.thoughtworks.xstream.XStream.<init>(XStream.java:411) at com.thoughtworks.xstream.XStream.<init>(XStream.java:378) at hudson.util.XStream2.<init>(XStream2.java:113) at jenkins.model.Jenkins.<clinit>(Jenkins.java:5209) ... 25 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.thoughtworks.xstream.XStream.registerConverterDynamically(XStream.java:897) ... 33 more Caused by: java.lang.IllegalAccessError: class javax.xml.datatype.FactoryFinder (in unnamed module @0x3c74aa0d) cannot access class jdk.xml.internal.SecuritySupport (in module java.xml) because module java.xml does not export jdk.xml.internal to unnamed module @0x3c74aa0d at javax.xml.datatype.FactoryFinder.<clinit>(FactoryFinder.java:70) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:169) at com.thoughtworks.xstream.converters.extended.DurationConverter$1.getFactory(DurationConverter.java:39) at com.thoughtworks.xstream.converters.extended.DurationConverter.<init>(DurationConverter.java:44) ... 38 more
            Hide
            oleg_nenashev Oleg Nenashev added a comment -
            Show
            oleg_nenashev Oleg Nenashev added a comment - Yes, it's same as https://github.com/jenkinsci/jenkins/pull/3651
            Hide
            olivergondza Oliver Gondža added a comment -
            Show
            olivergondza Oliver Gondža added a comment - Fixed in https://github.com/jenkinsci/ws-cleanup-plugin/pull/44. Changes released as 0.37.

              People

              Assignee:
              olivergondza Oliver Gondža
              Reporter:
              kearls Kevin EARLS
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: