You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joey Frazee (Jira)" <ji...@apache.org> on 2020/08/20 22:53:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Joey Frazee updated NIFI-7508:
------------------------------
    Fix Version/s: 1.12.0

> 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
>             Fix For: 1.12.0
>
>          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)