You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/06/05 20:24:00 UTC

[jira] [Commented] (NIFI-7508) TestStandardControllerServiceInvocationHandler causes test failures in nifi-framework-core with Java 11

    [ https://issues.apache.org/jira/browse/NIFI-7508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17127073#comment-17127073 ] 

ASF subversion and git services commented on NIFI-7508:
-------------------------------------------------------

Commit dfefeb7b18ebcc46807d82acda5b37ed6477c321 in nifi's branch refs/heads/master from Joey Frazee
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=dfefeb7 ]

NIFI-7508: Reset classloader after running TestStandardControllerServiceInvocationHandler
and fix checkstyle violation on NiFiSystemIT


> TestStandardControllerServiceInvocationHandler causes test failures in nifi-framework-core with Java 11
> -------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-7508
>                 URL: https://issues.apache.org/jira/browse/NIFI-7508
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.12.0
>            Reporter: Joey Frazee
>            Assignee: Joey Frazee
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NIFI-7447 added a test `TestStandardControllerServiceInvocationHandler` that resets the class loader. This causes `TemplateDeserializerTest` and `TemplateSerializerTest` in nifi-framework-core to fail with "javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath" and "java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory" with Java 11 depending on whether they run before or after `TestStandardControllerServiceInvocationHandler`.
> I've observed it on two machines, one Mac and one Linux, and across different builds and versions of OpenJDK.
> Compare:
> {{mvn test -ff -Dsurefire.runOrder=alphabetical -Dtest="org.apache.nifi.persistence.TemplateDeserializerTest,org.apache.nifi.controller.service.TestStandardControllerServiceInvocationHandler"}}
> To:
> {{mvn test -ff -Dsurefire.runOrder=reversealphabetical -Dtest="org.apache.nifi.persistence.TemplateDeserializerTest,org.apache.nifi.controller.service.TestStandardControllerServiceInvocationHandler"}}
> And:
> {{mvn test -ff -Dtest="!*IT,!org.apache.nifi.controller.service.TestStandardControllerServiceInvocationHandler"}}
> The first fails and the second two succeed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)