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

JEP-200 with new 2.0.0 version on nunit test import

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
    • Environment:
      Jenkins ver. 2.107.3
      xunit 2.0.0
    • Similar Issues:

      Description

       
      When trying to Show test results using xunit (result format is nunit 2) getting following exception. Downgraded to 1.104. Works fine then.

      Stack trace:

      java.lang.SecurityException: Rejected: net.sf.saxon.expr.CardinalityChecker; see https://jenkins.io/redirect/class-filter/
      	at hudson.remoting.ClassFilter.check(ClassFilter.java:76)
      	at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:129)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1866)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1749)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2040)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2285)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2209)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2067)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2285)
      	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
      	at java.lang.Throwable.readObject(Throwable.java:914)
      	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2176)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2067)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2285)
      	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
      	at java.lang.Throwable.readObject(Throwable.java:914)
      	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2176)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2067)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2285)
      	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
      	at java.lang.Throwable.readObject(Throwable.java:914)
      	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2176)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2067)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2285)
      	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:561)
      	at java.lang.Throwable.readObject(Throwable.java:914)
      	at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1158)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2176)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2067)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1571)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:431)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:277)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
      	at hudson.remoting.Channel.call(Channel.java:952)
      Caused: java.io.IOException: Failed to deserialize response to UserRequest:org.jenkinsci.plugins.xunit.service.XUnitTransformer@19b909dc
      	at hudson.remoting.Channel.call(Channel.java:960)
      	at hudson.FilePath.act(FilePath.java:1009)
      Caused: java.io.IOException: remote file operation failed: <edited> at hudson.remoting.Channel@5b40d1b7:jbuild03_docker
      	at hudson.FilePath.act(FilePath.java:1016)
      	at hudson.FilePath.act(FilePath.java:998)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performTests(XUnitProcessor.java:207)
      	at org.jenkinsci.plugins.xunit.XUnitProcessor.performXUnit(XUnitProcessor.java:150)
      	at org.jenkinsci.plugins.xunit.XUnitPublisher.perform(XUnitPublisher.java:129)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      	at hudson.security.ACL.impersonate(ACL.java:290)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            Hide
            nfalco Nikolas Falco added a comment - - edited

            The issue could happens if after update you have pending pipeline jobs (long run) active on some slave. The callable class serialization is changed so could happens until you restart Jenkins master and jobs on slave nodes start again with the new version of plugin.

            > When trying to Show test results using xunit (result format is nunit 2) getting following exception

            I do not understand what that does mean, could you explain more in details what are you trying to do?

            Show
            nfalco Nikolas Falco added a comment - - edited The issue could happens if after update you have pending pipeline jobs (long run) active on some slave. The callable class serialization is changed so could happens until you restart Jenkins master and jobs on slave nodes start again with the new version of plugin. > When trying to Show test results using xunit (result format is nunit 2) getting following exception I do not understand what that does mean, could you explain more in details what are you trying to do?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nikolas Falco
            Path:
            src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java
            http://jenkins-ci.org/commit/xunit-plugin/5149c4e47ad976faf1a1162a88b4f10ecd2c0242
            Log:
            JENKINS-51465 Exception in XSL Transformation cause JEP-200

            Change the converter to no more include ConversionException as cause to avoid JEP-200 issue. Only exception message or its root message is collected.

            Compare: https://github.com/jenkinsci/xunit-plugin/compare/6f1b721c3ea9...5149c4e47ad9
            *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

            Functionality will be removed from GitHub.com on January 31st, 2019.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java http://jenkins-ci.org/commit/xunit-plugin/5149c4e47ad976faf1a1162a88b4f10ecd2c0242 Log: JENKINS-51465 Exception in XSL Transformation cause JEP-200 Change the converter to no more include ConversionException as cause to avoid JEP-200 issue. Only exception message or its root message is collected. Compare: https://github.com/jenkinsci/xunit-plugin/compare/6f1b721c3ea9...5149c4e47ad9 * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
            Hide
            nfalco Nikolas Falco added a comment -

            I can not reproduce the issue but I think last changes should be ok to avoid JEP-200 issue on slave nodes due of exception serialisation

            Show
            nfalco Nikolas Falco added a comment - I can not reproduce the issue but I think last changes should be ok to avoid JEP-200 issue on slave nodes due of exception serialisation
            Hide
            tomaxsas Tomas Zaleniakas added a comment -

            yes, now it's fixed. Thanks

            Show
            tomaxsas Tomas Zaleniakas added a comment - yes, now it's fixed. Thanks

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                tomaxsas Tomas Zaleniakas
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: